Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
/ PorthBot Public archive

Discord bot that runs Porth codeblocks inside Docker

License

Notifications You must be signed in to change notification settings

ShayBox/PorthBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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