aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands/admin
diff options
context:
space:
mode:
authorneelkamath <neelkamath@protonmail.com>2018-05-12 10:43:12 +0200
committerneelkamath <neelkamath@protonmail.com>2018-05-12 10:43:12 +0200
commitacbad15f2bc4a6733407bc17e1a5b4190ed3b287 (patch)
treede0ae1446b5515a494ae03c517ed5b748935d6bd /server/src/commands/admin
parentRemove help.js as we need human, not programmatic documentation for this (diff)
downloadhackchat-acbad15f2bc4a6733407bc17e1a5b4190ed3b287.tar.gz
hackchat-acbad15f2bc4a6733407bc17e1a5b4190ed3b287.zip
Remove unused object fields
Diffstat (limited to 'server/src/commands/admin')
-rw-r--r--server/src/commands/admin/addmod.js6
-rw-r--r--server/src/commands/admin/listusers.js5
-rw-r--r--server/src/commands/admin/reload.js5
-rw-r--r--server/src/commands/admin/saveconfig.js5
-rw-r--r--server/src/commands/admin/shout.js6
5 files changed, 5 insertions, 22 deletions
diff --git a/server/src/commands/admin/addmod.js b/server/src/commands/admin/addmod.js
index 4c13b22..992f9c4 100644
--- a/server/src/commands/admin/addmod.js
+++ b/server/src/commands/admin/addmod.js
@@ -40,8 +40,4 @@ exports.run = async (core, server, socket, data) => {
exports.requiredData = ['trip'];
-exports.info = {
- name: 'addmod',
- usage: 'addmod {trip}',
- description: 'Adds target trip to the config as a mod and upgrades the socket type'
-};
+exports.info = { name: 'addmod' };
diff --git a/server/src/commands/admin/listusers.js b/server/src/commands/admin/listusers.js
index a539a3c..92fa998 100644
--- a/server/src/commands/admin/listusers.js
+++ b/server/src/commands/admin/listusers.js
@@ -32,7 +32,4 @@ exports.run = async (core, server, socket, data) => {
}, socket);
};
-exports.info = {
- name: 'listusers',
- description: 'Outputs all current channels and sockets in those channels'
-};
+exports.info = { name: 'listusers' };
diff --git a/server/src/commands/admin/reload.js b/server/src/commands/admin/reload.js
index 4e22a95..40de059 100644
--- a/server/src/commands/admin/reload.js
+++ b/server/src/commands/admin/reload.js
@@ -28,7 +28,4 @@ exports.run = async (core, server, socket, data) => {
}, { uType: 'mod' });
};
-exports.info = {
- name: 'reload',
- description: '(Re)loads any new commands into memory, outputs errors if any'
-};
+exports.info = { name: 'reload' };
diff --git a/server/src/commands/admin/saveconfig.js b/server/src/commands/admin/saveconfig.js
index ed3a312..116abd6 100644
--- a/server/src/commands/admin/saveconfig.js
+++ b/server/src/commands/admin/saveconfig.js
@@ -30,7 +30,4 @@ exports.run = async (core, server, socket, data) => {
}, { uType: 'mod' });
};
-exports.info = {
- name: 'saveconfig',
- description: 'Saves current config'
-};
+exports.info = { name: 'saveconfig' };
diff --git a/server/src/commands/admin/shout.js b/server/src/commands/admin/shout.js
index 4ebf696..2efff32 100644
--- a/server/src/commands/admin/shout.js
+++ b/server/src/commands/admin/shout.js
@@ -16,8 +16,4 @@ exports.run = async (core, server, socket, data) => {
exports.requiredData = ['text'];
-exports.info = {
- name: 'shout',
- usage: 'shout {text}',
- description: 'Displays passed text to every client connected'
-};
+exports.info = { name: 'shout' };