mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 20:13:07 +00:00
Added '/slap' command
This commit is contained in:
parent
276db34c34
commit
3e4cb78813
1 changed files with 3 additions and 5 deletions
|
@ -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]) {
|
||||||
|
|
Loading…
Reference in a new issue