/PorthBot

Discord bot that runs Porth codeblocks inside Docker

Primary LanguagePythonMIT LicenseMIT

Porth Bot

Discord bot that runs Porth codeblocks inside a Docker

Screenshot

Usage

Place Porth code inside a codeblock using the porth language marker
```porth
include "std.porth"

proc main in
"Hello, World\n" puts
end
```

Development (Virtual Environment)

Dependencies: Python, Poetry, and Docker

  1. Clone the repository
  2. Select python version: poetry env use <python executable>
  3. Install dependencies: poetry install
  4. Run the bot: env DISCORD_TOKEN="token here" poetry run porthbot
  5. Build the Docker image: /build in Discord

Production (System Python)

Dependencies: Python, Poetry, and Docker

  1. Clone the repository
  2. Build the discord bot: poetry build
  3. Install dependencies: pip install --user hikari
  4. Install the package: pip install --user dist/*.tar.gz or pip install --user dist/*.whl
  5. Run the bot: env DISCORD_TOKEN="token here" porthbot
  6. Build the Docker image: /build in Discord