marcelotk15 / FORMBot

A discord bot for TÅGEKAMMERETs discord channel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FORMBot

A discord bot for TÅGEKAMMERETs discord channel. Created with Discord.js To get understanding of the project, please follow this guide

Dependencies

Usage

To run this bot do either of the follwing:

Without docker and docker-compose

  • 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 to config.json
  • Run instance of mongod
  • Run mongo < dbsetup.js
  • Run node bot.js or nodemon bot.js

With docker and docker-compose

  • Setup config.json_template and rename to config.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

Nodemon configuration

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.

About

A discord bot for TÅGEKAMMERETs discord channel

License:GNU Lesser General Public License v3.0


Languages

Language:JavaScript 99.8%Language:Dockerfile 0.2%