replace discord.js with roleypoly v3 discord service

This commit is contained in:
41666 2020-02-02 13:10:01 -05:00
parent c196779ff2
commit e26f287a3b
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF
18 changed files with 247 additions and 364 deletions

View file

@ -81,7 +81,7 @@ async function start() {
try {
ctx.body = fs.readFileSync(path.join(pub, 'index.html'), { encoding: 'utf-8' })
} catch (e) {
ctx.body = "A problem occured."
ctx.body = 'A problem occured.'
ctx.status = 500
console.error(e)
}
@ -100,15 +100,14 @@ async function start() {
} catch (e) {
log.error(e)
ctx.status = ctx.status || 500
if (DEVEL) {
console.error(e)
}
}
ctx.body = {
err: 'something terrible happened.',
}
}
let timeElapsed = new Date() - timeStart