Skip to content

Simple module that makes embed creation easier, and also has the added function to save embeds into a textfile.

Notifications You must be signed in to change notification settings

zenercurrent/discord-embedtemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

discord-embedtemplate

discord bot embed builder that provides an easier way to create embeds and has an additional feature to save them for usage later on.


Dependencies

  • discord

pip install discord or pip install -r requirements.txt


Examples

Creating a simple Embed that the bot can send to Discord.

import DiscBotEmbedTemplate as DBET

embed = DBET.embedtemplate(
    title="title",
    descript="descript",
    url="https://github.com/zenercurrent/discord-embedtemplate",
    name="Name",
    icon="https://cdn.discordapp.com/attachments/720986344020508892/739479274922442792/unknown.png",
    thumb="https://cdn.discordapp.com/attachments/720986344020508892/739479274922442792/unknown.png",
    footer="footer"
)

Example Embed

More in-depth examples are provided and can be found in the examples folder.


Usage

Saving an Embed object as a dict into a text file for easy accessibility. Added bonus if saved as a json format for more organised extraction.

store = DBET.EDictFile(file=path, embed=embed)
store.add(prefix="{\"test2\": ", suffix="}")

database.txt

Examples also show how to add and get these values.


About

Simple module that makes embed creation easier, and also has the added function to save embeds into a textfile.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages