Skip to content

Armax/lolchat.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lolchat.io

League Of Legends chat node.js module

Usage

Basics

First require the module in your code

var Chat = require('./lolchat.io')

Then connect to the server

Chat.connect('user', 'password', 'eu_west');

user and password are self-explanatory, the last argument must be a valid server string

  • eu_west
  • eu_ordic
  • us
  • pbe
  • oceania
  • brazil
  • turkey
  • russia
  • latin_america_north
  • latin_america_south

Functions

most of them are self-explanatory

Get JID of a friend
getFriendJid(friend)

friend: summoner name

Send message
sendMsg(to, msg)

to: must be a valid jid
msg: message

Edit online status
editStatus(status)

status: must be a valid status

Available Commands:

  • <profileIcon> | Integer | Sets your summoner icon, LEGACY.
  • <statusMsg> | String |Your normal status message, can be anything but has an ingame length limit
  • <level> | Integer between -30 to 30 | Your level.
  • <wins> | Positive Integer | Your amount of normal wins.
  • <leaves> | Positive Integer |The amount of leaves will never show. LEGACY.
  • <queueType> | RANKED_SOLO_5x5 | NORMAL | NIGHTMARE_BOT
  • <gameQueueType> | RANKED_SOLO_5x5 | NORMAL | NIGHTMARE_BOT
  • <rankedWins> | Positive Integer | Your amount of ranked wins,
  • <rankedLosses> | Positive Integer | Your amount of ranked losses,
  • <rankedRating> | Positive Integer | Ranked rating, LEGACY.
  • <gameStatus> | Online | Chatty | Away | outOfGame | inGame |
  • <rankedLeagueName> | Name of an EXISTING league |
  • <rankedLeagueDivision> | String | Can be long but too long (300+ words) will disconnect you.
  • <rankedLeagueTier> | CHALLENGER | DIAMOND | PLATINUM | GOLD | SILVER | BRONZE |
  • <timeStamp> | Integer | The time the current game started.
  • <skinname> | EXISTING Champion Name | The champion you are currently playing.

Example Status:
A common status that will set you up to be lv30, out of game and in the league Twitch's Commanders in Diamond DIvision Zero with 1337 ranked wins and the status message "XMPP Client". ```xml 1 30 XMPP Client 1337 outOfGame Twitch's Commanders Zero DIAMOND ``` from: http://leagueoflegends.wikia.com/wiki/User:Sevenix/XMPP_Chat
##### Get current status ```javascript getCurrentStatus(status) ``` status: must be a valid status
##### Get full friends list ```javascript getAllFriends() ``` ##### Get online friends ```javascript getOnlineFriends() ```

Events

// Connect event
Chat.events.on('connected', function(data) {
  console.log('[i] Connected!');
})

// Update friends
Chat.events.on('onlineUpdate', function(name) {
  console.log('[i] update: ' + name);
});

Contact me

@Arm4x Feel free to contact me for help or anything else

About

League Of Legends chat node.js module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published