From ba49a393d650e56d073bbcd6620c1f67839bd3dd Mon Sep 17 00:00:00 2001 From: bumseb1ene <122762145+bumseb1ene@users.noreply.github.com> Date: Sun, 7 Apr 2024 15:12:09 +0200 Subject: [PATCH] Hotfix bot.py --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 5e0e016..875c1a8 100644 --- a/bot.py +++ b/bot.py @@ -19,7 +19,7 @@ DB_FILE = os.getenv('DB_FILE') LANGUAGE = os.getenv('LANGUAGE', 'en') COMMAND_SWITCH = os.getenv('COMMAND_SWITCH') -COMMAND_1BV = os.getenv('COMMAND_1BV') +COMMAND_REG = os.getenv('COMMAND_REG') # Lade die Sprachdatei with open('translations.json', 'r') as file: @@ -53,7 +53,7 @@ async def on_message(self, message): await handle_command(self, message) async def handle_command(client, message): - if message.content.startswith(f'!{COMMAND_SWITCH}'): + if message.content.startswith(f'!{COMMAND_REG}'): parts = message.content.split() if len(parts) == 2 and is_valid_steam_id(parts[1]): steam_id = parts[1]