From 5ece30bb0380b0cf8218df11a8a7460d6023e4b8 Mon Sep 17 00:00:00 2001 From: c0de Date: Mon, 3 Oct 2022 19:42:42 -0500 Subject: [PATCH] Need to pass a game instance to bare function calls --- GhostBallBot/discord_client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GhostBallBot/discord_client/client.py b/GhostBallBot/discord_client/client.py index f045a30..dbbb22a 100644 --- a/GhostBallBot/discord_client/client.py +++ b/GhostBallBot/discord_client/client.py @@ -38,4 +38,4 @@ class GhostBallClient(discord.Client): for command, function in self.game.commands: if firstword == command: self.game.message = message - await function() + await function(self.game)