Add away command

This commit is contained in:
Rafael Castillo 2021-12-13 09:31:35 -07:00 committed by Simon Ser
parent 4cabae89ff
commit 43f1329fb0

View file

@ -93,6 +93,17 @@ function givemode(app, args, mode) {
} }
export default { 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": { "ban": {
usage: "[nick]", usage: "[nick]",
description: "Ban a user from the channel, or display the current ban list", description: "Ban a user from the channel, or display the current ban list",