예제 #1
0
 async def titfuck(self, ctx, pictureid='random'):
     """Tit f*****g."""
     timesused("titfuck")
     if pictureid == "random":
         filename = random.choice(os.listdir("cogs/NSFW/BoobJobs"))
         file = discord.File("cogs/NSFW/BoobJobs/" + filename,
                             filename="image.png")
         embed = discord.Embed(colour=randomhex(hex))
         embed.set_image(url="attachment://image.png")
         embed.set_footer(
             text=
             f'This command has been used {usagecount["titfuck"]} times.\nID: {filename.replace(".png", "")}'
         )
         await ctx.send(file=file, embed=embed)
     else:
         picturepath = pictureid + ".png"
         if picturepath in (os.listdir("cogs/NSFW/BoobJobs")):
             file = discord.File("cogs/NSFW/BoobJobs/" + picturepath,
                                 filename="image.png")
             embed = discord.Embed(colour=randomhex(hex))
             embed.set_image(url="attachment://image.png")
             embed.set_footer(
                 text=
                 f'This command has been used {usagecount["titfuck"]} times.'
             )
             await ctx.send(file=file, embed=embed)
         else:
             imagelist = os.listdir("cogs/NSFW/BoobJobs")
             imagecount = len(imagelist)
             await ctx.send(
                 f'That image ID is invalid. Please try a number from 1 to {imagecount}.'
             )
예제 #2
0
 async def editsnipe(self, ctx):
     channel = ctx.channel
     try:  # This piece of code is run if the bot finds anything in the dictionary
         embed = discord.Embed(
             title=f"Last edited message in #{channel.name}",
             colour=randomhex(hex))
         embed.add_field(
             name=f'\uFEFF',
             value=
             f'**Original message:** {EditsnipeOriginalContent[channel.id]}',
             inline=False)
         embed.add_field(
             name=f'\uFEFF',
             value=
             f'**Edited message:** {EditsnipeEditedContent[channel.id]}',
             inline=False)
         embed.set_footer(
             text=
             f"This message was sent by {EditsnipeMessageAuthor[channel.id]}"
         )
         await ctx.send(embed=embed)
     except:  # This piece of code is run if the bot doesn't find anything in the dictionary
         await ctx.send(
             f"I couldn't find any recently edited messages in <#{channel.id}>"
         )
예제 #3
0
    async def botecho(self, ctx, *, arg):
        """echoes your input in bot commands of rocketcat"""
        message = ctx.message
        # add your user ID to usersend to be notified when someone uses the command.
        usersend = self.bot.get_user(YOUR_USER_ID)
        # add a friend's user ID below for them to be notified when someone uses the command.
        user2send = self.bot.get_user(FRIEND_USER_ID)
        # add the channel ID for the channel you would like the message to be sent in below
        channelsend = self.bot.get_channel(SERVER_BOT_COMMANDS)
        # IMPORTANT: if you do not add your user ID here and your friend's user ID below, then the command will not work.
        # if you do not want to add a friend, remove the comment on the line below, delete the if statement that says "(YOUR_USER_ID, FRIEND_USER_ID):" and remove all instances of "user2send"
        # if message.author.id = YOUR_USER_ID
        if message.author.id in (YOUR_USER_ID, FRIEND_USER_ID):
            await channelsend.send(f'{arg}')
            # the code below this comment is irrelevant, the only thing needed is the await channel.send and if you want you could keep that else and put a return statement after it.
            usersentembed = discord.Embed(colour=randomhex(hex))

            usersentembed.set_footer(text='User sent')

            usersentembed.set_author(name='b1nzy', icon_url='https://cdn.discordapp.com/attachments/794323054317928478/794385737235562506/image.png')

            usersentembed.add_field(name='Author:', value=f'<@{message.author.id}>')
            usersentembed.add_field(name='Message:', value=f'{arg}')

            usersentembed.add_field(name='Channel:', value=f'<#{SERVER_BOT_COMMANDS}>')
            await usersend.send(embed=usersentembed)
            await user2send.send(embed=usersentembed)
            print(f'\n\nIMPORTANT\n{message.author} sent "{arg}" in {channelsend}.\nIMPORTANT\n')
        else:
            usersentembed = discord.Embed(colour=randomhex(hex))

            usersentembed.set_footer(text='User tried to send')

            usersentembed.set_author(name='b1nzy', icon_url='https://cdn.discordapp.com/attachments/794323054317928478/794385737235562506/image.png')

            usersentembed.add_field(name='Author:', value=f'<@{message.author.id}>')
            usersentembed.add_field(name='Message:', value=f'{arg}')

            usersentembed.add_field(name='Channel:', value=f'<#{SERVER_BOT_COMMANDS}>')
            await usersend.send(embed=usersentembed)
            await user2send.send(embed=usersentembed)
            print(f'\n\nIMPORTANT\n{message.author} tried to send "{arg}" in {channelsend}.\nIMPORTANT\n')
예제 #4
0
    async def unban(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `unban`')

        embed.add_field(name=f'**Description:** Unbans the specified member.',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Usage:** `$unban [member]`',
                        value='\uFEFF',
                        inline=False)
        await ctx.send(embed=embed)
예제 #5
0
    async def neko(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `neko`')

        embed.add_field(name=f'**Description:** Sends a neko picture.',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Usage:** `$neko`',
                        value='\uFEFF',
                        inline=False)
        await ctx.send(embed=embed)
예제 #6
0
    async def slap(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `slap`')

        embed.add_field(name=f'**Description:** Sends a slapping gif.',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Usage:** `$slap`',
                        value='\uFEFF',
                        inline=False)
        await ctx.send(embed=embed)
예제 #7
0
    async def invite(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `invite`')

        embed.add_field(name=f'**Description:** Sends b1nzy\'s invite link.',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Usage:** `$invite`',
                        value='\uFEFF',
                        inline=False)
        await ctx.send(embed=embed)
예제 #8
0
    async def pokemon(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `pokemon`')

        embed.add_field(name=f'**Description:** Sends a random pokemon.',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Usage:** `$pokemon`',
                        value='\uFEFF',
                        inline=False)
        await ctx.send(embed=embed)
예제 #9
0
    async def toprole(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `toprole`')

        embed.add_field(
            name=f'**Description:** Shows a member\'s highest role.',
            value='\uFEFF',
            inline=False)
        embed.add_field(name=f'**Usage:** `$toprole [member]`',
                        value='\uFEFF',
                        inline=False)
        await ctx.send(embed=embed)
예제 #10
0
    async def joined(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `joined`')

        embed.add_field(
            name=f'**Description:** Shows when a member joined the server.',
            value='\uFEFF',
            inline=False)
        embed.add_field(name=f'**Usage:** `$joined [member]`',
                        value='\uFEFF',
                        inline=False)
        await ctx.send(embed=embed)
예제 #11
0
    async def ass(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `ass`')

        embed.add_field(name=f'**Description:** Sends a booty picture.',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Usage:** `$ass`',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Aliases:**', value='booty', inline=False)
        await ctx.send(embed=embed)
예제 #12
0
    async def translate(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `translate`')

        embed.add_field(
            name=f'**Description:** Translates the inputted text to english.',
            value='\uFEFF',
            inline=False)
        embed.add_field(name=f'**Usage:** `$translate [input]`',
                        value='\uFEFF',
                        inline=False)
        await ctx.send(embed=embed)
예제 #13
0
    async def spreading(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `spreading`')

        embed.add_field(
            name=f'**Description:** Sends a picture of someone spreading.',
            value='\uFEFF',
            inline=False)
        embed.add_field(name=f'**Usage:** `$spreading`',
                        value='\uFEFF',
                        inline=False)
        await ctx.send(embed=embed)
예제 #14
0
    async def credits(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `credits`')

        embed.add_field(name=f'**Description:** Who helped me make b1nzyBot.',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Usage:** `$credits`',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Aliases:**', value='credit', inline=False)
        await ctx.send(embed=embed)
예제 #15
0
    async def topic(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `topic`')

        embed.add_field(
            name=f'**Description:** Sends a topic of conversation.',
            value='\uFEFF',
            inline=False)
        embed.add_field(name=f'**Usage:** `$topic`',
                        value='\uFEFF',
                        inline=False)
        await ctx.send(embed=embed)
예제 #16
0
    async def perms(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `perms`')

        embed.add_field(
            name=f'**Description:** Shows the specified member\'s permissions.',
            value='\uFEFF',
            inline=False)
        embed.add_field(name=f'**Usage:** `$perms [member]`',
                        value='\uFEFF',
                        inline=False)
        await ctx.send(embed=embed)
예제 #17
0
    async def suggest(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `suggest`')

        embed.add_field(
            name=
            f'**Description:** Suggest new features and maybe they\'ll get added. <:smiling:795774009136513084>',
            value='\uFEFF',
            inline=False)
        embed.add_field(name=f'**Usage:** `$suggest [suggestion]`',
                        value='\uFEFF',
                        inline=False)
        await ctx.send(embed=embed)
예제 #18
0
 async def suggest(self, ctx, *, suggestion):
     """submit ideas for new features!"""
     message = ctx.message
     user = self.bot.get_user(YOUR_USER_ID)
     guild = ctx.message.guild
     f = open("cogs/suggestions.txt", "a")
     embed = discord.Embed(colour=randomhex(hex))
     embed.add_field(name=f'**Author:** <@{message.author.id}> - {message.author.id}', value=f'\uFEFF')
     embed.add_field(name=f'**Server:** {guild.name} - {guild.id}', value=f'\uFEFF')
     embed.add_field(name=f'**Suggestion:** {suggestion}', value=f'\uFEFF')
     await user.send(embed=embed)
     await ctx.send(f'Your submission has been recieved, I may contact you with some questions if it is accepted.')
     f.write(f'{message.author} - <@{message.author.id}> suggested: "{suggestion}"\n')
예제 #19
0
    async def meme(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `meme`')

        embed.add_field(
            name=
            f'**Description:** Sends a meme that\'s probably not very funny.',
            value='\uFEFF',
            inline=False)
        embed.add_field(name=f'**Usage:** `$meme`',
                        value='\uFEFF',
                        inline=False)
        await ctx.send(embed=embed)
예제 #20
0
    async def insult(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `insult`')

        embed.add_field(
            name=
            f'**Description:** Insults the specified user, if noone is specified, insults you.',
            value='\uFEFF',
            inline=False)
        embed.add_field(name=f'**Usage:** `$insult`',
                        value='\uFEFF',
                        inline=False)
        await ctx.send(embed=embed)
예제 #21
0
    async def credits(self, ctx):
        """displays the bot's credits. included is anybody who helped me make this bot and any code that was copied from other bots."""
        embed = discord.Embed(title='Credits',
                              description="credits, anybody listed here helped me either directly or indirectly in the making of this bot.",
                              colour=randomhex(hex))
        embed.set_author(name='B1nzyBot',
                         url='https://takeb1nzyto.space',
                         icon_url='https://cdn.discordapp.com/attachments/794323054317928478/794385737235562506/image.png')

        embed.add_field(name='Inspiration', value='[Click here](https://github.com/twotxh)')
        embed.add_field(name='More inspiration', value='[Click here](https://takeb1nzyto.space)')

        await ctx.send(embed=embed)
예제 #22
0
    async def quote(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `quote`')

        embed.add_field(
            name=
            f'**Description:** Sends a quote from a pre-selected list of quotes.',
            value='\uFEFF',
            inline=False)
        embed.add_field(name=f'**Usage:** `$quote`',
                        value='\uFEFF',
                        inline=False)
        await ctx.send(embed=embed)
예제 #23
0
    async def cat(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `cat`')

        embed.add_field(name=f'**Description:** Sends a random cat picture!',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Usage:** `$cat`',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Aliases:**',
                        value='cats\ncatpic\ncatpics\ncatpicture\ncatpictures',
                        inline=False)
        await ctx.send(embed=embed)
예제 #24
0
    async def eightball(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `8ball`')

        embed.add_field(
            name=
            f'**Description:** Ask a yes/no question, and b1nzy will answer.',
            value='\uFEFF',
            inline=False)
        embed.add_field(name=f'**Usage:** `$8ball [question]`',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Aliases:**', value='eightball', inline=False)
        await ctx.send(embed=embed)
예제 #25
0
    async def math(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `math`')

        embed.add_field(
            name=
            f'**Description:** Does math. Can only do simple operations (+, -, /, and *).',
            value='\uFEFF',
            inline=False)
        embed.add_field(
            name=f'**Usage:** `$math [number] [operation] [number]`',
            value='\uFEFF',
            inline=False)
        await ctx.send(embed=embed)
예제 #26
0
    async def uwu(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `uwu`')

        embed.add_field(name=f'**Description:** UwUizes your message.',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Usage:** `$uwu [input]`',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Aliases:**',
                        value='uwuize\nowo\nowoize',
                        inline=False)
        await ctx.send(embed=embed)
예제 #27
0
    async def bunny(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `bunny`')

        embed.add_field(name=f'**Description:** Sends a bunny suit picture.',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Usage:** `$bunny`',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Aliases:**',
                        value='bunnies\nbunnysuit\nbunnygirl',
                        inline=False)
        await ctx.send(embed=embed)
예제 #28
0
    async def trap(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `trap`')

        embed.add_field(name=f'**Description:** Sends a trap picture.',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Usage:** `$trap`',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Aliases:**',
                        value='traps\nfemboy\nfemboys',
                        inline=False)
        await ctx.send(embed=embed)
예제 #29
0
    async def clear(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `clear`')

        embed.add_field(
            name=
            f'**Description:** Clears the specified number of messages, if left blank 10 messages will be cleared.',
            value='\uFEFF',
            inline=False)
        embed.add_field(name=f'**Usage:** `$clear [amount]`',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Aliases:**', value='purge', inline=False)
        await ctx.send(embed=embed)
예제 #30
0
    async def suicide(self, ctx):
        embed = discord.Embed(colour=randomhex(hex),
                              title='**Command:** `suicide`')

        embed.add_field(
            name=f'**Description:** Sends a list of suicide hotlines.',
            value='\uFEFF',
            inline=False)
        embed.add_field(name=f'**Usage:** `$suicide`',
                        value='\uFEFF',
                        inline=False)
        embed.add_field(name=f'**Aliases:**',
                        value='suicidal\nselfharm\nhelpme',
                        inline=False)
        await ctx.send(embed=embed)