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