added gay, currently only gays your profile picture, until i find out how to do it with images the author sends.

This commit is contained in:
Helixu 2021-11-20 15:14:14 +00:00
parent 93fcf25d67
commit e79a2b3d0f

28
bot.py
View file

@ -135,14 +135,26 @@ async def meme(ctx):
json = await resp.json() json = await resp.json()
await ctx.send(json["url"]) await ctx.send(json["url"])
#@bot.command()
#async def help(ctx): @bot.command(brief='makes things gay')
# await ctx.send("""The current list of commands are: async def gay(ctx, member: discord.Member=None):
#fox (Gets an image of a fox) member = member or ctx.author
#activity (Sets bot activity, only works if you are a developer) await ctx.trigger_typing()
#invite (Gives bot invite link) async with aiohttp.ClientSession() as session:
#help (this) async with session.get(
#""") f'https://some-random-api.ml/canvas/gay?avatar={member.avatar_url_as(format="png")}'
) as af:
if 300 > af.status >= 200 :
fp = io.BytesIO(await af.read())
file = discord.File(fp, "gay.png")
embed = discord.Embed(
title="gaaaaaay",
color=0xf1f1f1,
)
embed.set_image(url="attachment://gay.png")
await ctx.send(embed=embed, file=file)
@bot.event @bot.event