diff --git a/src/cogs/funreplies.py b/src/cogs/funreplies.py index 6f19a8c..b3cd0cc 100644 --- a/src/cogs/funreplies.py +++ b/src/cogs/funreplies.py @@ -18,10 +18,15 @@ class FunReplies(commands.Cog): await message.channel.send('Jeg vet hvem som drepte Olof Palme 👀') # The Ultimate spaghetti +<<<<<<< HEAD elif re.match(r'(\W|\s)*lesgo{1}(\s|\W)*', message.clean_content.lower()) or \ message.clean_content.lower() == 'lesgo': await message.channel.send('https://cdn.discordapp.com/attachments/750052141346979850/' + '824764933513281596/3xhpwbakz2361.png') +======= + elif re.match(r'(\W|\s)*lesgo{1}(\s|\W)*', message.clean_content.lower()) or message.clean_content.lower() == 'lesgo': + await message.channel.send('https://cdn.discordapp.com/attachments/750052141346979850/824764933513281596/3xhpwbakz2361.png') +>>>>>>> 0145bbfd78140aa14e79be6d0aee2231c011b15f def setup(bot): diff --git a/src/cogs/mod.py b/src/cogs/mod.py index 99b2363..40f2976 100644 --- a/src/cogs/mod.py +++ b/src/cogs/mod.py @@ -14,7 +14,7 @@ class Mod(commands.Cog): @commands.has_permissions(ban_members=True) @commands.guild_only() @commands.command() - async def hackban(self, ctx, brukerid, *, begrunnelese=None): + async def hackban(self, ctx, brukerid, *, begrunnelse=None): """ Bannlys en bruker før de i det hele tatt har blitt med i serveren """ @@ -32,15 +32,15 @@ class Mod(commands.Cog): embed = embed_templates.error_warning(ctx, text='Denne brukeren er allerede bannlyst fra serveren!') return await ctx.send(embed=embed) - if begrunnelese is None: - begrunnelese = 'Ingen grunn angitt' + if begrunnelse is None: + begrunnelse = 'Ingen grunn angitt' date = datetime.now().strftime('%d. %b. %Y - %H:%M') try: await ctx.guild.ban( user, - reason=f'{date} | {ctx.author.name}#{ctx.author.discriminator} ({ctx.author.id}): {begrunnelese}' + reason=f'{date} | {ctx.author.name}#{ctx.author.discriminator} ({ctx.author.id}): {begrunnelse}' ) except discord.errors.NotFound: embed = embed_templates.error_warning(ctx, text='Bruker finnes ikke!') @@ -49,8 +49,8 @@ class Mod(commands.Cog): user_object = self.bot.get_user(brukerid) embed = discord.Embed(color=discord.Color.red(), title='🔨 Bruker utestengt!') - if begrunnelese != 'Ingen grunn angitt': - embed.description = f'`{begrunnelese}`' + if begrunnelse != 'Ingen grunn angitt': + embed.description = f'`{begrunnelse}`' if user_object: user = user_object embed.set_thumbnail(url=user.avatar_url)