chomens-bot-js/commands/netmsg.js
ChomeNS d417c9f6bb bot.options.host & bot.options.port fix
it is a ploblem for a very long time now
also chip why yesterday chipmunk.land is completely down and why is
chipmunk clone down!?1/?!!
ip change?!? router ploblem?!?!
2023-01-19 17:13:25 +07:00

46 lines
999 B
JavaScript

module.exports = {
name: 'netmsg',
alias: ['networkmessage', 'irc'],
description: 'Broadcasts a message to all of the servers that the bot is connected',
usage: '<message>',
trusted: 0,
execute (bot, username, sender, prefix, args, config, hash, ownerhash, selector) {
const component = [
{
text: '[',
color: 'dark_gray'
},
{
text: bot.server.host === 'kitsune.icu' ? 'kit' : bot.server.host,
color: 'gray'
},
bot.server.host === 'kitsune.icu'
? {
text: 'sune.icu',
color: 'gray'
}
: '',
{
text: '] ',
color: 'dark_gray'
},
{
text: username,
color: 'gray'
},
{
text: ' \u203a ',
color: 'dark_gray'
},
{
text: args.join(' '),
color: 'gray'
}
]
const bots = bot.getBots()
bots.forEach((bot) => {
bot.tellraw(selector, component)
})
}
}