- make file
.env
in root directory of project. this is its example:
DISCORD_TOKEN=abCDefGHijKL
USER_ID=123456
GUILD_ID=123456
LOG_CHANNEL_ID=123456
- DISCORD_TOKEN is token of your application
- USER_ID is id of your application
- GUILD_ID is id of your development discord server
- LOG_CHANNEL_ID is id of channel for logging bot's status
- run
yarn install
ornpm install
, depends on your node package manager - run
yarn start
ornpm run start
, depends on your node package manager - enjoy my code working on your bot