chipmunkbot3/commands/netmsg.js
2024-02-11 21:23:41 -05:00

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 }