Discord bot that runs Porth codeblocks inside a Docker
Place Porth code inside a codeblock using the porth language marker
```porth
include "std.porth"
proc main in
"Hello, World\n" puts
end
```
Dependencies: Python, Poetry, and Docker
- Clone the repository
- Select python version:
poetry env use <python executable>
- Install dependencies:
poetry install
- Run the bot:
env DISCORD_TOKEN="token here" poetry run porthbot
- Build the Docker image:
/build
in Discord
Dependencies: Python, Poetry, and Docker
- Clone the repository
- Build the discord bot:
poetry build
- Install dependencies:
pip install --user hikari
- Install the package:
pip install --user dist/*.tar.gz
orpip install --user dist/*.whl
- Run the bot:
env DISCORD_TOKEN="token here" porthbot
- Build the Docker image:
/build
in Discord