aboutsummaryrefslogtreecommitdiffstats
path: root/server/commands/admin/shout.js
diff options
context:
space:
mode:
authorNeel Kamath <neelkamath@protonmail.com>2018-05-13 13:07:56 +0200
committerNeel Kamath <neelkamath@protonmail.com>2018-05-13 13:07:56 +0200
commit949404cd1aad8492ae0338130f16054adfa38ab7 (patch)
tree6fed796d224901f5b6832543b19973af425e0fa9 /server/commands/admin/shout.js
parentFlatten (diff)
downloadhackchat-949404cd1aad8492ae0338130f16054adfa38ab7.tar.gz
hackchat-949404cd1aad8492ae0338130f16054adfa38ab7.zip
Prevent fucking shit up
Diffstat (limited to 'server/commands/admin/shout.js')
-rw-r--r--server/commands/admin/shout.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/server/commands/admin/shout.js b/server/commands/admin/shout.js
deleted file mode 100644
index 1358dd9..0000000
--- a/server/commands/admin/shout.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- Description: Emmits a server-wide message as `info`
-*/
-
-exports.run = async (core, server, socket, data) => {
- if (socket.uType != 'admin') {
- // ignore if not admin
- return;
- }
-
- server.broadcast( {
- cmd: 'info',
- text: `Server Notice: ${data.text}`
- }, {});
-};
-
-exports.requiredData = ['text'];
-
-exports.info = {
- name: 'shout',
- usage: 'shout {text}',
- description: 'Displays passed text to every client connected'
-}; \ No newline at end of file