mirror of
https://code.chipmunk.land/Parker2991/NitoriBot/
synced 2026-12-02 23:25:39 -05:00
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:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user