diff --git a/commands.js b/commands.js index 7b5f5d1..0cf7cf7 100644 --- a/commands.js +++ b/commands.js @@ -186,6 +186,21 @@ export default { client.send({ command: "SETNAME", params: [newRealname] }); }, }, + "stats": { + usage: " []", + description: "Requests server statistics", + execute: (app, args) => { + var query = args[0]; + if (!query) { + throw new Error("Missing query"); + } + var params = [query]; + if (args.length > 1) { + params.push(args.slice(1).join(" ")); + } + getActiveClient(app).send({ command: "STATS", params }); + }, + }, "topic": { usage: "", description: "Change the topic of the current channel",