1 | exports.command = {
|
2 | name: "semote",
|
3 | autoload: true,
|
4 | unloadable: false,
|
5 | min_rank: 2,
|
6 | display: "pose something for everyone (even those not here) to see",
|
7 | help: "Lets you pose something, as if you were acting, for everyone (even those not here) to see.",
|
8 | usage: ".semote <text>",
|
9 |
|
10 | execute: function(socket, command, command_access) {
|
11 | var chalk = require('chalk');
|
12 | if (command === 'undefined' || command.length < 1)
|
13 | return socket.write(chalk.yellow(":: ") + "What are you trying to do?\r\n");
|
14 | var send = chalk.bold("! ") + socket.username + " " + command + "\r\n";
|
15 | command_access.allButMe(socket,function(me,to){to.write(send);});
|
16 | socket.write(send);
|
17 | }
|
18 | }
|