mirror of
https://github.com/musix-org/musix-oss
synced 2026-11-14 02:41:40 +00:00
additional error logging and debugging.
This commit is contained in:
1 parent
70316495f5
commit
2d7752d2cf
18 files changed
+126
-87
No files matched your search
@@ -7,7 +7,9 @@ if (config.devMode) {
|
||||
config.shards = 1;
|
||||
}
|
||||
|
||||
const { ShardingManager } = require("discord.js");
|
||||
const {
|
||||
ShardingManager
|
||||
} = require("discord.js");
|
||||
const manager = new ShardingManager("./src/bot.js", {
|
||||
token: config.token,
|
||||
respawn: config.respawn,
|
||||
@@ -28,3 +30,9 @@ console.log = function (arg) {
|
||||
oldConsole.log(arg);
|
||||
if (!config.devMode) webhookClient.send(arg);
|
||||
};
|
||||
|
||||
oldConsole.error = console.error;
|
||||
console.error = function (arg) {
|
||||
oldConsole.error(arg);
|
||||
if (!client.config.devMode) webhookClient.send(arg);
|
||||
};
|
||||
Reference in new issue
Block a user