Compare commits
No commits in common. '3182903c77eb9e7636ae3d8ec31de3f8178b101a' and '245603472639904111b5f8bc4e860aeb1358b200' have entirely different histories.
3182903c77
...
2456034726
File diff suppressed because it is too large
Load Diff
@ -1,19 +0,0 @@ |
||||
const chalk = require('chalk'); |
||||
|
||||
const ora = require('../../../util/log/ora'); |
||||
|
||||
module.exports = async (client) => { |
||||
const t = Date.now(); |
||||
client.misc = {}; |
||||
client.misc.dscconnected = false; |
||||
|
||||
await ora(`Waking up Natsuki... ${chalk.blueBright.bold.underline("(Connecting to Discord...)")}`, |
||||
client.login(client.auth.token) |
||||
).catch((e) => client.error("Failed to connect to Discord!! Error below.", 0, true, true, e)) |
||||
.then(() => {client.misc.dscconnected = true;}); |
||||
if (!client.misc.dscconnected) { |
||||
client.warn("Discord not connected, considering runtime to be unusable and exiting.", 0, true, true); |
||||
throw new Error(); |
||||
} |
||||
return client.success(`Connected to Discord in ${chalk.white(`${Date.now() - t}ms`)}.`); |
||||
}; |
Loading…
Reference in new issue