示例#1
0
文件: fun.py 项目: 39hige1/Laikabot
    async def frog(self, ctx):
        """  random frog """
        fuckmenigga = ctx.message.author
        if discord.utils.get(fuckmenigga.roles, name="Hardmute") != None:
            return
        website = "https://images.search.yahoo.com/search/images?fr=yfp-t&p=frog&fr2=p%3As%2Cv%3Ai&.bcrumb=/5y.fZ..qqd&save=0"
        soup = BeautifulSoup(urllib.request.urlopen(website))
        listLink = []
        for link in soup.findAll('img'):
            listLink.append(link)

        randImageIndex = random.randint(1, (len(listLink) - 1))
        imgUrl = listLink[randImageIndex]

        fuckingnf = str(imgUrl)
        clean = re.findall(r'(https?://[^\s]+)', fuckingnf)

        clean1 = str(clean).replace("[", "")
        clean2 = str(clean1).replace("'", "")
        clean3 = str(clean2).replace("]", "")
        clean4 = str(clean3).replace('"', "")

        embed = discord.Embed(color=0xe1a6e1)
        embed.set_image(url=f"{clean4}")
        await ctx.send(embed=embed)

        if not permissions.can_upload(ctx):
            return await ctx.send("I cannot send images here ;>;")
示例#2
0
	async def konin(self, ctx):
		""" Wysyła losowe zdjęcie Konina """
		if not permissions.can_upload(ctx):
			return await ctx.send(":x: | Nie mogę wysyłać plików!")
		await ctx.send(f'nwm jakieś fajne zdjęcie Konina')
		wypierdalaj = random.choice(os.listdir("konin"))
		await ctx.send(file=discord.File("konin/" + wypierdalaj, filename=wypierdalaj))
示例#3
0
	async def bmw(self, ctx):
		""" Wysyła zdjęcie rozjebanego bmw """
		if not permissions.can_upload(ctx):
			return await ctx.send(":x: | Nie mogę wysyłać plików!")
		await ctx.send(f'nwm jakieś fajne rozjebane BMW z neta')
		wypierdalaj = random.choice(os.listdir("bmw"))
		await ctx.send(file=discord.File("bmw/" + wypierdalaj, filename=wypierdalaj))
示例#4
0
	async def focus(self, ctx):
		""" Wysyła zdjęcie rozjebanego focusa """
		if not permissions.can_upload(ctx):
			return await ctx.send(":x: | Nie mogę wysyłać plików!")
		await ctx.send(f'nwm jakiś fajny rozjebany focus z neta')
		wypierdalaj = random.choice(os.listdir("focus"))
		await ctx.send(file=discord.File("focus/" + wypierdalaj, filename=wypierdalaj))
示例#5
0
	async def mikser(self, ctx):
		""" Wysyła losowe zdjęcie miksera! """
		if not permissions.can_upload(ctx):
			return await ctx.send(":x: | Nie mogę wysyłać plików!")
		await ctx.send(f'nwm jakiś fajny mikser z neta')
		wypierdalaj = random.choice(os.listdir("mikser"))
		await ctx.send(file=discord.File("mikser/" + wypierdalaj, filename=wypierdalaj))
示例#6
0
文件: fun.py 项目: 39hige1/Laikabot
    async def slags(self, ctx):
        """ Searches 4 hot slags """
        fuckmenigga = ctx.message.author
        if discord.utils.get(fuckmenigga.roles, name="Hardmute") != None:
            return
        try:
            website = f"https://images.search.yahoo.com/search/images;_ylt=AwrEzOA48TVfTXUAn66JzbkF;_ylu=X3oDMTBsZ29xY3ZzBHNlYwNzZWFyY2gEc2xrA2J1dHRvbg--;_ylc=X1MDOTYwNjI4NTcEX3IDMgRhY3RuA2NsawRjc3JjcHZpZANjSUViY1RFd0xqSnZaeUU5WGFBYWRnUlVNVFU0TGdBQUFBRFg5dkhvBGZyA3lmcC10BGZyMgNzYS1ncARncHJpZANsOXBhbTd1SFN1Q0xPTHJ1TTZTQmpBBG5fc3VnZwMxMARvcmlnaW4DaW1hZ2VzLnNlYXJjaC55YWhvby5jb20EcG9zAzAEcHFzdHIDBHBxc3RybAMEcXN0cmwDMTgEcXVlcnkDZml0JTIwZ2lybCUyMG1vZGVsBHRfc3RtcAMxNTk3MzYzNDk4?p=fit+girl+model&fr=yfp-t&fr2=sb-top-images.search&ei=UTF-8&n=60&x=wrt"
            soup = BeautifulSoup(urllib.request.urlopen(website))
            listLink = []
            for link in soup.findAll('img'):
                listLink.append(link)

            randImageIndex = random.randint(1, (len(listLink) - 1))
            imgUrl = listLink[randImageIndex]

            fuckingnf = str(imgUrl)
            clean = re.findall(r'(https?://[^\s]+)', fuckingnf)

            clean1 = str(clean).replace("[", "")
            clean2 = str(clean1).replace("'", "")
            clean3 = str(clean2).replace("]", "")
            clean4 = str(clean3).replace('"', "")

            embed = discord.Embed(color=0xe1a6e1)
            embed.set_image(url=f"{clean4}")
            await ctx.send(embed=embed)

            if not permissions.can_upload(ctx):
                return await ctx.send("I cannot send images here ;>;")
        except Exception as e:
            await ctx.send("No results found!")
示例#7
0
    async def noticeme(self, ctx):
        """ Notice me senpai! owo """
        if not permissions.can_upload(ctx):
            return await ctx.send("I cannot send images here ;-;")

        bio = BytesIO(await http.get("https://i.alexflipnote.xyz/500ce4.gif", res_method="read"))
        await ctx.send(file=discord.File(bio, filename="noticeme.gif"))
示例#8
0
	async def wypierdalaj(self, ctx):
		""" Jak sama nazwa wskazuje, wypierdalaj! """
		if not permissions.can_upload(ctx):
			return await ctx.send(":x: | Nie mogę wysyłać plików!")
		await ctx.send("Wypierdalaj", tts=True)
		wypierdalaj = 'http://nitrofun.5v.pl/memuchy/wyp' + str(random.randint(1,33)) + '.jpg'
		wypierpapier = BytesIO(await http.get(wypierdalaj, res_method="read"))
		await ctx.send(file=discord.File(wypierpapier, filename="wypierdalaj.jpg"))
示例#9
0
    async def fuckyou(self, ctx):
        if not permissions.can_upload(ctx):
            return await ctx.send("I cannot send images here ;>;")

        embed = discord.Embed(color=0xe1a6e1)
        embed.set_image(
            url=
            "https://media.discordapp.net/attachments/588370099933806602/647274906609778703/shhhhh.png?width=1245&height=701"
        )
        await ctx.send(embed=embed)
示例#10
0
文件: fun.py 项目: 39hige1/Laikabot
    async def noticeme(self, ctx):
        """ Notice me senpai! owo """
        fuckmenigga = ctx.message.author

        if not permissions.can_upload(ctx):
            return await ctx.send("I cannot send images here ;>;")

        embed = discord.Embed(color=0xe1a6e1)
        embed.set_image(
            url=
            "https://media.tenor.co/images/aeed0f97ccd1fb9a571fe48dda73408c/tenor.gif"
        )
        await ctx.send(embed=embed)
示例#11
0
文件: fun.py 项目: 39hige1/Laikabot
    async def fat(self, ctx):
        """ ur fat """
        fuckmenigga = ctx.message.author
        if discord.utils.get(fuckmenigga.roles, name="Hardmute") != None:
            return

        if not permissions.can_upload(ctx):
            return await ctx.send("I cannot send images here ;>;")

        embed = discord.Embed(color=0xe1a6e1)
        embed.set_image(
            url=
            "https://scontent.harristeeter.com/legacy/productimagesroot/DJ/3/1240133.jpg"
        )
        await ctx.send(embed=embed)
示例#12
0
文件: fun.py 项目: 39hige1/Laikabot
    async def installnazi(self, ctx):
        """ 📯 doot """
        fuckmenigga = ctx.message.author
        if discord.utils.get(fuckmenigga.roles, name="Hardmute") != None:
            return

        if not permissions.can_upload(ctx):
            return await ctx.send("I cannot send images here ;>;")

        embed = discord.Embed(color=0xe1a6e1)
        embed.set_image(
            url=
            "https://cdn.discordapp.com/attachments/595511047205421056/595514059273666560/241.png"
        )
        await ctx.send(embed=embed)
示例#13
0
文件: fun.py 项目: 39hige1/Laikabot
    async def notrat(self, ctx):
        """ That's not very rat.. """
        fuckmenigga = ctx.message.author
        if discord.utils.get(fuckmenigga.roles, name="Hardmute") != None:
            return

        if not permissions.can_upload(ctx):
            return await ctx.send("I cannot send images here ;>;")

        embed = discord.Embed(color=0xe1a6e1)
        embed.set_image(
            url=
            "https://cdn.discordapp.com/attachments/588370099933806602/618182390937944081/Rat.png"
        )
        await ctx.send(embed=embed)
示例#14
0
文件: fun.py 项目: 39hige1/Laikabot
    async def prayer(self, ctx):
        """ ❤ """
        fuckmenigga = ctx.message.author
        if discord.utils.get(fuckmenigga.roles, name="Hardmute") != None:
            return

        if not permissions.can_upload(ctx):
            return await ctx.send("I cannot send images here ;>;")

        embed = discord.Embed(color=0xe1a6e1)
        embed.set_image(url="https://initiate.space/shrine/goddess.jpg")
        await ctx.send(
            "Lain is god. Let's all love Lain Let's all love Lain Let's all love Lain Let's all love Lain Let's all love Lain Let's all love Lain Let's all love Lain Let's all love Lain Let's all love Lain"
        )
        await ctx.send("***PRAY***")
        await ctx.send(embed=embed)
        await ctx.send("<3 I'm not a namefag")
示例#15
0
文件: fun.py 项目: 39hige1/Laikabot
    async def installgentoo(self, ctx):
        """ Install gentoo f****t """
        fuckmenigga = ctx.message.author
        if discord.utils.get(fuckmenigga.roles, name="Hardmute") != None:
            return

        if not permissions.can_upload(ctx):
            return await ctx.send("I cannot send images here ;>;")

        embed = discord.Embed(color=0xe1a6e1)
        embed.set_image(
            url=
            "http://i0.kym-cdn.com/photos/images/newsfeed/000/558/394/3c9.png")
        embed.set_thumbnail(
            url=
            "http://wiki.arx-libertatis.org/images/thumb/0/02/Gentoo_icon.png/24px-Gentoo_icon.png"
        )
        await ctx.send(embed=embed)
示例#16
0
文件: fun.py 项目: 39hige1/Laikabot
    async def suicide(self, ctx):
        """  Just stop """
        fuckmenigga = ctx.message.author
        if discord.utils.get(fuckmenigga.roles, name="Hardmute") != None:
            return
        if ctx.author.id == 746184398852063393:
            return

        async def fuckiff():
            website = "https://xbooru.com/index.php?page=post&s=random"
            soup = BeautifulSoup(urllib.request.urlopen(website))
            listLink = []
            for link in soup.findAll('img'):
                listLink.append(link)

            randImageIndex = random.randint(1, (len(listLink) - 1))
            imgUrl = listLink[randImageIndex]

            fuckingnf = str(imgUrl)
            clean = re.findall(r'(https?://[^\s]+)', fuckingnf)

            clean1 = str(clean).replace("[", "")
            clean2 = str(clean1).replace("'", "")
            clean3 = str(clean2).replace("]", "")
            clean4 = str(clean3).replace('"', "")

            fuckingworkaround = f"||{clean4}||"
            if "||||" in fuckingworkaround:
                await fuckiff()
            else:
                f****e = await ctx.send(f"{fuckingworkaround}")
                message_list[ctx.message] = f****e
                await self.bot.process_commands(ctx.message)

        channelid = ctx.channel.name

        #if channelid != "⁄indica⁄":
        #    return

        await fuckiff()

        if not permissions.can_upload(ctx):
            return await ctx.send("I cannot send images here ;>;")
示例#17
0
文件: fun.py 项目: 39hige1/Laikabot
    async def search(self, ctx, *, search):
        """ Searches google """
        fuckmenigga = ctx.message.author
        if discord.utils.get(fuckmenigga.roles, name="Hardmute") != None:
            return
        if ctx.author.id == 746184398852063393:
            return
        try:
            if "toddlercon" in search:
                search = "andy sixx log"
            if "america" in search:
                search = "fat american"
            fuckk = search.replace(" ", "_")
            website = f"https://images.search.yahoo.com/search/images?fr=yfp-t&p={str(fuckk)}"
            soup = BeautifulSoup(urllib.request.urlopen(website))
            listLink = []
            for link in soup.findAll('img'):
                listLink.append(link)

            randImageIndex = random.randint(1, (len(listLink) - 1))
            imgUrl = listLink[randImageIndex]

            fuckingnf = str(imgUrl)
            clean = re.findall(r'(https?://[^\s]+)', fuckingnf)

            clean1 = str(clean).replace("[", "")
            clean2 = str(clean1).replace("'", "")
            clean3 = str(clean2).replace("]", "")
            clean4 = str(clean3).replace('"', "")

            embed = discord.Embed(color=0xe1a6e1)
            embed.set_image(url=f"{clean4}")
            await ctx.send(embed=embed)

            if not permissions.can_upload(ctx):
                return await ctx.send("I cannot send images here ;>;")
        except Exception as e:
            await ctx.send("No results found!")
示例#18
0
    async def on_command_error(self, ctx, error):
        # source: https://gist.github.com/EvieePy/7822af90858ef65012ea500bcecf1612

        # This prevents any commands with local handlers being handled here in on_command_error.
        if hasattr(ctx.command, 'on_error'):
            return

        # This prevents any cogs with an overwritten cog_command_error being handled here.
        cog = ctx.cog
        if cog:
            if cog._get_overridden_method(cog.cog_command_error) is not None:
                return

        ignored = ()

        # Allows us to check for original exceptions raised and sent to CommandInvokeError.
        # If nothing is found. We keep the exception passed to on_command_error.
        error = getattr(error, 'original', error)
        if isinstance(error, ignored):
            # Anything in ignored will return and prevent anything happening.
            return
        elif isinstance(error, errors.CommandNotFound):
            # vai pegar toda a mensagem, depois do prefixo
            comando = ctx.message.content.lower()[len(ctx.prefix):]
            # se o primeiro caracter da mensagem, não for uma letra
            if comando[0] not in ascii_letters:
                # não vai fazer nada
                return
            comando = comando.split(' ')[0]
            mostrar_erro = False
            if ctx.guild:
                conexao = Conexao()
                servidor = ServidorRepository().get_servidor(
                    conexao, ctx.guild.id)
                conexao.fechar()
                if servidor.sugestao_de_comando:
                    mostrar_erro = True
                else:
                    mostrar_erro = False
            commands = []
            for command in self.bot.get_all_commands():
                if comando.lower() == command.category:
                    e = embedHelpCategory(self.bot, ctx, comando)
                    return await ctx.send(embed=e)
                commands.append(command.name)
                commands.append(command.category)
                for alias in command.aliases:
                    commands.append(alias)
            if mostrar_erro:
                msg = f'{ctx.author.mention} <:sad:763839041095204895> eu não achei consegui ' \
                      f'achar o comando "{comando}".'
                sugestao = get_most_similar_item(comando, commands)
                if sugestao:
                    # se a sugestão for pelo menos 50% semelhante ao comando
                    if string_similarity(comando, sugestao) >= 0.6:
                        msg += f'\nVocê quis dizer ``{sugestao}``?'
                msg += f'\nPara desativar esta mensagem, use o comando ``desativar_sugestão``'
                return await ctx.send(msg, delete_after=10)
        elif isinstance(error, errors.NotOwner):
            return await ctx.send(
                f'{ctx.author.mention} você não é meu criador <a:no_no:755774680325029889>'
            )
        elif isinstance(error, errors.MissingRequiredArgument):
            return await self.bot.send_help(ctx)
        elif isinstance(error, errors.MaxConcurrencyReached):
            return await ctx.send(
                f'Calma lá {ctx.author.mention}! Você só pode usar 1 comando por vez!'
            )
        elif isinstance(error, errors.NoPrivateMessage):
            return await ctx.send(
                f'{ctx.author.mention} Este comando só pode ser usado num servidor! <a:atencao:755844029333110815>'
            )
        elif isinstance(error, errors.MissingPermissions):
            if len(error.missing_perms) == 1:
                permissoes = error.missing_perms[0]
            else:
                permissoes = ', '.join(error.missing_perms)
            return await ctx.send(
                f'{ctx.author.mention} Você precisa ter permissão de ``{permissoes}`` para usar este comando!'
            )
        elif isinstance(error, errors.BotMissingPermissions):
            if len(error.missing_perms) == 1:
                permissoes = error.missing_perms[0]
            else:
                permissoes = ', '.join(error.missing_perms)
            return await ctx.send(
                f'{ctx.author.mention} Eu não posso executar este comando, pois não tenho permissão de '
                +
                f'``{permissoes}`` neste servidor! <a:sad:755774681008832623>')
        elif isinstance(error, errors.CheckFailure):
            return await ctx.send(
                f'{ctx.author.mention} você não tem permissão para usar este comando!\nDigite '
                +
                f'`{ctx.prefix}help {ctx.command}` para ver quais permissões você precisa ter!'
            )
        elif isinstance(error, Forbidden):
            if not permissions.can_embed(ctx):
                if ctx.author.permissions_in(
                        ctx.message.channel).administrator:
                    msg = 'Por favor, me dê permissão de "inserir links", para que eu possa mostrar minhas mensagens ;-;'
                else:
                    msg = 'Por favor, peça para um administrador do servidor me dar permissão de "inserir links",' \
                          ' para que eu possa mostrar minhas mensagens ;-;'
                return await ctx.send(msg)
            if not permissions.can_upload(ctx):
                if ctx.author.permissions_in(
                        ctx.message.channel).administrator:
                    msg = 'Por favor, me dê permissão de "anexar arquivos", para que eu possa funcionar corretamente ;-;'
                else:
                    msg = 'Por favor, peça para um administrador do servidor me dar permissão de "anexar arquivos",' \
                          ' para que eu possa funcionar corretamente ;-;'
                return await ctx.send(msg)
            if not permissions.can_react(ctx):
                if ctx.author.permissions_in(
                        ctx.message.channel).administrator:
                    msg = 'Por favor, me dê permissão de "adicionar reações", para que eu possa funcionar corretamente ;-;'
                else:
                    msg = 'Por favor, peça para um administrador do servidor me dar permissão de "adicionar reações",' \
                          ' para que eu possa funcionar corretamente ;-;'
                return await ctx.send(msg)
            await ctx.send(
                f'{ctx.author.mention} eu não tenho permissão para executar esse comando, acho que algum'
                +
                ' administrador deve ter tirado minhas permissões! Com o comando ``invite``você consegue '
                + 'ter o link para me adicionar')
        elif isinstance(error, errors.BadArgument):
            if str(error).startswith('Member') and str(error).endswith(
                    'not found'):
                return await ctx.send(
                    f'{ctx.author.mention} não consegui encontrar esse membro.'
                )
            elif str(error) == 'Esse id não está banido!':
                return await ctx.send(
                    f'{ctx.author.mention} não consegui encontrar um membro banido, com este id: `{error.id}`.'
                )
            elif str(error) == 'Esse membro não está banido!':
                return await ctx.send(
                    f'{ctx.author.mention} não consegui encontrar o membro banido `{error.member}`.'
                )
            elif str(error) == 'Membro mencionado não está banido!':
                return await ctx.send(
                    f'{ctx.author.mention} não consegui encontrar o membro {error.user.mention} na lista de bans.'
                )
        elif isinstance(error, errors.CommandOnCooldown):
            await ctx.send(
                f'Calma lá {ctx.author.mention}, você está usando meus comandos muito rápido!\n'
                + f'Tente novamente em {error.retry_after:.2f} segundos.')
        else:
            if str(error).startswith('duplicate servidor'):
                pass
            elif str(error).startswith('duplicate comando desativado'):
                return await ctx.send(
                    f'<a:atencao:755844029333110815> {ctx.author.mention} Esse comando já está desativado!'
                )
            elif str(error).startswith('Este comando já está ativo!'):
                return await ctx.send(
                    f'<a:atencao:755844029333110815> {ctx.author.mention} Esse comando já está ativado!'
                )
            elif str(error).startswith('blacklisted'):
                return await ctx.send(
                    f'<a:atencao:755844029333110815> {ctx.author.mention} Essa pessoa já está na blacklist!'
                )
            elif str(error).startswith('comando personalizado duplicado'):
                return await ctx.send(
                    f'<a:atencao:755844029333110815> {ctx.author.mention} Esse comando já está cadastrado!'
                )
            else:
                try:
                    return await ctx.send(
                        f'Ocorreu o erro:```py\n{error}```Na execução do comando ```{ctx.message.content}```<a:sad'
                        ':755774681008832623>')
                except:
                    print(
                        f'Ocorreu o erro: {error}\nNa execução do comando {ctx.message.content}'
                    )
示例#19
0
    async def on_command_error(self, ctx, error):
        # source: https://gist.github.com/EvieePy/7822af90858ef65012ea500bcecf1612

        if hasattr(ctx.command, 'on_error'):
            return

        cog = ctx.cog
        if cog:
            if cog._get_overridden_method(cog.cog_command_error) is not None:
                return

        ignored = ()

        error = getattr(error, 'original', error)
        if isinstance(error, ignored):
            return
        elif isinstance(error, errors.NotOwner):
            return await ctx.send(
                f'{ctx.author.mention} você não é meu criador {self.bot.emoji("no_no")}'
            )
        elif isinstance(error, errors.MissingRequiredArgument):
            return await self.bot.send_help(ctx)
        elif isinstance(error, MultipleResults):
            embed = discord.Embed(title='Encontrei mais de um resultado!',
                                  colour=discord.Colour.random(),
                                  timestamp=datetime.utcnow())
            results = error.results
            if len(results) >= 5:
                msg = '\n'.join(f'{u} (ID: {u.id})' for u in results[:5])
                msg += f'\nE outro(s) {len(results) - 5} resultado(s)...'
            else:
                msg = '\n'.join(f'{u} (ID: {u.id})' for u in results)
            embed.add_field(name=msg, value='** **')
            return await ctx.send(embed=embed)
        elif isinstance(error, errors.MaxConcurrencyReached):
            try:
                # vai ver se é o dono
                permissions.is_owner(ctx)
                # se for, usa o comando
                await ctx.command.reinvoke(ctx)
            except errors.NotOwner:  # se não for, dispara o erro
                return await ctx.send(
                    f'Calma lá {ctx.author.mention}! Você só pode usar 1 comando por vez! Se o '
                    'comando possuir páginas, pare o sistema de paginação, antes de usar o '
                    'comando de novo!')
        elif isinstance(error, errors.NoPrivateMessage):
            return await ctx.send(
                f'{ctx.author.mention} Este comando só pode ser usado num servidor! {self.bot.emoji("atencao")}'
            )
        elif isinstance(error, errors.BotMissingPermissions):
            if len(error.missing_perms) == 1:
                permissoes = error.missing_perms[0]
            else:
                permissoes = ', '.join(error.missing_perms)
            return await ctx.send(
                f'{ctx.author.mention} Eu não posso executar este comando, pois não tenho permissão de '
                + f'``{permissoes}`` neste servidor! {self.bot.emoji("sad")}')
        elif isinstance(error, errors.CheckFailure):
            return await ctx.send(
                f'{ctx.author.mention} Você precisa ter permissão de `{ctx.command.perm_user}`'
                ' para usar este comando! ')
        elif isinstance(error, Forbidden):
            if not permissions.can_embed(ctx):
                if ctx.author.permissions_in(
                        ctx.message.channel).administrator:
                    msg = 'Por favor, me dê permissão de "inserir links", para que eu possa mostrar minhas mensagens.'
                else:
                    msg = 'Por favor, peça para um administrador do servidor me dar permissão de "inserir links",' \
                          ' para que eu possa mostrar minhas mensagens.'
                return await ctx.send(msg)
            if not permissions.can_upload(ctx):
                if ctx.author.permissions_in(
                        ctx.message.channel).administrator:
                    msg = 'Por favor, me dê permissão de "anexar arquivos", para que eu possa funcionar corretamente.'
                else:
                    msg = 'Por favor, peça para um administrador do servidor me dar permissão de "anexar arquivos",' \
                          ' para que eu possa funcionar corretamente.'
                return await ctx.send(msg)
            if not permissions.can_react(ctx):
                if ctx.author.permissions_in(
                        ctx.message.channel).administrator:
                    msg = 'Por favor, me dê permissão de "adicionar reações", para que eu possa funcionar corretamente.'
                else:
                    msg = 'Por favor, peça para um administrador do servidor me dar permissão de "adicionar reações",' \
                          ' para que eu possa funcionar corretamente.'
                return await ctx.send(msg)
            await ctx.send(
                f'{ctx.author.mention} eu não tenho permissão para executar esse comando, acho que algum'
                +
                ' administrador deve ter tirado minhas permissões! Com o comando ``invite``você consegue '
                + 'ter o link para me adicionar com todas as permissões.')
        elif isinstance(error, errors.BadArgument):
            if str(error).startswith('Member') and str(error).endswith(
                    'not found'):
                return await ctx.send(
                    f'{ctx.author.mention} não consegui encontrar esse membro.'
                )
            elif str(error) == 'Esse id não está banido!':
                return await ctx.send(
                    f'{ctx.author.mention} não consegui encontrar um membro banido, com este id: `{error.id}`.'
                )
            elif str(error) == 'Esse membro não está banido!':
                return await ctx.send(
                    f'{ctx.author.mention} não consegui encontrar o usuário `{error.member}` na lista'
                    f' de banidos. Teste usar o comando com aspas entre o nome do usuário caso ele'
                    f' tenha um nome com espaços, assim:\n'
                    f'`unban "{error.member} nome legal que o cara tem"`')
            elif str(error) == 'Membro mencionado não está banido!':
                return await ctx.send(
                    f'{ctx.author.mention} não consegui encontrar o membro {error.user.mention} na lista de bans.'
                )
        elif isinstance(error, errors.CommandOnCooldown):
            try:
                # vai ver se é o dono
                permissions.is_owner(ctx)
                # se for, usa o comando
                await ctx.command.reinvoke(ctx)
            except errors.NotOwner:  # se não for, dispara o erro
                await ctx.send(
                    f'Calma lá {ctx.author.mention}, você está usando meus comandos muito rápido!\n'
                    + f'Tente novamente em {error.retry_after:.2f} segundos.')
        elif isinstance(error, DuplicateBlacklist):
            await ctx.send(
                f'{self.bot.emoji("atencao")} {ctx.author.mention} Essa pessoa já está na blacklist!'
            )
        elif isinstance(error, DuplicateComandoDesativado):
            await ctx.send(
                f'{self.bot.emoji("atencao")} {ctx.author.mention} Esse comando já está desativado!'
            )
        elif isinstance(error, ComandoDesativadoNotFound):
            await ctx.send(
                f'{self.bot.emoji("atencao")} {ctx.author.mention} Esse comando já está ativado!'
            )
        elif isinstance(error, DuplicateComandoPersonalizado):
            await ctx.send(
                f'{self.bot.emoji("atencao")} {ctx.author.mention} Esse comando já está cadastrado!'
            )
        elif isinstance(error, DuplicateServidor):
            pass
        else:
            try:
                return await ctx.send(
                    f'Ocorreu o erro:```py\n{error}```Na execução do comando ```{ctx.message.content}```'
                    f'{self.bot.emoji("sad")}')
            except:
                print(
                    f'Ocorreu o erro: {error}\nNa execução do comando {ctx.message.content}'
                )