mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -05:00
Forgor to switch token
This commit is contained in:
parent
0682ddce78
commit
9b56952c4c
@ -98,7 +98,7 @@ export default class TClient extends Client {
|
||||
socketTimeoutMS: 30000,
|
||||
family: 4
|
||||
}).then(()=>console.log(this.logTime(), 'Successfully connected to MongoDB')).catch(err=>{console.error(this.logTime(), `Failed to connect to MongoDB\n${err.reason}`); exec('pm2 stop Daggerbot')})
|
||||
this.login(this.tokens.beta);
|
||||
this.login(this.tokens.main);
|
||||
for await (const file of fs.readdirSync('dist/events')){
|
||||
const eventFile = await import(`./events/${file}`);
|
||||
this.on(file.replace('.js',''), async(...args)=>eventFile.default.run(this,...args))
|
||||
|
Loading…
Reference in New Issue
Block a user