A Discord Bot buildt using Discord.js and node.js
Clone this Repository using git clone https://github.com/gerritwellen/gerritBot.git
-
Create an application - optionally set name, description, avatar.
-
Select Bot from left navigation and "Add Bot" - set name and icon
-
Add bot to your server with the url: https://discord.com/oauth2/authorize?client_id=YOUR_CLIENT_ID&scope=bot
-
Copy
config.json.sample
toconfig.json
and enter your credentials/tokens/...
- Install dependencies:
npm install
- Run
npm run deploy
to delopy the SlashCommands - Start using nodeon (automatioc restart)
nodemon index.js
- Install dependencies:
npm install --only=production
- Run
npm run delpoy
to delopy the SlashCommands - Start:
node index.js
- Have Repo cloned and config.json filled out
- Build the Container using
docker build . -t <your username>/gerritbot
- Run the Container using
docker run -d --name gerritBot <your username>/gerritbot