Skip to main content

An image manipulation module for EpicBot.

Project description

Install

$ pip install epicbot-images

Usage

Memes:

from epicbot_images import memes



# for a discord bot

@bot.command()

async def drake(ctx, first, second):

    await ctx.reply(file=discord.File(memes.drake(first, second)))

    # it's so easy to use

Effects:

from epicbot_images import effects



@bot.command()

async def blur(ctx, user: discord.User):

    await ctx.reply(file=discord.File(effects.blur(await user.avatar.read())))

    # 1 line go brr

Advanced Usage (recommended):

from epicbot_images import effects 

from functools import partial



@bot.command()

async def wiggle(ctx, user: discord.User):

    await ctx.reply(file=discord.File(

        await bot.loop.run_in_executor(None, partial(effects.wiggle, img=await user.avatar.read()))

    ))

I won't be making docs for these, refer to the source code or ask in the support server if you have any questions

Meme templates

  • drake, disappointed, flex_tape, bernie, panik, doge, my_heart

Effects

  • blur, flip, rotate, enhance, ascii, blend, wiggle

Links

Support | Invite EpicBot | Vote EpicBot

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

epicbot-images-1.8.tar.gz (3.3 MB view hashes)

Uploaded Source

Built Distribution

epicbot_images-1.8-py3-none-any.whl (3.3 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page