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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file epicbot-images-1.8.tar.gz.

File metadata

  • Download URL: epicbot-images-1.8.tar.gz
  • Upload date:
  • Size: 3.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

File hashes

Hashes for epicbot-images-1.8.tar.gz
Algorithm Hash digest
SHA256 4c4cda2cf9d9fd25f54397445090b1a9a765fe821c5df27c9d2f3defea8b5c91
MD5 946cb29794c384a098e999a4ba156144
BLAKE2b-256 ee5e0b66acc88dd129cee48761ed6d6b5fd59eb4970c964053b6527ccb18ffc8

See more details on using hashes here.

File details

Details for the file epicbot_images-1.8-py3-none-any.whl.

File metadata

  • Download URL: epicbot_images-1.8-py3-none-any.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

File hashes

Hashes for epicbot_images-1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6e069dc90bfae72a539ac987b3a9728ab745d1b00a5f9ae8aa0686fad885b1ca
MD5 3c89fbd8fa19ba0f2763b9e2697847f9
BLAKE2b-256 f1274fcd75c0227c762e34ed1c6c7718c62bef4002b3edeabd7ba6433dd77313

See more details on using hashes here.

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