more overhauls

This commit is contained in:
Parker2991
2025-08-14 10:13:54 -05:00
parent 28be25d2e6
commit dc08bcad37
39 changed files with 924 additions and 491 deletions
+2 -1
View File
@@ -14,7 +14,7 @@ class command_handler {
prefixes.map((prefix) => {
const plainMessage = bot
.getMessageAsPrismarine(data.contents)
?.toMotd();
?.toString();
if (!plainMessage?.startsWith(prefix)) return;
const command = plainMessage.substring(prefix.length);
@@ -22,6 +22,7 @@ class command_handler {
const source = new CommandSource(
data.sender,
{ discord: false, console: false },
data.chatType,
null
);