chipmunkbot3/commands/netmsg.js

15 lines
422 B
JavaScript
Raw Normal View History

2024-02-11 21:23:41 -05:00
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 }