mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
fix: discord webhook message layout
- chore: remove unnecessary logging
This commit is contained in:
parent
a5aeb586b6
commit
0dc8cde7b2
@ -30,14 +30,14 @@ const BotLimit = RequestHandler().patch(async (req: PostApiRequest, res) => {
|
|||||||
const captcha = await CaptchaVerify(validated._captcha)
|
const captcha = await CaptchaVerify(validated._captcha)
|
||||||
if (!captcha) return
|
if (!captcha) return
|
||||||
|
|
||||||
const response = await update.updateServer(
|
await update.updateServer(
|
||||||
bot.id,
|
bot.id,
|
||||||
validated.servers,
|
validated.servers,
|
||||||
validated.shards == 0 ? undefined : validated.shards,
|
validated.shards == 0 ? undefined : validated.shards,
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
console.log(response)
|
|
||||||
get.user.clear(user)
|
get.user.clear(user)
|
||||||
|
|
||||||
await discordLog(
|
await discordLog(
|
||||||
'BOT/EXCEED_LIMIT',
|
'BOT/EXCEED_LIMIT',
|
||||||
userinfo.id,
|
userinfo.id,
|
||||||
@ -46,18 +46,10 @@ const BotLimit = RequestHandler().patch(async (req: PostApiRequest, res) => {
|
|||||||
),
|
),
|
||||||
null,
|
null,
|
||||||
makeDiscordCodeblock(
|
makeDiscordCodeblock(
|
||||||
`${bot.servers > validated.servers ? '-' : '+'} ${bot.servers} -> ${
|
`${bot.servers > validated.servers ? '-' : '+'} ${bot.servers} -> ${validated.servers} (${bot.servers > validated.servers ? '▼' : '▲'}${Math.abs(validated.servers - bot.servers)})\n` +
|
||||||
validated.servers
|
`${validated.servers >= 1000000 ? '+ 서버수 제한 해제 (1000000+)\n' : ''}` +
|
||||||
} (${bot.servers > validated.servers ? '▼' : '▲'}${Math.abs(validated.servers - bot.servers)})
|
`${validated.servers >= 10000 && validated.servers < 1000000 ? '+ 서버수 제한 해제 (10000+)\n' : ''}` +
|
||||||
+ ${
|
`${validated.shards >= 200 ? '+ 샤드수 제한 해제\n' : ''}`,
|
||||||
bot.servers >= 1000000
|
|
||||||
? '서버수 제한 해제 (1000000+)'
|
|
||||||
: bot.servers >= 10000
|
|
||||||
? '서버수 제한 해제 (10000+)'
|
|
||||||
: ''
|
|
||||||
}
|
|
||||||
+ ${bot.shards >= 200 ? '샤드수 제한 해제' : ''}
|
|
||||||
`,
|
|
||||||
'diff'
|
'diff'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user