mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
commit
c031352cd4
@ -44,7 +44,7 @@ const Navbar: React.FC<NavbarProps> = ({ token }) => {
|
|||||||
<div className='container flex flex-wrap items-center justify-between mx-auto px-4'>
|
<div className='container flex flex-wrap items-center justify-between mx-auto px-4'>
|
||||||
<div className='relative flex justify-between w-full lg:justify-start lg:w-auto'>
|
<div className='relative flex justify-between w-full lg:justify-start lg:w-auto'>
|
||||||
<Link href={dev ? '/developers' : '/'}>
|
<Link href={dev ? '/developers' : '/'}>
|
||||||
<a className={`${dev ? 'text-koreanbots-blue ' : ''}logofont text-large whitespace-no-wrap inline-block mr-4 py-2 hover:text-gray-300 font-semibold leading-relaxed uppercase sm:text-2xl`}
|
<a className={`${dev ? 'dark:text-koreanbots-blue ' : ''}logofont text-large whitespace-no-wrap inline-block mr-4 py-2 hover:text-gray-300 font-semibold leading-relaxed uppercase sm:text-2xl`}
|
||||||
>
|
>
|
||||||
{ dev ? <><i className='fas fa-tools mr-1'/> DEVELOPERS</> : 'KOREANBOTS'}
|
{ dev ? <><i className='fas fa-tools mr-1'/> DEVELOPERS</> : 'KOREANBOTS'}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import { AddBotSubmit, AddBotSubmitSchema, CsrfCaptcha, ManageBot, ManageBotSche
|
|||||||
import RequestHandler from '@utils/RequestHandler'
|
import RequestHandler from '@utils/RequestHandler'
|
||||||
import { User } from '@types'
|
import { User } from '@types'
|
||||||
import { checkUserFlag, diff, inspect, makeDiscordCodeblock, objectDiff, serialize } from '@utils/Tools'
|
import { checkUserFlag, diff, inspect, makeDiscordCodeblock, objectDiff, serialize } from '@utils/Tools'
|
||||||
import { discordLog, getBotReviewLogChannel } from '@utils/DiscordBot'
|
import { discordLog, getBotReviewLogChannel, getMainGuild } from '@utils/DiscordBot'
|
||||||
import { KoreanbotsEndPoints } from '@utils/Constants'
|
import { KoreanbotsEndPoints } from '@utils/Constants'
|
||||||
|
|
||||||
const patchLimiter = rateLimit({
|
const patchLimiter = rateLimit({
|
||||||
@ -98,7 +98,8 @@ const Bots = RequestHandler()
|
|||||||
const captcha = await CaptchaVerify(req.body._captcha)
|
const captcha = await CaptchaVerify(req.body._captcha)
|
||||||
if(!captcha) return ResponseWrapper(res, { code: 400, message: '캡챠 검증에 실패하였습니다.' })
|
if(!captcha) return ResponseWrapper(res, { code: 400, message: '캡챠 검증에 실패하였습니다.' })
|
||||||
if(req.body.name !== bot.name) return ResponseWrapper(res, { code: 400, message: '봇 이름을 입력해주세요.' })
|
if(req.body.name !== bot.name) return ResponseWrapper(res, { code: 400, message: '봇 이름을 입력해주세요.' })
|
||||||
remove.bot(bot.id)
|
await remove.bot(bot.id)
|
||||||
|
await getMainGuild().members.cache.get(bot.id)?.kick('봇 삭제됨.')
|
||||||
get.user.clear(user)
|
get.user.clear(user)
|
||||||
await discordLog('BOT/DELETE', user, (new MessageEmbed().setDescription(`${bot.name} - <@${bot.id}> ([${bot.id}](${KoreanbotsEndPoints.URL.bot(bot.id)}))`)),
|
await discordLog('BOT/DELETE', user, (new MessageEmbed().setDescription(`${bot.name} - <@${bot.id}> ([${bot.id}](${KoreanbotsEndPoints.URL.bot(bot.id)}))`)),
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user