JDsProjects / JDBot

the official JDBot rewrite :D
MIT License
19 stars 34 forks source link

Old Image thing #142

Open JDJGInc opened 6 months ago

JDJGInc commented 6 months ago

async def invert_converter2(url, ctx):
    embed = discord.Embed(color=random.randint(0, 16777215))

    # embed.set_author(name=f"Image requested by {ctx.author}", icon_url=(ctx.author.display_avatar.url))
    # embed.set_image(url=url)
    # embed.set_footer(text="An Unexcepted Error Occured")
    # return embed

    # url = await cdn_upload(ctx.bot, image)

    embed.set_author(name=f"Inverted Image requested by {ctx.author}", icon_url=(ctx.author.display_avatar.url))
    embed.set_image(url=url)
    embed.set_footer(text="powered by some jeyyapi")

    return embed

async def invert_converter(url, ctx):
    embed = discord.Embed(color=random.randint(0, 16777215))

    # embed.set_author(name=f"Image requested by {ctx.author}", icon_url=(ctx.author.display_avatar.url))
    # embed.set_image(url=url)
    # embed.set_footer(text="An Unexcepted Error Occured")
    # return embed

    # url = await cdn_upload(ctx.bot, image)
    embed.set_author(name=f"Inverted Image requested by {ctx.author}", icon_url=(ctx.author.display_avatar.url))
    embed.set_image(url=url)
    embed.set_footer(text="powered by some random api")

    return embed

(may come back someday but idk)

JDJGInc commented 6 months ago

May use the old embed trick again but idk.

Definetly not embed_converter.

JDJGInc commented 5 months ago

May be worth making an image converter to the file type it has or possibly have a way for it to transfer to other types.

Image based only.

Hmm