Requires Node.js 16.9.0+
A bot that changes the nickname, status and the roles of 5 (or more) bots to match the stocks listed in src/stockList.ts
- Create 3 bots on https://discord.com/developers/applications, when inviting to the server, all of them should have the
Change Nicknamepermission, and one needs aManage Rolespermission, this will be the first bot in the token list (see point 4) - Clone the repository
git clone https://github.com/deimoss123/stocks-discord-bot.git
- Create a
.envfile at the project root level (next topackage.json) - Add environment variables to the
.envfile:
TOKEN1=""
TOKEN2=""
TOKEN3=""
TOKEN4=""
TOKEN5=""
GUILD_ID=""
RED_ROLE_ID=""
- Install dependencies
npm ci
- Build the project
npm run build
- Run it
npm start