Giter Site home page Giter Site logo

yasuo-lcu's Introduction

Yasuo LCU

banner

Português

Yasuo API Client é uma ferramenta que permite a comunicação com a API da LCU do League of Legends de forma fácil e intuitiva.

English

Yasuo API Client is a tool that allows easy and intuitive communication with the League of Legends LCU API.

Pré-requisitos

  • Node.js v12.18.3 ou superior;
  • NPM v6.14.6 ou superior.

Instalação

Para instalar o projeto, siga os seguintes passos:

  1. Clone o repositório do projeto:
git clone https://github.com/VOTRON157/yasuo-lcu.git
  1. Instale as dependências do projeto:
npm install lcu-connector axios
  1. Exemplo de código:
const YasuoAPIClient = require("./YasuoAPIClient")
const Summoner = new YasuoAPIClient();

(async () => {
    await Summoner.init().then(() => console.log('Logado na sua conta do LoL, ja pode começar a usar os metodos. / Logged in to your LoL account, you can now start using the methods'))
    
    await Summoner.autoSelectChampion(54) // Vai selecionar o malphite (funciona apnas no modo "as cegas")
    await Summoner.changeAvatar(15) // Vai trocar para o avatar de um minion (roxo)
    console.log((await Summoner.getCurrentSummoner())) // Dados da conta atual
    await Summoner.startMatchMaking(); // Inicia a fila (precisa está em um saguão para funcionar, caso contrario retornara um erro)
    
    // Para fazer uma requisição HTTP para qualquer endpoint use --> Summoner.request(...)

})()

Contribuição

Contribuições são sempre bem-vindas! Se você tiver alguma sugestão ou correção para o projeto, abra uma issue ou envie um pull request.

yasuo-lcu's People

Contributors

votron157 avatar

Stargazers

 avatar

Watchers

 avatar

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.