mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 14:30:22 +00:00
Compare commits
No commits in common. "8ab66a32852481354c798f4c5860ec9ef9ea0558" and "0d65b22bc67446715056d7279fcc8dd4ec324e72" have entirely different histories.
8ab66a3285
...
0d65b22bc6
@ -116,15 +116,13 @@ const Bots: NextPage<BotsProps> = ({ data, desc, date, user, theme, csrfToken })
|
|||||||
로 문의해주세요.
|
로 문의해주세요.
|
||||||
</p>
|
</p>
|
||||||
</Message>
|
</Message>
|
||||||
) : data.enforcements.filter((i) => i !== 'NONE').length > 0 ? (
|
) : data.enforcements.length > 0 ? (
|
||||||
<Message type='warning'>
|
<Message type='warning'>
|
||||||
<h2 className='text-lg font-extrabold'>이 봇은 기능에 제한을 두고 있습니다.</h2>
|
<h2 className='text-lg font-extrabold'>이 봇은 기능에 제한을 두고 있습니다.</h2>
|
||||||
<p>
|
<p>
|
||||||
{data.enforcements
|
{data.enforcements.map((i) => (
|
||||||
.filter((i) => i !== 'NONE')
|
<li key={i}>{botEnforcements[i].description}</li>
|
||||||
.map((i) => (
|
))}
|
||||||
<li key={i}>{botEnforcements[i].description}</li>
|
|
||||||
))}
|
|
||||||
</p>
|
</p>
|
||||||
</Message>
|
</Message>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@ -641,7 +641,7 @@ async function submitBot(
|
|||||||
git: data.git,
|
git: data.git,
|
||||||
url: data.url,
|
url: data.url,
|
||||||
category: JSON.stringify(data.category),
|
category: JSON.stringify(data.category),
|
||||||
enforcements: JSON.stringify(data.enforcements),
|
enforcements: JSON.stringify(data.enforcements.filter((el) => el !== 'NONE')),
|
||||||
discord: data.discord,
|
discord: data.discord,
|
||||||
state: 0,
|
state: 0,
|
||||||
})
|
})
|
||||||
@ -751,7 +751,7 @@ async function updateBot(id: string, data: ManageBot): Promise<number> {
|
|||||||
intro: data.intro,
|
intro: data.intro,
|
||||||
desc: data.desc,
|
desc: data.desc,
|
||||||
vanity: data.vanity,
|
vanity: data.vanity,
|
||||||
enforcements: JSON.stringify(data.enforcements),
|
enforcements: JSON.stringify(data.enforcements.filter((el) => el !== 'NONE')),
|
||||||
banner: data.banner,
|
banner: data.banner,
|
||||||
bg: data.bg,
|
bg: data.bg,
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user