From e91a62821feacde49ab9df103770420cdcd7cebf Mon Sep 17 00:00:00 2001 From: Peter van Arkel Date: Tue, 10 Aug 2021 00:31:25 +0200 Subject: [PATCH 1/2] rename Miscellaneous cog --- cogs/random.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/random.py b/cogs/random.py index 429dc40..d96c525 100644 --- a/cogs/random.py +++ b/cogs/random.py @@ -13,7 +13,7 @@ handler.setFormatter(logging.Formatter('%(asctime)s:%(levelname)s:%(name)s: %(me logger.addHandler(handler) -class Miscellaneous(commands.Cog): +class Misc(commands.Cog): def __init__(self, bot): @@ -37,4 +37,4 @@ class Miscellaneous(commands.Cog): def setup(bot): - bot.add_cog(Miscellaneous(bot)) \ No newline at end of file + bot.add_cog(Misc(bot)) \ No newline at end of file From af13cbe64fc3c3643984be7b09c4c18ea6b65a8b Mon Sep 17 00:00:00 2001 From: Peter van Arkel Date: Tue, 10 Aug 2021 00:38:05 +0200 Subject: [PATCH 2/2] remove babbelbingo role addition --- cogs/games.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cogs/games.py b/cogs/games.py index 09db985..fbb635a 100644 --- a/cogs/games.py +++ b/cogs/games.py @@ -38,11 +38,7 @@ class Games(commands.Cog): async def bingo(self, ctx): name = ctx.message.author.name bingocard = babbelbingo.bingo(name) - guild = ctx.message.guild - member = discord.utils.get(guild.members, id=ctx.message.author.id) - role = discord.utils.get(guild.roles , name='babbelbingo') await ctx.author.send(file=discord.File(bingocard)) - await member.add_roles(role) @commands.Cog.listener()