Skip to content

Commit

Permalink
.(action)Listener -> .on/.off
Browse files Browse the repository at this point in the history
  • Loading branch information
Regalijan authored Jul 16, 2024
1 parent f096c44 commit 6b9769a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ bot.login().catch((e) => {
});

process.on("enableDebug", async function () {
bot.addListener("debug", logDebug);
bot.on("debug", logDebug);
});

process.on("disableDebug", async function () {
bot.removeListener("debug", logDebug);
bot.off("debug", logDebug);
});

const mongo = db.db("bot");
Expand Down

0 comments on commit 6b9769a

Please sign in to comment.