Make command descriptions more consistent

This commit is contained in:
Simon Ser 2021-06-03 10:28:04 +02:00
parent 291c9e177d
commit 55882776b0

View file

@ -77,7 +77,7 @@ function givemode(app, args, mode) {
export default { export default {
"ban": { "ban": {
usage: "[nick]", usage: "[nick]",
description: "Bans a user from the channel, or displays the current ban list", description: "Ban a user from the channel, or display the current ban list",
execute: (app, args) => { execute: (app, args) => {
if (args.length == 0) { if (args.length == 0) {
var activeChannel = getActiveChannel(app); var activeChannel = getActiveChannel(app);
@ -116,12 +116,12 @@ export default {
}, },
"deop": { "deop": {
usage: "<nick>", usage: "<nick>",
description: "Removes operator status for a user on this channel", description: "Remove operator status for a user on this channel",
execute: (app, args) => givemode(app, args, "-o"), execute: (app, args) => givemode(app, args, "-o"),
}, },
"devoice": { "devoice": {
usage: "<nick>", usage: "<nick>",
description: "Removes voiced status for a user on this channel", description: "Remove voiced status for a user on this channel",
execute: (app, args) => givemode(app, args, "-v"), execute: (app, args) => givemode(app, args, "-v"),
}, },
"disconnect": { "disconnect": {
@ -138,7 +138,7 @@ export default {
}, },
"invite": { "invite": {
usage: "<nick>", usage: "<nick>",
description: "Invites a user to the channel", description: "Invite a user to the channel",
execute: (app, args) => { execute: (app, args) => {
var nick = args[0]; var nick = args[0];
if (!nick) { if (!nick) {
@ -155,7 +155,7 @@ export default {
"kick": kick, "kick": kick,
"kickban": { "kickban": {
usage: "<target>", usage: "<target>",
description: "Bans a user and removes them from the channel", description: "Ban a user and removes them from the channel",
execute: (app, args) => { execute: (app, args) => {
kick.execute(app, args); kick.execute(app, args);
ban.execute(app, args); ban.execute(app, args);
@ -163,7 +163,7 @@ export default {
}, },
"lusers": { "lusers": {
usage: "[<mask> [<target>]]", usage: "[<mask> [<target>]]",
description: "Requests user statistics about the network", description: "Request user statistics about the network",
execute: (app, args) => { execute: (app, args) => {
getActiveClient(app).send({ command: "LUSERS", params: args }); getActiveClient(app).send({ command: "LUSERS", params: args });
}, },
@ -225,7 +225,7 @@ export default {
}, },
"op": { "op": {
usage: "<nick>", usage: "<nick>",
description: "Gives a user operator status on this channel", description: "Give a user operator status on this channel",
execute: (app, args) => givemode(app, args, "+o"), execute: (app, args) => givemode(app, args, "+o"),
}, },
"part": { "part": {
@ -291,7 +291,7 @@ export default {
}, },
"stats": { "stats": {
usage: "<query> [server]", usage: "<query> [server]",
description: "Requests server statistics", description: "Request server statistics",
execute: (app, args) => { execute: (app, args) => {
var query = args[0]; var query = args[0];
if (!query) { if (!query) {
@ -325,7 +325,7 @@ export default {
}, },
"voice": { "voice": {
usage: "<nick>", usage: "<nick>",
description: "Gives a user voiced status on this channel", description: "Give a user voiced status on this channel",
execute: (app, args) => givemode(app, args, "+v"), execute: (app, args) => givemode(app, args, "+v"),
}, },
"who": { "who": {