- install on Linux: clone repo
install node
install npm
install docker
install docker-compose
npm install
- Find your bots token, by going to https://discordapp.com/developers/applications/ and finding your server.
- Click on your application -> Bot -> Token -> "Copy"
- Set your discord bots token in a config.json file like this(Git will ignore this file so that the token will not be public):
{
"prefix": "!",
"token" : "token-id"
}
Start Bot(-d is to run in the background):
docker-compose up -d
Start Bot with a rebuild:
docker-compose up --build --remove-orphans -d
Remove Stopped Bot
docker-compose rm -f
Stop the Bot(if you ran it with -d)
docker-compose down
Install node 14+ on Linux:
$ curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
$ sudo bash nodesource_setup.sh
Install node 14+ on Windows:
https://nodejs.org/en/download/current/
Install FFMPEG on Linux:
$ sudo apt install ffmpeg
install npm packages on Windows https://github.com/nodejs/node-gyp#on-windows
install packages:
$ npm install
run to build the go binaries that the docker file builds
cd commands/go && go build *.go
npm run start
npm run debug
javascript
coffeescript
go