mirror of
https://code.chipmunk.land/Parker2991/NitoriBot/
synced 2026-12-02 15:15:39 -05:00
revert the class changes for between.js, usernameGen.js and ansi.js along with having the bot.js file extend EventEmitter like chayapak suggested
This commit is contained in:
@@ -235,6 +235,7 @@ class ChatModule {
|
||||
message = tryParse(packet.content);
|
||||
}
|
||||
|
||||
|
||||
if (
|
||||
message.translate === "advMode.setCommand.success" &&
|
||||
config?.debug?.commandSetMessage === false
|
||||
|
||||
@@ -57,7 +57,7 @@ class DiscordModule {
|
||||
.replaceAll("```\u001b[9```" + "```\u001b[3```")
|
||||
.replaceAll("https://discord", "https:\rdiscord");
|
||||
try {
|
||||
sendDiscordMessage(new fixansi(ansi?.replaceAll("`", "`\u200b")).ansi);
|
||||
sendDiscordMessage(fixansi(ansi?.replaceAll("`", "`\u200b")));
|
||||
} catch (e) {
|
||||
bot.console.warn(`Error sending a message to Discord: ${e.message}`);
|
||||
sendDiscordMessage(e.message);
|
||||
|
||||
@@ -14,7 +14,7 @@ class ReconnectModule {
|
||||
if (options.usernameGen) {
|
||||
client =
|
||||
options.client ??
|
||||
mc.createClient(options, (options.username = new usernameGen().username()));
|
||||
mc.createClient(options, (options.username = usernameGen()));
|
||||
} else {
|
||||
client = options.client ?? mc.createClient(options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user