r3w0p / memeoff Goto Github PK
View Code? Open in Web Editor NEWA Discord bot for fast meme creation.
License: MIT License
A Discord bot for fast meme creation.
License: MIT License
When trying to run run_discord.py outside of the memeoff directory in which it is situated, PIL fails to load the necessary fonts from config
.
I.e. when running...
/path/to/venv/bin/python3 /path/to/run_discord.py -token <token>
...instead of...
./venv/bin/python3 ./run_discord.py -token <token>
Traceback (most recent call last): File "/path/to/run_discord.py", line 6, in <module> from meme import * File "/path/to/meme.py", line 6, in <module> FONT_ARIMO = ImageFont.truetype(FONT_ARIMO_PATH, 36) File "/path/to/venv/lib/python3.7/site-packages/PIL/ImageFont.py", line 852, in truetype return freetype(font) File "/path/to/venv/lib/python3.7/site-packages/PIL/ImageFont.py", line 849, in freetype return FreeTypeFont(font, size, index, encoding, layout_engine) File "/path/to/venv/lib/python3.7/site-packages/PIL/ImageFont.py", line 210, in __init__ font, size, index, encoding, layout_engine=layout_engine OSError: cannot open resource
When a user types -m -help
, the bot should either reply or DM a short message explaining what all the bot's features are and how to use them with appropriate commands.
It can be frustrating when a meme doesn't work because of a syntax error. The bot should not delete messages trying to use it immediately. Instead, the messages should be left up for approximately 1 minute to give users a chance to edit their requests. The bot should regularly check for edits to these messages. If none have been made for the specified length of time, then the messages can be deleted as normal.
Most aspects of the memeoff software shall be specified on execution
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.