This commit is contained in:
parent
ef4641d5dd
commit
5d58204f2c
14
index.js
14
index.js
|
@ -717,13 +717,13 @@ discord.on('ready', async () => {
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
||||||
setTimeout(() => {
|
// setTimeout(() => {
|
||||||
// Wait 10 seconds, if startup is still true, something went wrong
|
// // Wait 10 seconds, if startup is still true, something went wrong
|
||||||
if (startup) {
|
// if (startup) {
|
||||||
console.log(`${colors.red("[ERROR]")} Startup failed, exiting...`);
|
// console.log(`${colors.red("[ERROR]")} Startup failed, exiting...`);
|
||||||
process.exit(1);
|
// process.exit(1);
|
||||||
}
|
// }
|
||||||
}, 10000)
|
// }, 10000)
|
||||||
|
|
||||||
// Check all channels in DB, fetch them, if they dont exist, delete all subscriptions
|
// Check all channels in DB, fetch them, if they dont exist, delete all subscriptions
|
||||||
db.all(`SELECT channelid FROM channels`, (err, rows) => {
|
db.all(`SELECT channelid FROM channels`, (err, rows) => {
|
||||||
|
|
Loading…
Reference in a new issue