mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
Add away command
This commit is contained in:
parent
4cabae89ff
commit
43f1329fb0
1 changed files with 11 additions and 0 deletions
11
commands.js
11
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",
|
||||
|
|
Loading…
Reference in a new issue