mirror of
https://github.com/aljazceru/chatgpt-telegram-bot.git
synced 2025-12-20 14:14:52 +01:00
Apply PEP8 styling standard & reformat
This commit is contained in:
@@ -50,10 +50,10 @@ def main():
|
||||
# remove support for old budget names at some point in the future
|
||||
if os.environ.get('MONTHLY_USER_BUDGETS') is not None:
|
||||
logging.warning('The environment variable MONTHLY_USER_BUDGETS is deprecated. '
|
||||
'Please use USER_BUDGETS with BUDGET_PERIOD instead.')
|
||||
'Please use USER_BUDGETS with BUDGET_PERIOD instead.')
|
||||
if os.environ.get('MONTHLY_GUEST_BUDGET') is not None:
|
||||
logging.warning('The environment variable MONTHLY_GUEST_BUDGET is deprecated. '
|
||||
'Please use GUEST_BUDGET with BUDGET_PERIOD instead.')
|
||||
'Please use GUEST_BUDGET with BUDGET_PERIOD instead.')
|
||||
|
||||
telegram_config = {
|
||||
'token': os.environ['TELEGRAM_BOT_TOKEN'],
|
||||
@@ -71,7 +71,7 @@ def main():
|
||||
'ignore_group_transcriptions': os.environ.get('IGNORE_GROUP_TRANSCRIPTIONS', 'true').lower() == 'true',
|
||||
'group_trigger_keyword': os.environ.get('GROUP_TRIGGER_KEYWORD', ''),
|
||||
'token_price': float(os.environ.get('TOKEN_PRICE', 0.002)),
|
||||
'image_prices': [float(i) for i in os.environ.get('IMAGE_PRICES',"0.016,0.018,0.02").split(",")],
|
||||
'image_prices': [float(i) for i in os.environ.get('IMAGE_PRICES', "0.016,0.018,0.02").split(",")],
|
||||
'transcription_price': float(os.environ.get('TOKEN_PRICE', 0.006)),
|
||||
'bot_language': os.environ.get('BOT_LANGUAGE', 'en'),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user