aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands/core/stats.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/commands/core/stats.js')
-rw-r--r--server/src/commands/core/stats.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/src/commands/core/stats.js b/server/src/commands/core/stats.js
index 74bd4a5..b271bb1 100644
--- a/server/src/commands/core/stats.js
+++ b/server/src/commands/core/stats.js
@@ -2,6 +2,7 @@
Description: Legacy stats output, kept for compatibility, outputs user and channel count
*/
+// module main
exports.run = async (core, server, socket, data) => {
// gather connection and channel count
let ips = {};
@@ -29,7 +30,10 @@ exports.run = async (core, server, socket, data) => {
core.managers.stats.increment('stats-requested');
};
+// module meta
exports.info = {
name: 'stats',
- description: 'Sends back legacy server stats to the calling client'
+ description: 'Sends back legacy server stats to the calling client',
+ usage: `
+ API: { cmd: 'stats' }`
};