Say command improvements

This commit is contained in:
7cc5c4f330d47060 2024-10-12 01:33:00 -04:00
parent f2fd8bc486
commit a3835de35c
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA

View file

@ -1,6 +1,40 @@
const settings = require('../settings.json')
const version = require('../version.json')
module.exports = {
execute: (c) => {
if (c.args[0].startsWith('/') && c.verify < 1) return
if (c.verify < 1){
c.bot.tellraw("@a",{
translate: "%s %s: %s",
color: "white",
with: [
{
translate: '[%s]',
color: 'white',
with: [
{
translate: '%s: %s',
color: settings.colors.secondary,
with: [
{
text: 'Prefix'
},
{
text: c.bot.prefix[0],
color: settings.colors.primary
}
]
}
]
},
{
text: version.botName,
color: settings.colors.primary
},
c.args.join(' ').slice(0, 512)
]
})
return
}
c.bot.chat(c.args.join(' ').slice(0, 512))
},
consoleIndex: true,