mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 10:19:10 +00:00
replace discord.js with roleypoly v3 discord service
This commit is contained in:
parent
c196779ff2
commit
e26f287a3b
18 changed files with 247 additions and 364 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue