CyTube/chatcommand.js
2013-03-05 12:51:58 -06:00

10 lines
266 B
JavaScript

function handle(chan, user, msg) {
if(msg.indexOf("/me ") == 0)
chan.sendMessage(user.name, msg.substring(4), "action");
else if(msg.indexOf("/sp ") == 0)
chan.sendMessage(user.name, msg.substring(4), "spoiler");
}
exports.handle = handle;