UNPKG

808 BJavaScriptView Raw
1exports.command = {
2 name: "template", // Name of command to be executed (Max 10 chars)
3 autoload: false, // Should the command be autoloaded at startup
4 unloadable: true, // Can the command be unloaded dynamically
5 min_rank: 0, // Minimum rank to use to execute the command
6 display: "Moo display", // Summary help text to show in the .help command (Max 60 chars)
7 help: "Moo help", // Full help text when .help <command> is used
8 usage: ".go <place>", // usage of the command
9 weigth: 0, // if two commands are elegible to be invoked,
10 // the heavier wins. If not present, weigth = 0.
11
12 // Function to execute the command
13 execute: function(socket, command, command_access) {
14 var chalk = require('chalk');
15 socket.write("You have just executed the template command \r\n");
16 }
17}