Skip to content

Embed Templator

Latest
Compare
Choose a tag to compare
@Sigmanificient Sigmanificient released this 24 Aug 14:53
· 204 commits to main since this release

A Python Template manager for your discord bot to keep your embeds simple consistent


  • load function allow to link the client to the embed templator in order for better embed customization.
  • auto_author can be toggled to set the author to the command user
  • colour is set to bot color by default
  • update can be override to change the embed just better send.
  • setup can be override to set default part dynamically

Example usage

from discord.ext import commands

from embed_templator import Embed

token = ''
client = commands.Bot(command_prefix=',')

Embed.load(client, auto_author=True)


@client.command()
async def embed_example(ctx):
    await ctx.send(embed=Embed(ctx))


@client.command()
async def ping(ctx):
    await ctx.send(embed=Embed(ctx)(description='pong!'))

client.run(token)