Black format
This commit is contained in:
parent
c529d792e6
commit
7f8d0f13f7
@ -25,4 +25,4 @@ else:
|
|||||||
|
|
||||||
# TODO: Get the game for context without making a new one
|
# TODO: Get the game for context without making a new one
|
||||||
# TODO: Get player from game based on either ID or member object
|
# TODO: Get player from game based on either ID or member object
|
||||||
return target
|
return target
|
||||||
|
@ -44,4 +44,6 @@ class Player:
|
|||||||
)
|
)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
log.exception("Someone messed up and added a bot to the game (I think)")
|
log.exception("Someone messed up and added a bot to the game (I think)")
|
||||||
await self.role.game.village_channel.send("Someone messed up and added a bot to the game :eyes:")
|
await self.role.game.village_channel.send(
|
||||||
|
"Someone messed up and added a bot to the game :eyes:"
|
||||||
|
)
|
||||||
|
@ -137,7 +137,9 @@ class Werewolf(Cog):
|
|||||||
await ctx.maybe_send_embed("Category not found")
|
await ctx.maybe_send_embed("Category not found")
|
||||||
return
|
return
|
||||||
await self.config.guild(ctx.guild).category_id.set(category.id)
|
await self.config.guild(ctx.guild).category_id.set(category.id)
|
||||||
await ctx.maybe_send_embed("Game Channel Category has been set to **{}**".format(category.name))
|
await ctx.maybe_send_embed(
|
||||||
|
"Game Channel Category has been set to **{}**".format(category.name)
|
||||||
|
)
|
||||||
|
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@wwset.command(name="channel")
|
@wwset.command(name="channel")
|
||||||
@ -150,7 +152,9 @@ class Werewolf(Cog):
|
|||||||
await ctx.maybe_send_embed("Cleared Game Channel")
|
await ctx.maybe_send_embed("Cleared Game Channel")
|
||||||
else:
|
else:
|
||||||
await self.config.guild(ctx.guild).channel_id.set(channel.id)
|
await self.config.guild(ctx.guild).channel_id.set(channel.id)
|
||||||
await ctx.maybe_send_embed("Game Channel has been set to **{}**".format(channel.mention))
|
await ctx.maybe_send_embed(
|
||||||
|
"Game Channel has been set to **{}**".format(channel.mention)
|
||||||
|
)
|
||||||
|
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@wwset.command(name="logchannel")
|
@wwset.command(name="logchannel")
|
||||||
@ -163,7 +167,9 @@ class Werewolf(Cog):
|
|||||||
await ctx.maybe_send_embed("Cleared Game Log Channel")
|
await ctx.maybe_send_embed("Cleared Game Log Channel")
|
||||||
else:
|
else:
|
||||||
await self.config.guild(ctx.guild).log_channel_id.set(channel.id)
|
await self.config.guild(ctx.guild).log_channel_id.set(channel.id)
|
||||||
await ctx.maybe_send_embed("Game Log Channel has been set to **{}**".format(channel.mention))
|
await ctx.maybe_send_embed(
|
||||||
|
"Game Log Channel has been set to **{}**".format(channel.mention)
|
||||||
|
)
|
||||||
|
|
||||||
@commands.group()
|
@commands.group()
|
||||||
async def ww(self, ctx: commands.Context):
|
async def ww(self, ctx: commands.Context):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user