Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

[events] vote

PossiblyKris edited this page Jan 28, 2017 · 5 revisions
Key Type Description
v Int User vote (1 for Woot, -1 for Meh)
i String User ID of user

Data Returned

{
    data: {
        i: 'xxxxxxx',
        v: 1
    }
}

Example

bot.on('vote', function(data) {
    var id   = data.i;    // data.i returns user id of user
    var vote = data.v;    // data.v returns vote (1 or -1) for user vote
});
Clone this wiki locally