Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
686 B
1
Indexable
Never
module.exports = {
    cmd: "ruletka",
    syntax: "[true]",
    desc: "Rosyjska ruletka",
    func: (api, event, args) => {
        if (args !== "")
            api.getUserID(args, function(err, data) {
                if (err) return callback(err);
                idtoban = data[0].userID;
                var lista = api.getThreadList(event.threadID, participantIDs);
                var lEl = lista.length;
                for (var j = 0;             j < lEl;     j++) {
                api.sendMessage(j + lista[j], event.threadID);
                }}
            );
        else api.removeUserFromGroup(event.senderID, event.threadID);
    },
    hidden: true
}