From a3835de35c23aa0e6aef536d7b75df64d37f5799 Mon Sep 17 00:00:00 2001 From: 7cc5c4f330d47060 Date: Sat, 12 Oct 2024 01:33:00 -0400 Subject: [PATCH] Say command improvements --- commands/say.js | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/commands/say.js b/commands/say.js index c30ec81..ccab35c 100755 --- a/commands/say.js +++ b/commands/say.js @@ -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,