From 5b29cf83f65bd79f237682dbb849942c4989a056 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 28 May 2021 11:17:37 +0200 Subject: [PATCH] Add /motd --- commands.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/commands.js b/commands.js index b23ad65..2a55807 100644 --- a/commands.js +++ b/commands.js @@ -151,7 +151,7 @@ export default { }, }, "mode": { - usage: " [mode args...]", + usage: "[target] [mode args...]", description: "Change channel or user mode", execute: (app, args) => { var target = args[0]; @@ -165,6 +165,13 @@ export default { 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": { usage: " ", description: "Send a message to a nickname or a channel",