owobot/plugins/commands/netmsg.js
2024-07-28 16:30:19 -04:00

35 lines
702 B
JavaScript

const { bot } = require('../../index.js')
module.exports = {
execute: (c) => {
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) {
bot[i].tellraw('@a', json)
}
}
}