mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
style: fix deepscan
This commit is contained in:
parent
273bed7e0c
commit
522cfc02c8
@ -136,7 +136,7 @@ const Bots = RequestHandler()
|
||||
{ prefix: bot.prefix, library: bot.lib, web: bot.web, git: bot.git, url: bot.url, discord: bot.discord, intro: bot.intro, category: JSON.stringify(bot.category) },
|
||||
{ prefix: validated.prefix, library: validated.library, web: validated.website, git: validated.git, url: validated.url, discord: validated.discord, intro: validated.intro, category: JSON.stringify(validated.category) }
|
||||
)
|
||||
diffData.map(d => {
|
||||
diffData.forEach(d => {
|
||||
embed.addField(d[0], makeDiscordCodeblock(diff(d[1][0] || '', d[1][1] || ''), 'diff'))
|
||||
})
|
||||
await discordLog('BOT/EDIT', user, embed,
|
||||
|
||||
@ -19,7 +19,7 @@ const ApproveBotSubmit = RequestHandler()
|
||||
get.botSubmit.clear(JSON.stringify({ id: req.query.id, date: req.query.date }))
|
||||
get.bot.clear(req.query.id)
|
||||
const embed = new MessageEmbed().setTitle('승인').setColor('GREEN').setDescription(`[${submit.id}/${submit.date}](${KoreanbotsEndPoints.URL.submittedBot(submit.id, submit.date)})`).setTimestamp()
|
||||
if(req.body.note) embed.addField('📃 정보', `${req.body.note ? `${req.body.note}` : ''}`)
|
||||
if(req.body.note) embed.addField('📃 정보', req.body.note)
|
||||
await getBotReviewLogChannel().send(embed)
|
||||
return ResponseWrapper(res, { code: 200 })
|
||||
})
|
||||
|
||||
@ -25,7 +25,7 @@ export const discordLog = async (type: string, issuerID: string, embed?: Discord
|
||||
content: `[${type}] <@${issuerID}> (${issuerID})\n${content || ''}`,
|
||||
embed: embed && embed.setTitle(type).setTimestamp(new Date()),
|
||||
...(attachment && { files: [
|
||||
attachment && new Discord.MessageAttachment(Buffer.from(attachment.content), `${type.toLowerCase().replace(/\//g, '-')}-${issuerID}-${Date.now()}.${attachment.format}`)
|
||||
new Discord.MessageAttachment(Buffer.from(attachment.content), `${type.toLowerCase().replace(/\//g, '-')}-${issuerID}-${Date.now()}.${attachment.format}`)
|
||||
]
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user