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