예제 #1
0
    async def fox(self, ctx):
        async with aiohttp.ClientSession() as cs:
            async with cs.get('https://randomfox.ca/floof/') as r:
                res = await r.json()
                embed = discord.Embed(color=self.bot.embed_color,
                                      title="→ Random Fox! ")
                embed.set_image(url=res['image'])

                await ctx.send(embed=embed)

                logger.info(f"Images | Sent Fox: {ctx.author}")
예제 #2
0
    async def dog(self, ctx):
        async with aiohttp.ClientSession() as cs:
            async with cs.get('https://dog.ceo/api/breeds/image/random') as r:
                res = await r.json()
                embed = discord.Embed(color=self.bot.embed_color,
                                      title="→ Random Dog! 🐕")
                embed.set_image(url=res['message'])

                await ctx.send(embed=embed)

                logger.info(f"Images | Sent Dog: {ctx.author}")
예제 #3
0
    async def cat(self, ctx):
        async with aiohttp.ClientSession() as cs:
            async with cs.get('https://some-random-api.ml/img/cat') as r:
                res = await r.json()
                embed = discord.Embed(color=self.bot.embed_color,
                                      title="→ Random Cat! 🐈")
                embed.set_image(url=res['link'])

                await ctx.send(embed=embed)

                logger.info(f"Images | Sent Cat: {ctx.author}")
예제 #4
0
    async def duck(self, ctx):
        async with aiohttp.ClientSession() as cs:
            async with cs.get("https://random-d.uk/api/v1/random") as r:
                res = await r.json()
                embed = discord.Embed(color=self.bot.embed_color,
                                      title="→ Random Duck")
                embed.set_image(url=res['url'])

                await ctx.send(embed=embed)

                logger.info(f"Images | Sent Random Duck: {ctx.author}")
예제 #5
0
    async def clyde(self, ctx, *, text):
        async with aiohttp.ClientSession() as cs:
            async with cs.get(f"https://nekobot.xyz/api/imagegen?type=clyde&text={text}") as r:
                res = await r.json()
                embed = discord.Embed(
                    color=self.bot.embed_color,
                    title="→ Clyde Bot 🤖"
                )
                embed.set_image(url=res['message'])

                await ctx.send(embed=embed)

                logger.info(f"Images | Sent Clyde: {ctx.author}")
예제 #6
0
    async def trumptweet(self, ctx, *, text: str):
        async with aiohttp.ClientSession() as cs:
            async with cs.get(f"https://nekobot.xyz/api/imagegen?type=trumptweet&text={text}") as r:
                res = await r.json()
                embed = discord.Embed(
                    color=self.bot.embed_color,
                    title="→ Trump Tweet"
                )
                embed.set_image(url=res["message"])

                await ctx.send(embed=embed)

                logger.info(f"Images | Sent Trump Tweet: {ctx.author} | Text: {text}")
예제 #7
0
    async def redpanda(self, ctx):
        async with aiohttp.ClientSession() as cs:
            async with cs.get("https://some-random-api.ml/img/red_panda") as r:
                res = await r.json()
                embed = discord.Embed(
                    color=self.bot.embed_color,
                    title="→ Random Panda",
                )
                embed.set_image(url=res['link'])

                await ctx.send(embed=embed)

                logger.info(f"Images | Sent Panda Image: {ctx.author}")
예제 #8
0
    async def mind(self, ctx, *, text):
        async with aiohttp.ClientSession() as cs:
            async with cs.get(f"https://nekobot.xyz/api/imagegen?type=changemymind&text={text}") as r:
                res = await r.json()
                embed = discord.Embed(
                    color=self.bot.embed_color,
                    title="→ Change My Mind"
                )
                embed.set_image(url=res["message"])

                await ctx.send(embed=embed)

                logger.info(f"Images | Sent mind: {ctx.author}")
예제 #9
0
    async def coffee(self, ctx):
        async with aiohttp.ClientSession() as cs:
            async with cs.get("https://coffee.alexflipnote.dev/random.json") as r:
                res = await r.json()
                embed = discord.Embed(
                    color=self.bot.embed_color,
                    title="→ Daily Coffee",
                )
                embed.set_image(url=res["file"])

                await ctx.send(embed=embed)

                logger.info(f"Images | Sent Coffee: {ctx.author}")
예제 #10
0
    async def bird(self, ctx):
        async with aiohttp.ClientSession() as cs:
            async with cs.get(f"https://api.ksoft.si/meme/random-image", params={"tag": "birb"},
                              headers={"Authorization": f"Bearer {os.environ.get('ksoft_key')}"}) as r:
                res = await r.json()
                embed = discord.Embed(
                    color=self.bot.embed_color,
                    title=f"→ Random Bird",
                )
                embed.set_image(url=res['url'])

                await ctx.send(embed=embed)

                logger.info(f"Images | Sent Random Bird: {ctx.author}")
예제 #11
0
    async def baguette(self, ctx):
        picture = ctx.author.avatar_url_as(size=1024, format=None, static_format='png')
        async with aiohttp.ClientSession() as cs:
            async with cs.get(f"https://nekobot.xyz/api/imagegen?type=baguette&url={picture}") as r:
                res = await r.json()
                embed = discord.Embed(
                    color=self.bot.embed_color,
                    title=f"→ {ctx.author.name} eating a baguette"
                )
                embed.set_image(url=res["message"])

                await ctx.send(embed=embed)

                logger.info(f"Images | Sent Baguette: {ctx.author}")
예제 #12
0
    async def ph(self, ctx):
        picture = ctx.author.avatar_url_as(size=1024, format=None, static_format='png')
        async with aiohttp.ClientSession() as cs:
            async with cs.get(f"https://nekobot.xyz/api/imagegen?type=phcomment&image={picture}&text=That was pretty sick&username={ctx.author}") as r:
                res = await r.json()
                embed = discord.Embed(
                    color=self.bot.embed_color,
                    title="→ Cornhub"
                )
                embed.set_image(url=res["message"])

                await ctx.send(embed=embed)

                logger.info(f"Images | Sent PH: {ctx.author}")
예제 #13
0
    async def triggered(self, ctx):
        picture = ctx.author.avatar_url_as(size=1024, format=None, static_format='png')
        async with aiohttp.ClientSession() as cs:
            async with cs.get(f"https://some-random-api.ml/canvas/triggered?avatar={picture}") as r:
                res = io.BytesIO(await r.read())
                triggered_file = discord.File(res, filename=f"triggered.gif")
                embed = discord.Embed(
                    color=self.bot.embed_color,
                    title="→ Triggered",
                )
                embed.set_image(url="attachment://triggered.gif")

                await ctx.send(embed=embed, file=triggered_file)

                logger.info(f"Images | Sent Triggered: {ctx.author}")
예제 #14
0
    async def youtube(self, ctx, *, comment):
        picture = ctx.author.avatar_url_as(size=1024, format=None, static_format='png')
        async with aiohttp.ClientSession() as cs:
            async with cs.get(f"https://some-random-api.ml/canvas/youtube-comment?avatar={picture}&username={ctx.author.name}&comment={comment}") as r:
                res = io.BytesIO(await r.read())
                youtube_file = discord.File(res, filename=f"youtube.jpg")
                embed = discord.Embed(
                    color=self.bot.embed_color,
                    title="→ Youtube comment"
                )
                embed.set_image(url="attachment://youtube.jpg")

                await ctx.send(embed=embed, file=youtube_file)

                logger.info(f"Images | Sent Youtube: {ctx.author}")
예제 #15
0
    async def iphone(self, ctx, member: discord.Member):
        picture = member.avatar_url_as(size=1024, format=None, static_format='png')
        async with aiohttp.ClientSession() as cs:
            async with cs.get(f"https://nekobot.xyz/api/imagegen?type=iphonex&url={picture}") as r:
                res = await r.json()
                print(res)
                embed = discord.Embed(
                    color=self.bot.embed_color,
                    title=f"→ Thats a nice wallpaper of {member}",
                )
                embed.set_image(url=res["message"])

                await ctx.send(embed=embed)

                logger.info(f"Images | Sent Trap {ctx.author}")
예제 #16
0
    async def captcha(self, ctx):
        avatar = ctx.author.avatar_url_as(size=1024, format=None, static_format='png')
        async with aiohttp.ClientSession() as cs:
            async with cs.get(f"https://nekobot.xyz/api/imagegen?type=captcha&url={avatar}&username=Orange") as r:
                res = await r.json()
                embed = discord.Embed(
                    color=self.bot.embed_color,
                    title="→ Captcha Verification",

                )
                embed.set_image(url=res["message"])

                await ctx.send(embed=embed)

                logger.info(f"Images | Sent Captcha: {ctx.author}")
예제 #17
0
    async def vs(self, ctx, member1: discord.Member, member2: discord.Member):
        member1 = member1.avatar_url_as(size=1024, format=None, static_format='png')
        member2 = member2.avatar_url_as(size=1024, format=None, static_format='png')
        async with aiohttp.ClientSession() as cs:
            async with cs.get(
                    f"https://nekobot.xyz/api/imagegen?type=whowouldwin&user1={member1}&user2={member2}") as r:
                res = await r.json()
                embed = discord.Embed(
                    color=self.bot.embed_color,
                    title="→ Who Would Win"
                )
                embed.set_image(url=res["message"])

                await ctx.send(embed=embed)

                logger.info(f"Images | Sent Who Would Win: {ctx.author}")
예제 #18
0
    async def magik(self, ctx, member: discord.Member, intensity: int = 5):
        avatar = member.avatar_url_as(size=1024, format=None, static_format='png')
        emoji = ":penguin:"

        message = await ctx.send(f"{emoji} — **Processing the image please wait!**")
        await message.delete(delay=3)

        async with aiohttp.ClientSession() as cs:
            async with cs.get(f"https://nekobot.xyz/api/imagegen?type=magik&image={avatar}&intensity={intensity}") as r:
                res = await r.json()
                embed = discord.Embed(
                    color=self.bot.embed_color,
                    title="→ Magik"
                )
                embed.set_image(url=res["message"])

                await ctx.send(embed=embed)

                logger.info(f"Images | Sent Magik: {ctx.author}")