A discord bot for TÅGEKAMMERETs discord channel. Created with Discord.js To get understanding of the project, please follow this guide
To run this bot do either of the follwing:
- Install node.js
- Install mongodb
- OPTIONAL:
npm install nodemon --global
If you want nodemon to rerun bot on file changes npm install
- Setup
config.json_template
and rename toconfig.json
- Run instance of
mongod
- Run
mongo < dbsetup.js
- Run
node bot.js
ornodemon bot.js
- Setup
config.json_template
and rename toconfig.json
- Run
docker-compose up
- Run
docker-compose exec mongodb mongo < dbsetup.js
(Only on first run) - Run
docker-compose down
to stop the bot
If using nodemon (The docker setup does so), you can setup nodemon.json to watch files and automatically reload them on save.
To do so, delete the line "ignore":"[*]"
and add files/paths to watch to watch
.