Fix that
This commit is contained in:
parent
b66c5550dc
commit
db31f3f31f
3
index.js
3
index.js
|
@ -1,3 +1,4 @@
|
||||||
|
console.log("Starting up...")
|
||||||
require("dotenv").config()
|
require("dotenv").config()
|
||||||
const funcs = require("./helpers.js");
|
const funcs = require("./helpers.js");
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
@ -225,7 +226,7 @@ process.on('uncaughtException', (error) => {
|
||||||
console.error('Uncaught exception:', error);
|
console.error('Uncaught exception:', error);
|
||||||
// save full stack to file in errors/timestamp.log
|
// save full stack to file in errors/timestamp.log
|
||||||
fs.writeFileSync(`errors/exception-${Date.now()}.log`, error.stack);
|
fs.writeFileSync(`errors/exception-${Date.now()}.log`, error.stack);
|
||||||
}
|
});
|
||||||
|
|
||||||
const startTime = new Date();
|
const startTime = new Date();
|
||||||
client.login(process.env.DISCORD_TOKEN)
|
client.login(process.env.DISCORD_TOKEN)
|
Loading…
Reference in a new issue