From 43f1329fb07bca649838a8c4e4109c824324161d Mon Sep 17 00:00:00 2001 From: Rafael Castillo Date: Mon, 13 Dec 2021 09:31:35 -0700 Subject: [PATCH] Add away command --- commands.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/commands.js b/commands.js index c0eea21..399696c 100644 --- a/commands.js +++ b/commands.js @@ -93,6 +93,17 @@ function givemode(app, args, mode) { } export default { + "away": { + usage: "[message]", + description: "Set away message", + execute: (app, args) => { + const params = [] + if (args.length) { + params.push(args.join(" ")); + } + getActiveClient(app).send({command: "AWAY", params}); + }, + }, "ban": { usage: "[nick]", description: "Ban a user from the channel, or display the current ban list",