This program is built to allow discord users to type a command and then fill in top/bottom text. This image will be created and then posted in the channel that the message came from.
I'm currently working on making the bot public on discordbots.org. If you want to add the bot click here
- Note about adding the bot: I try to update the bot often, so this may cause the bot to have intermitent issues for an extended period of time.
If you want to make changes yourself or selfhost here is what you can do:
- Bot needs a user acount. (Don't ask me how to do this, tutorials are everywhere)
- Python 3 needs to be installed on whatever device is hosting the bot.
- Impatct font
impact.ttf
must be installed on whatever device is hosting the bot.- Windows doesn't have to worry about this
- Linux must install it using:
sudo apt-get install ttf-mscorefonts-installer
- Pillow must be installed.
pip install pillow
- Discord.py must be installed
pip install discord.py
- Download the source code.
- Make sure that all requirements are met.
- In DMG.py, change
bot.run(token.strip())
tobot.run('YOUR TOKEN HERE')
- You can also make your own token.txt and leave the token in
- Powershell
- cd into the folder where
DMG.py
is located. - type
python DMG.py
- bot is running.
- cd into the folder where
- Linux
- cd into the folder where
DMG.py
is located. - type
python3 DMG.py
- Note: type
python3 DMG.py &
to run the bot in the background.
- Note: type
- bot is running.
- cd into the folder where
- Bot can send memes to discord.
- Bot can send memes through PM.
- Users can suggest edits to the bot that the owner will see.
- Bot will not crash under user inputs.
- Log will be created upon usage or predefined error.
- Bot will check for
./New/
and./Templates/
dirs.
This list is in no particular order.
- More meme templates.
- This requires formatting that is a big project.
- Limit command usage?
- This is to deter spammers. All the commands will go, but it takes a while.
- Get meme templates by file name
- This is so that if I add more memes, I don't have to classify them myself.
- Text Wrapping.
- This can eliminate the need for a smaller char limit, but I have no idea where to begin with it.
- Have server specific settings
- This could be from turning off max chars to disallowing memetypes.
- Admin/role specific commands
- This would tie into specific settings so not everybody can turn stuff off.
- Discord.py - Discord API wrapper to run a discord bot in Python.
- Note: This includes content from discord-rewrite.py. Most of this is the documentation for discord.ext.commands
- Pillow - Image formatting tool used to create the memes.
)top <memetype> <string>
)bottom <memetype> <string>
)tb <memetype> <"string"> <"string">
)list
)viewall
)viewall top
)viewall bottom
)viewall tb
)viewall <memetype>
)suggest <string>
)dev
)help