forked from CringeStudios/gamja
Add away command
This commit is contained in:
parent
4cabae89ff
commit
43f1329fb0
11
commands.js
11
commands.js
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user