aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands/admin/shout.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/commands/admin/shout.js')
-rw-r--r--server/src/commands/admin/shout.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/src/commands/admin/shout.js b/server/src/commands/admin/shout.js
index 80a6470..e9c69e0 100644
--- a/server/src/commands/admin/shout.js
+++ b/server/src/commands/admin/shout.js
@@ -2,12 +2,11 @@
Description: Emmits a server-wide message as `info`
*/
+// module main
exports.run = async (core, server, socket, data) => {
// increase rate limit chance and ignore if not admin
if (socket.uType != 'admin') {
- server._police.frisk(socket.remoteAddress, 20);
-
- return;
+ return server._police.frisk(socket.remoteAddress, 20);
}
// send text to all channels
@@ -17,10 +16,11 @@ exports.run = async (core, server, socket, data) => {
}, {});
};
+// module meta
exports.requiredData = ['text'];
-
exports.info = {
name: 'shout',
- usage: 'shout {text}',
- description: 'Displays passed text to every client connected'
+ description: 'Displays passed text to every client connected',
+ usage: `
+ API: { cmd: 'shout', text: '<shout text>' }`
};