aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands/core/showcase.js
diff options
context:
space:
mode:
authormarzavec <admin@marzavec.com>2018-03-11 07:41:17 +0100
committermarzavec <admin@marzavec.com>2018-03-11 07:41:26 +0100
commit7d8220d838f82f7ad1ffedbcbd3b955aef6d71a2 (patch)
treec73d26f8d6e3b2c7af23e4afcd55ea7ceccf3596 /server/src/commands/core/showcase.js
parentMerge pull request #1 from MinusGix/master (diff)
downloadhackchat-7d8220d838f82f7ad1ffedbcbd3b955aef6d71a2.tar.gz
hackchat-7d8220d838f82f7ad1ffedbcbd3b955aef6d71a2.zip
stabilized modules and server cmd field
Diffstat (limited to 'server/src/commands/core/showcase.js')
-rw-r--r--server/src/commands/core/showcase.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/commands/core/showcase.js b/server/src/commands/core/showcase.js
index aaa474c..5d15ea2 100644
--- a/server/src/commands/core/showcase.js
+++ b/server/src/commands/core/showcase.js
@@ -16,6 +16,7 @@ const createReply = (echoInput) => {
// `exports.run()` is required and will always be passed (core, server, socket, data)
// be sure it's asyn too
+// this is the main function
exports.run = async (core, server, socket, data) => {
server.reply({
@@ -35,12 +36,13 @@ exports.init = (core) => {
}
// optional, if `data.echo` is missing `exports.run()` will never be called & the user will be alerted
+// remember; this will only verify that the data is not undefined, not the type of data
exports.requiredData = ['echo'];
// optional parameters are marked, all others are required
exports.info = {
name: 'showcase', // actual command name
aliases: ['templateModule'], // optional, an array of other names this module can be executed by
- usage: 'showcase {echo}', // used for help output
+ usage: 'showcase {echo}', // used for help output, can be ommited if no parameters are required
description: 'Simple command module template & info' // used for help output
};