KrugBot is a discord bot that aims to provide easy access to League Of Legends statistics. This is done by fetching data from the RiotAPI and outputting the results to the user, in an easy to read, simplistic way.
- Make API key and discord token a global .env variable
- Create !help command
- Implement database and log summoner name to user; use mongodb for backend
Search summoner by name
!summoner <summoner name>
Check if summoner name is available
!checkname <summoner name>
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
What things you need to install the software and how to install them
node >= v13.1.0
npm >= v6.12.1
A step by step series of examples that tell you how to get a development env running
First, clone the repository onto your local system
git clone https://github.com/taylorallen0913/krug-bot
Install all npm packages required
npm install
Create a .env file in source folder; add your discord token and riot api key
DISCORD_TOKEN = <your discord token>
APIKEY = <your riotapi key>
To start the bot, run this command
node index.js
To stop the bot, enter this keystroke
CTRL + C
- npm - Javascript package installer
- Node.js - Javascript server environment
- Discord.js - Javascript library for the Discord API
- Requst - Javascript library for fetching data from APIs
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Taylor Allen - Initial work - taylorallen0913
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- A big inspiration to this project was the League of Legends site, OP.GG. OP.GG is a site which utilizes the Riot API for summoner searching. This project was started because I wanted to make that data more accessable to the general public because a lot of gamers use Discord and may not want to go through the hassle of the ads and nonsense present in using a browser.