feat: improved logging

This commit is contained in:
wonderlandpark 2021-05-21 09:43:33 +09:00
parent 5cc4098000
commit 007e5816d6

View File

@ -81,7 +81,8 @@ const Bots = RequestHandler()
content: inspect(serialize(result)), content: inspect(serialize(result)),
format: 'js' format: 'js'
}) })
await getBotReviewLogChannel().send(new MessageEmbed().setTitle('심사 대기 중').setColor('GREY').setDescription(`[${result.id}/${result.date}](${KoreanbotsEndPoints.URL.submittedBot(result.id, result.date)})`).setFooter(Date.now())) const userinfo = await get.user.load(user)
await getBotReviewLogChannel().send(new MessageEmbed().setAuthor(`${userinfo.username}#${userinfo.tag}`, KoreanbotsEndPoints.CDN.avatar(userinfo.id, { format: 'png', size: 256 }), KoreanbotsEndPoints.URL.user(userinfo.id)).setTitle('대기 중').setColor('GREY').setDescription(`[${result.id}/${result.date}](${KoreanbotsEndPoints.URL.submittedBot(result.id, result.date)})`).setTimestamp())
return ResponseWrapper(res, { code: 200, data: result }) return ResponseWrapper(res, { code: 200, data: result })
}) })
.delete(async (req: DeleteApiRequest, res) => { .delete(async (req: DeleteApiRequest, res) => {