Added '/slap' command

This commit is contained in:
Mattias Erming 2014-05-28 07:12:16 -07:00
parent 276db34c34
commit 3e4cb78813

View File

@ -164,12 +164,14 @@ function input(data) {
} }
break; break;
case "slap":
var slap = "slaps " + args[1] + " around a bit with a large trout";
case "me": case "me":
if (!args[1]) { if (!args[1]) {
break; break;
} }
var user; var user;
var text = args.slice(1).join(" "); var text = slap || args.slice(1).join(" ");
if (client) { if (client) {
user = client.me; user = client.me;
client.action(chan.name, text); client.action(chan.name, text);
@ -213,10 +215,6 @@ function input(data) {
); );
break; break;
case "ame":
console.log("AME");
break;
case "server": case "server":
case "connect": case "connect":
if (args[1]) { if (args[1]) {