emily-lcu-connector
v1.4.1
Published
<code> npm i emily-lcu-connector </code>
Downloads
8
Readme
emily-lcu-connector
Install
Usage
JavaScript
Auto accept
const lcu = require('emily-lcu-connector');
async function main() {
await lcu.Client.connect();
const listener = await lcu.Client.listenForEvents();
listener.on('onReadyCheck',readyCheck=>{
if (!readyCheck.replied) {
readyCheck.accept();
}
});
}
main();
Change status message
const lcu = require('emily-lcu-connector');
async function main() {
await lcu.Client.connect();
const me = await lcu.Client.getLocalPlayer();
me.setStatusMessage('AYAYA!')
}
main();
Clear friend list
const lcu = require('emily-lcu-connector');
async function main() {
await lcu.Client.connect();
const friends = await lcu.Client.getFriends();
friends.forEach(friend =>{
await friend.remove();
})
}
main();
Generic event listener
const lcu = require('emily-lcu-connector');
async function main() {
await lcu.Client.connect();
const listener = await lcu.Client.listenForEvents();
listener.on('*',(data,event,uri)=>{
//something
});
}
main();