2024-08-12 04:33:43 -04:00
|
|
|
const { bot } = require('../index.js')
|
|
|
|
const { getMessage } = require('../util/lang.js')
|
|
|
|
module.exports = {
|
|
|
|
execute: (c) => {
|
2024-08-13 02:07:37 -04:00
|
|
|
if(c.bot.host && c.bot.host.options.hidden){
|
2024-08-12 04:33:43 -04:00
|
|
|
c.reply({
|
|
|
|
text: getMessage(c.lang, "command.netmsg.disabled"),
|
|
|
|
color: c.colors.secondary
|
|
|
|
})
|
|
|
|
return
|
|
|
|
}
|
|
|
|
const json = {
|
|
|
|
translate: '[%s] %s: %s',
|
|
|
|
with: [
|
|
|
|
{
|
|
|
|
translate: '%s:%s',
|
|
|
|
with: [
|
|
|
|
{
|
|
|
|
text: c.host,
|
|
|
|
color: c.colors.primary
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: c.port + '',
|
|
|
|
color: c.colors.primary
|
|
|
|
}
|
|
|
|
],
|
|
|
|
color: c.colors.secondary
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: c.username,
|
|
|
|
color: c.colors.primary
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: c.args.join(' ')
|
|
|
|
}
|
|
|
|
],
|
|
|
|
color: 'white'
|
|
|
|
}
|
|
|
|
for (const i in bot) {
|
2024-08-13 02:07:37 -04:00
|
|
|
if(bot[i].host.options.hidden) continue
|
2024-08-12 04:33:43 -04:00
|
|
|
bot[i].tellraw('@a', json)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|