14 lines
422 B
JavaScript
Executable file
14 lines
422 B
JavaScript
Executable file
const name = 'netmsg'
|
|
const description = 'Sends a message as each bot.'
|
|
const usages = ['<message...>']
|
|
const aliases = ['netmsg']
|
|
const enabled = true
|
|
|
|
const permLevel = 0
|
|
|
|
function execute (bot, cmd, player, args, handler) {
|
|
const host = bot.host
|
|
bot.getBots().forEach((bot) => bot.fancyMsg(host, player.name, args.join(' ')))
|
|
}
|
|
|
|
module.exports = { name, description, usages, aliases, enabled, execute, permLevel }
|