yarn install
yarn start
In order to run the bot, you need to set the following environment variables:
DISCORD_BOT_TOKEN
: The token of the Discord botDISCORD_CLIENT_ID
: The client ID of the Discord botDISCORD_GUILD_ID
: The ID of the development Discord server, this is only needed for the deployment of the slash commandsNODE_ENV
: The environment in which the bot is running, can bedevelopment
orproduction
. When set todevelopment
, the bot will register the slash commands to the server specified byDISCORD_GUILD_ID
, otherwise it will register the commands globally. During runtime,development
will receive DEBUG logs, while those will not be shown inproduction
.SENTRY_DSN
: The DSN of the Sentry project, this is optional.ANALYTICS_TOKEN
: The token of the analytics project, this is optional.ANALYTICS_URL
: The URL of the analytics project, this is optional.STATSFM_HTTP_API_URL
: The URL of the stats.fm HTTP API, defaults to what the@statsfm/statsfm.js
package provides if not set.STATSFM_HTTP_API_USER_AGENT_APPENDIX
: The appendix to append to the user agent which is send with every HTTP request to the stats.fm API, defaults to what the@statsfm/statsfm.js
package provides if not set.STATSFM_HTTP_API_RETRIES
: The amount of retries to do when a request to the stats.fm API fails, defaults to what the@statsfm/statsfm.js
package provides if not set.STATSFM_HTTP_API_VERSION
: The version of the stats.fm API to use, defaults to what the@statsfm/statsfm.js
package provides if not set.STATSFM_AUTH_ACCESS_TOKEN
: The access token to use for the stats.fm API, defaults to what the@statsfm/statsfm.js
package provides if not set.