15 lines
422 B
JavaScript
15 lines
422 B
JavaScript
|
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 }
|