reverted back to how i handled errored before the custom errors and moved tellraw check to chat.js where the bot.tellraw function is called

This commit is contained in:
Parker2991
2025-10-16 10:43:12 -05:00
parent e7a8aa226c
commit e33988d103
13 changed files with 49 additions and 167 deletions
+5 -5
View File
@@ -8,7 +8,7 @@ class commandHandler {
const options = context.options;
bot.on("parsed_message", (data) => {
//try {
try {
if (data.type !== "minecraft:chat" && data.type !== "extras:command_spy") return;
const prefixes = config.prefixes;
prefixes.map((prefix) => {
@@ -30,7 +30,7 @@ class commandHandler {
source.sendFeedback = (message) => {
if (options.mode === "savageFriends") bot.tellraw(`@a`, [
message
])//[I;
])
else bot.tellraw(`@p[nbt={UUID:[I;${source.player.entityUuid}]}]`, message)
}
ratelimit++;
@@ -44,9 +44,9 @@ class commandHandler {
bot.commandManager.executeString(source, command);
}
});
//} catch (e) {
//console.log(e.stack);
//}
} catch (e) {
console.log(e.stack);
}
});
}
}