Lainavi is a Discord bot that was developed with the purpose of simplifying tasks. It comes with custom commands for moderation, alerts, and gaming. Using the Riot Games API, the bot can access and display data about players' stats for League of Legends.
To set up a local copy of the project, follow these steps.
- Clone the repository
git clone https://github.com/buistvn/lainavi.git
- Install packages
npm install
- Generate a token from Discord Developer Portal
- Generate an API key from Riot Developer Portal
- Create a
config.json
file in the root directory with the configuration variables{ "prefix": "YOUR_PREFIX_GOES_HERE", "token": "YOUR_TOKEN_GOES_HERE", "key": "YOUR_API_KEY_GOES_HERE" }
To run the project, follow these steps.
- Start up the bot
node index.js
- View the list of commands in the Discord server's text channel (prefix may be different depending on what was set in
config.json
)!help