Skip to content

Typescript bot to deal with Lol Players in your server

Notifications You must be signed in to change notification settings

victormhp/lol-players-killer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

League Of Legends Killer Bot

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.

Features

  • 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.

Messages

Role

Technologies

Some of the technologies used in this project are the following:

  • Typescript
  • Node
  • DiscordJS
  • pnpm

Setup

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

Configuration

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.

Running the Bot

To start the bot, run the following commands:

npm run build
npm run start

Stopping the Bot

To stop the bot, press Ctrl + C in the terminal where it is running.

About

Typescript bot to deal with Lol Players in your server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published