-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix manim rendering when the code block starts with
python
(#42)
* Update dependencies aiohttp (3.8.1) was not supporting PEP 517 builds. (on M1) * Fix manim rendering when the code block starts with `python` regex union matches are eager so when it found `py` it stopped, without looking for `python` * More detailed instructions in the README --------- Co-authored-by: kraktus <[email protected]> Co-authored-by: Benjamin Hackl <[email protected]>
- Loading branch information
1 parent
418a3c3
commit 193ba74
Showing
3 changed files
with
383 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
# DiscordManimator | ||
|
||
A Manim Rendering Bot for Discord. Requires a working `docker` environment: the `manimcommunity/manim:stable` image is used for rendering. | ||
A Manim Rendering Bot for Discord. | ||
|
||
## How to run | ||
|
||
### Deploying the Bot | ||
Prerequisites: | ||
- Docker dameon running with the `manimcommunity/manim:stable` image pulled | ||
- `poetry`, a python dependency manager | ||
- A discord bot token with the `MESSAGE CONTENT` Intent enabled. | ||
|
||
After obtaining a Discord bot token, make a new file called config.py in the same directory by copying config_example.py. Edit the new config.py and add your token. The bot is then started by running `python DiscordManimator.py`. | ||
Deploy: | ||
- run `poetry install` | ||
- make a new file `config.py` in this directory based on `config_example.py` including the bot token | ||
- run `poetry run python DiscordManimator.py` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.