Skip to content

Commit

Permalink
Hotfix bot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bumseb1ene committed Apr 7, 2024
1 parent e659755 commit ba49a39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit ba49a39

Please sign in to comment.