Skip to content
Commit 652ee18c authored by Andrew Price's avatar Andrew Price
Browse files

js-duk: Add a channel object to the message_received objects

    function handler(ev)
    {
        switch (ev.type) {
        case "message_received":
                msg = ev.data;
                ...
                mw.print("msg.channel.id: " + msg.channel.id);
                mw.print("msg.channel.name: " + msg.channel.name);
                mw.print("msg.channel.topic: " + msg.channel.topic);
                mw.print("msg.channel.soundproof: " + msg.channel.soundproof);
                ...
    }
    mw.onevent.push(handler);
parent 2dcaa5fa
Loading
Loading
Loading
Pipeline #487 passed with stage
in 8 minutes and 1 second
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment