junlarsen / league-connect

:electric_plug: Node.js HTTP/1.1, HTTP/2.0 and WebSocket interface to the League of Legends Client APIs
https://www.npmjs.com/package/league-connect
MIT License
156 stars 23 forks source link

Start before LOL is opened #70

Closed RenzoBeux closed 2 years ago

RenzoBeux commented 2 years ago

Hey, i was wandering if it is intended to start this after LOL is opened. Because i was genting this error if i try to start the program before LOL: throw new ClientNotFoundError(); ^

ClientNotFoundError: league client process could not be located at C:\Users\renzi\Documents\Proyectitos\lol_champion_pick-master\node_modules\league-connect\dist\authentication.js:103:27 at Generator.next () at fulfilled (C:\Users\renzi\Documents\Proyectitos\lol_champion_pick-master\node_modules\league-connect\dist\authentication.js:5:58) at processTicksAndRejections (node:internal/process/task_queues:96:5)

RenzoBeux commented 2 years ago

My mistake, didn't read documentation carefully