GithubHelp home page GithubHelp logo

silasrodrigues19 / lol-winrate Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 60 KB

Get the current elo, number of league points, number of win/losses and win rate of a given summoner

Home Page: https://league-api-14tx.onrender.com/getWinsAndLosses

License: MIT License

TypeScript 97.12% JavaScript 2.88%
fastify league-of-legends riot-api tsup typescript node

lol-winrate's Introduction

Contributors Forks Stargazers Issues MIT License


Logo

LOL - Win rate

Get the current elo, number of league points, number of win/losses and win rate of a given summoner
Demo Report Bug

Table of Contents
  1. About The Project
  2. Getting Started
  3. Contributing
  4. License
  5. Contact

About The Project

StreamElements Command
Preview

How it works

The project was created with the aim of querying information through Riot Games' APIS and using this information in lives on Twitch, through commands from the StreamElements bot.

To create the command, simply use the syntax below in the Twitch live chat where you want to create the command. Remembering that the project must be hosted and use the hosting address followed by the route name.

  !cmd add winrate $(customapi.https://mydomain.com/getWinsAndLosses)

Replacing mydomain.com with your real domain, just use !winrate and the command will return with the summoner's data.


Built With

Technologies used in the project.

Libraries

  • tsup Bundle your TypeScript library with no config, powered by esbuild.

Frameworks

  • Fastify Fast and low overhead web framework, for Node.js.

Technologies

  • TypeScript A strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.

Pre requisites

  1. Access the .env.example file and rename it to .env

  2. Generate your api key in the following

  https://developer.riotgames.com/

Copy the value and paste it inside the quotes in RIOT API in the .env file

  1. Do the same with the summoner's nickname, pasting it into SUMMONER_NAME

  2. Get the region code from the summoner and paste it into REGION_CODE

Here is a list of the acronyms for the regions:

Region Code Host
BR1 br1.api.riotgames.com
EUN1 eun1.api.riotgames.com
EUW1 euw1.api.riotgames.com
JP1 jp1.api.riotgames.com
KR kr.api.riotgames.com
LA1 la1.api.riotgames.com
LA2 la2.api.riotgames.com
NA1 na1.api.riotgames.com
OC1 oc1.api.riotgames.com
TR1 tr1.api.riotgames.com
RU ru.api.riotgames.com
PH2 ph2.api.riotgames.com
SG2 sg2.api.riotgames.com
TH2 th2.api.riotgames.com
TW2 tw2.api.riotgames.com
VN2 vn2.api.riotgames.com

Installation

  1. Clone the repo

    git clone https://github.com/SilasRodrigues19/LOL-WINRATE.git
  2. Install dependencies (you can use npm, pnpm, yarn or anything else)

    pnpm install
  3. In the project directory, you can run development mode with the following

    pnpm run dev

    or build and run production mode with the following

    pnpm run build && pnpm start
  4. You can access the main route at the following address

      http://localhost:3333/getWinsAndLosses
Optionally, you can install the REST Client extension and run directly through VSCode using the routes.http file

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Silas Rodrigues - @jinuye1 - [email protected]

Project Link: https://github.com/SilasRodrigues19/LOL-WINRATE



๐Ÿ”ผ Back to top

lol-winrate's People

Contributors

silasrodrigues19 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

mauriciox13

lol-winrate's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.