no longer using discriminators

This commit is contained in:
2023-07-28 11:02:55 +02:00
parent cfea968f1b
commit d5b4bb4c87

3
run.py
View File

@@ -65,7 +65,8 @@ async def on_message(message):
games_entered = [codenames_game for codenames_game in codenames_games.values() if codenames_game.get_player(message.author)]
# Admin commands
if message.author.name == "Biganon" and message.author.discriminator == "0001":
print(message.author.name)
if message.author.name == "biganon":
if regex := re.search(r"^[sS]ay ([0-9]+) (.*)$", content):
channel_id = int(regex.group(1))
to_say = regex.group(2)