mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
fix: missing argument
This commit is contained in:
parent
2b7eefee73
commit
e3589789b0
@ -39,7 +39,7 @@ const BotStats = RequestHandler()
|
||||
const botInfo = await get.bot.load(bot)
|
||||
if(!botInfo) return ResponseWrapper(res, { code: 404, message: '존재하지 않는 봇입니다.', version: 1 })
|
||||
if(botInfo.id !== bot) return ResponseWrapper(res, { code: 403, version: 1 })
|
||||
const d = await update.updateServer(botInfo.id, validated.servers)
|
||||
const d = await update.updateServer(botInfo.id, validated.servers, undefined)
|
||||
if(d===1 || d===2) return ResponseWrapper(res, { code: 403, message: `서버 수를 ${[null, '1만', '100만'][d]} 이상으로 설정하실 수 없습니다. 문의해주세요.`, version: 1 })
|
||||
get.bot.clear(bot)
|
||||
await getStatsLoggingChannel().send(`[BOT/STATS] <@${botInfo.id}> (${botInfo.id})\n${makeDiscordCodeblock(`${botInfo.servers > validated.servers ? '-' : '+'} ${botInfo.servers} -> ${validated.servers} (${botInfo.servers > validated.servers ? '▼' : '▲'}${Math.abs(validated.servers - botInfo.servers)})`, 'diff')}`, (new MessageEmbed().setDescription(`${botInfo.name} - <@${botInfo.id}> ([${botInfo.id}](${KoreanbotsEndPoints.URL.bot(botInfo.id)}))`)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user