This is a bot that fulfills the function of identifying server users who start playing League of Legends and assigning them the role you want, in addition to sending a warning from the text channel.
- Automatically detects when a user starts playing League of Legends and assigns a role to them.
- Sends a message to a text channel to notify other users of the activity.
- Configurable through a .env file that includes your Discord token, the ID of the role you want to assign, and the ID of the text channel where messages will be sent.
Some of the technologies used in this project are the following:
- Typescript
- Node
- DiscordJS
- pnpm
In order to setup the project you need to have install node and pnpm:
git clone https://github.com/victormhp/lol-players-killer.git
cd lol-players-killer
pnpm install
To configure the bot, you will need to create a .env file in the root directory of the project. You can use the .example.env file as a template:
CLIENT_TOKEN="your_token"
LOL_PLAYER_ROL_ID="your _role_id"
CHANNEL_ID="your_text_channel_id"
Note: to obtain the IDs you must activate Discord's developer mode.
To start the bot, run the following commands:
npm run build
npm run start
To stop the bot, press Ctrl + C in the terminal where it is running.