From 1f9e58273bc95231397009fffd33f3c90df7c974 Mon Sep 17 00:00:00 2001 From: Zed Date: Thu, 16 Nov 2023 22:51:35 -0600 Subject: [PATCH] Discord username fix and changed start command --- game/clear.py | 7 +++---- game/new_game.py | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/game/clear.py b/game/clear.py index 1d320b7..14d2e42 100644 --- a/game/clear.py +++ b/game/clear.py @@ -18,14 +18,13 @@ class ClearManager(BaseGameManager): async def clear(self): """Clear command - Clears the session scoreboard""" - players = Player.select(Player.total_points) + players = Player.select(Player.player_id, Player.total_points) for player in players: player.total_points = 0 - Player.bulk_update(players, Player.total_points) + Player.bulk_update(players, fields=[Player.total_points]) clear_message = "The score has been cleared!" - recipient = await self.discord.fetch_user(self.message.author.id) - await recipient.send(clear_message) + await self.message.channel.send(clear_message) diff --git a/game/new_game.py b/game/new_game.py index 7b12849..e781665 100644 --- a/game/new_game.py +++ b/game/new_game.py @@ -13,7 +13,7 @@ class NewGameManager(BaseGameManager): def __init__(self): super().__init__() - self.commands.append(("braveball", self.start)) + self.commands.append(("bb", self.start)) async def start(self): """