From eb0fe5af340231f7daeecc5f53f8f5f07ccce2bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Ani=C4=87=20Bani=C4=87?= Date: Sat, 9 Jun 2018 09:59:52 +0200 Subject: [PATCH] Anime stuff --- bot.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/bot.py b/bot.py index ee86e82c..6512ee9f 100644 --- a/bot.py +++ b/bot.py @@ -528,17 +528,18 @@ async def is_mod(ctx: Context): return False -async def is_private_channel(ctx: Context): +async def is_private_channel(ctx: Context, gay=True): message: Message = ctx.message author: Member = message.author if isinstance(ctx.channel, DMChannel): return True else: - await ctx.channel.send( - '{mention} https://i.imgflip.com/24qx11.jpg'.format( - mention=author.mention + if gay: + await ctx.channel.send( + '{mention} https://i.imgflip.com/24qx11.jpg'.format( + mention=author.mention + ) ) - ) return False @@ -806,7 +807,7 @@ async def list_warnings(ctx: Context, user: User): async def list_warnings_for_user(ctx: Context, user: User): - is_private = await is_private_channel(ctx) + is_private = await is_private_channel(ctx, gay=False) if user is None: await ctx.send("A user to scan for needs to be provided...") return