!set channel
set the advertisement channel to the currenct channel!set description
set the server description
!help
display the help message!bump
send the server ad to the network
- node 10+
- mongodb
Copy the file .env.template
as .env
and fill it
DISCORD_API_TOKEN=
DISCORD_CLIENT_ID=
MONGO_URL=
TOP_GG_TOKEN=
TOP_GG_HOOK_PORT=
TOP_GG_HOOK_PASSWORD=
If you prefer, you can just set environnement variables.
-
install the dependencies:
npm install
-
run the bot
npm start
- [GET] /discord/bot-invite helper method that redirect to the bot invite link
Nest framework TypeScript starter repository.
$ npm install
.env files supported
- PORT : default 5000
- DISCORD_API_TOKEN
- DISCORD_CLIENT_ID
- MONGO_URL
- TOP_GG_TOKEN
- TOP_GG_HOOK_PORT
- TOP_GG_HOOK_PASSWORD
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov