Python3 Wrapper for Eclyssia-api (Eclyssia-api) using aiohttp
pip install eclyssia
pip install git+https://github.com/Zenrac/eclyssia.py
- Python3+
- aiohttp
- asyncio
Pluggable Client for Discord bots
from discord.ext.commands import Bot
from eclyssia import Client
bot = Bot(command_prefix='=')
Client.pluggable(bot=bot, token="PassWord123")
@bot.command()
async def triggered(ctx):
image = await bot.eclyssia.get_image(image_type='triggered', url=ctx.author.avatar_url_as(format='png'))
await ctx.send(file=image)
Without Pluggable Client
from discord.ext.commands import Bot
from eclyssia import Client
bot = Bot(command_prefix='=')
eclyssia = Client(token="PassWord123")
@bot.command()
async def triggered(ctx):
image = await eclyssia.get_image(image_type='triggered', url=ctx.author.avatar_url_as(format='png'))
await ctx.send(file=image)
Generated image
await eclyssia.get_image(image_type='presidentialalert', text=TextHere)
Get BytesIO instead of discord.File
file = await eclyssia.get_image(image_type='triggered', url=URLHERE, discordfile=False)
# file type is BytesIO instead of discord.File
Get image variants
file = await eclyssia.get_image(image_type='triggered', url=URLHERE, type=1)
# file image is type 1 instead of type 0.
This project is licensed under the MIT License - see the LICENSE file for details