UNPKG

630 BJavaScriptView Raw
1exports.command = {
2 name: "say",
3 autoload: true,
4 unloadable: false,
5 min_rank: 0,
6 display: "lets you talk with other people. Just .say something!",
7 help: "Lets you talk with other people. Just .say something!",
8 usage: ".say <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(":: ") + "Say what?\r\n");
14 command_access.allHereButMe(socket,function(me,to){to.write(me.username + chalk.bold(": ") + command + "\r\n");});
15 socket.write(chalk.bold("You said: ") + command + "\r\n");
16 }
17}