botv12/commands/say.js

42 lines
973 B
JavaScript
Raw Normal View History

2024-11-19 20:05:19 -05:00
import settings from '../settings.js'
import version from "../version.js"
2024-10-26 22:10:16 -04:00
const execute = (c) => {
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: settings.prefixes[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))
}
const consoleIndex = true
const aliases = ['echo']
2024-11-19 20:05:19 -05:00
export { execute, consoleIndex, aliases }