1 | exports.command = {
|
2 | name: "shout",
|
3 | autoload: true,
|
4 | unloadable: false,
|
5 | min_rank: 2,
|
6 | display: "you shout, everyone listens, no matter where they are",
|
7 | help: "You shout, everyone listens, even if they're not in the same place as you!",
|
8 | usage: ".shout <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.red(":: ") + "Shout what?\r\n");
|
14 | command_access.allButMe(socket,function(me,to){
|
15 | to.write(chalk.bold("! ") + me.username + chalk.bold(" shouts: ") + command + "\r\n");
|
16 | });
|
17 | socket.write(chalk.bold("! You shout: ") + command + "\r\n");
|
18 | }
|
19 | }
|