mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
9 lines
266 B
JavaScript
9 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;
|
|
|