-
Notifications
You must be signed in to change notification settings - Fork 14
Update configs.py #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,7 +1,7 @@ | ||||||
import os | ||||||
class Config: | ||||||
API_ID = int(os.environ.get('API_ID', 0)) | ||||||
API_HASH = str(os.environ.get('API_HASH', None)) | ||||||
BOT_TOKEN = str(os.environ.get('BOT_TOKEN', None)) | ||||||
MONGO_URI = str(os.environ.get('MONGO_URI', None)) | ||||||
UPDATES_CHANNEL = str(os.environ.get('UPDATES_CHANNEL', None)) #Start Without @ | ||||||
API_ID = int(os.environ.get('API_ID', 6435225)) | ||||||
API_HASH = str(os.environ.get('API_HASH', 4e984ea35f854762dcde906dce426c2d)) | ||||||
BOT_TOKEN = str(os.environ.get('BOT_TOKEN', 6571094339:AAGcENp3AmPPJslc88ERGsT_VdJ20hKTtvQ)) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct the syntax error in the - BOT_TOKEN = str(os.environ.get('BOT_TOKEN', 6571094339:AAGcENp3AmPPJslc88ERGsT_VdJ20hKTtvQ))
+ BOT_TOKEN = str(os.environ.get('BOT_TOKEN', '6571094339:AAGcENp3AmPPJslc88ERGsT_VdJ20hKTtvQ')) Committable suggestion
Suggested change
|
||||||
MONGO_URI = str(os.environ.get('MONGO_URI', mongodb+srv://Mrdaxx123:[email protected]/?retryWrites=true&w=majority)) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct the syntax error in the - MONGO_URI = str(os.environ.get('MONGO_URI', mongodb+srv://Mrdaxx123:[email protected]/?retryWrites=true&w=majority))
+ MONGO_URI = str(os.environ.get('MONGO_URI', 'mongodb+srv://Mrdaxx123:[email protected]/?retryWrites=true&w=majority')) Consider using environment variables or secure vault solutions to manage sensitive information such as database credentials. Committable suggestion
Suggested change
|
||||||
UPDATES_CHANNEL = str(os.environ.get('UPDATES_CHANNEL', Matching_pfp_Gallery)) #Start Without @ | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tip Codebase Verification The examination of the However, the default value set in To ensure consistent behavior, it would be advisable to either:
Action Points:
Analysis chainEnsure the Scripts ExecutedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify if the UPDATES_CHANNEL should start with '@'.
# Test: Search for usage of UPDATES_CHANNEL to check if it's prefixed with '@' in other parts of the code.
rg --type py 'UPDATES_CHANNEL'
Length of output: 398 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct the syntax error in the
API_HASH
assignment.Committable suggestion