diff --git a/src/package/games/game_cog.py b/src/package/games/game_cog.py index 27c5e4a..7c9083e 100644 --- a/src/package/games/game_cog.py +++ b/src/package/games/game_cog.py @@ -37,10 +37,10 @@ class Game_cog(Send_message): async def setup(self, ctx): """This function creates an game instance for this channel""" if ctx.channel in self.game_instances: - await self.send_wrong(ctx, f"A game '{self.game_cls.name}' is already setup in this channel") + await self.send_wrong(ctx, f"A game '{self.game_cls.name()}' is already setup in this channel") else: self.game_instances[ctx.channel] = self.game_cls(self.bot, ctx.channel) - await self.send_friendly(ctx, f"This channel can now play: {self.game_cls.name}") + await self.send_friendly(ctx, f"This channel can now play: {self.game_cls.name()}") async def reset(self, ctx): """This function deletes the game instance for this channel""" @@ -51,7 +51,7 @@ class Game_cog(Send_message): async def info(self, ctx): """Send information about the subcommands for the game""" embed = discord.Embed(title="How to play?", description="You will need to set up the game and its information in a channel and start the game there. Afterwards the player mainly interact with the bot in DM.", color=0x00ffff) - embed.set_author(name=f"With this bot you can play {self.game_cls.name}") + embed.set_author(name=f"With this bot you can play {self.game_cls.name()}") # embed.set_thumbnail(url="https://images-na.ssl-images-amazon.com/images/I/717GrDtFKCL._AC_SL1000_.jpg") embed.add_field(name="$w game setup", value="Make this channel playable.", inline=False) embed.add_field(name="$w game players", value="Set mentioned users as players", inline=False)