Add /motd

This commit is contained in:
Simon Ser 2021-05-28 11:17:37 +02:00
parent e080e87cb7
commit 5b29cf83f6

View file

@ -151,7 +151,7 @@ export default {
}, },
}, },
"mode": { "mode": {
usage: "<target> <modes> [mode args...]", usage: "[target] <modes> [mode args...]",
description: "Change channel or user mode", description: "Change channel or user mode",
execute: (app, args) => { execute: (app, args) => {
var target = args[0]; var target = args[0];
@ -165,6 +165,13 @@ export default {
getActiveClient(app).send({ command: "MODE", params: args }); getActiveClient(app).send({ command: "MODE", params: args });
}, },
}, },
"motd": {
usage: "[server]",
description: "Get the Message Of The Day",
execute: (app, args) => {
getActiveClient(app).send({ command: "MOTD", params: args });
},
},
"msg": { "msg": {
usage: "<target> <message>", usage: "<target> <message>",
description: "Send a message to a nickname or a channel", description: "Send a message to a nickname or a channel",