changed name var to name func
This commit is contained in:
parent
54f8eaf4c2
commit
e7b37217f9
|
@ -37,10 +37,10 @@ class Game_cog(Send_message):
|
||||||
async def setup(self, ctx):
|
async def setup(self, ctx):
|
||||||
"""This function creates an game instance for this channel"""
|
"""This function creates an game instance for this channel"""
|
||||||
if ctx.channel in self.game_instances:
|
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:
|
else:
|
||||||
self.game_instances[ctx.channel] = self.game_cls(self.bot, ctx.channel)
|
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):
|
async def reset(self, ctx):
|
||||||
"""This function deletes the game instance for this channel"""
|
"""This function deletes the game instance for this channel"""
|
||||||
|
@ -51,7 +51,7 @@ class Game_cog(Send_message):
|
||||||
async def info(self, ctx):
|
async def info(self, ctx):
|
||||||
"""Send information about the subcommands for the game"""
|
"""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 = 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.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 setup", value="Make this channel playable.", inline=False)
|
||||||
embed.add_field(name="$w game players", value="Set mentioned users as players", inline=False)
|
embed.add_field(name="$w game players", value="Set mentioned users as players", inline=False)
|
||||||
|
|
Loading…
Reference in New Issue