Discord REPL
A discord bot to run code in containers.
Development
Requirements
Install pipenv
python -m pip install --user pipenv
Prepare the environment
pipenv install --dev
Run the tests
pipenv run test
Running the bot
First of all you will need to create a application/bot on discord. Here are some usefully links:
Get your bot token and add it to .env
or as variable when running the bot.
Using .env
.
Add to the .env
echo "DISCORD_TOKEN=... >> .env
Run the bot
pipenv run bot
Take care of your token, don't commit it.
Using as variable
DISCORD_TOKEN=... pipenv run bot