docker build -t chicken-bot .
You can either run the script with or without a persistent database and blacklist.
- For ephemeral database and blacklist:
docker run chicken-bot
- To use current directory as a persistent volume:
docker run -v $(pwd):/chicken-bot chicken-bot
-
Install nodejs
-
Install dependencies with:
cd robot-chicken; npm install
-
Install the Babel compiler
-
Make sure you can call
babel
from the command-line -
Run the compiler with
babel chicken-bot.js --out-file transpiled-chicken-bot.js
-
Change env.js.example to your liking and rename it to env.js
-
Run the compiled file with
node transpiled-chicken-bot.js
😎