fix: have perfect achievements only
This commit is contained in:
parent
60ce37f101
commit
dd4b7e7d49
2 changed files with 19 additions and 1 deletions
14
bot.py
14
bot.py
|
@ -25,6 +25,18 @@ async def async_list(values: list) -> Any:
|
|||
async def _addConnection(inter: disnake.ApplicationCommandInteraction):
|
||||
await inter.response.defer(ephemeral=True)
|
||||
records = [
|
||||
RoleMetadataRecord(
|
||||
key="tutorial",
|
||||
name="Honor roll",
|
||||
description="튜토리얼 스테이지를 퍼펙트로 클리어해야 합니다.",
|
||||
type=RoleMetadataType.boolean_equal
|
||||
),
|
||||
RoleMetadataRecord(
|
||||
key="allperfect",
|
||||
name="Go to bed",
|
||||
description="모든 스테이지를 퍼펙트로 클리어해야 합니다.",
|
||||
type=RoleMetadataType.boolean_equal
|
||||
),
|
||||
RoleMetadataRecord(
|
||||
key="complete",
|
||||
name="ALL CLEAR!!",
|
||||
|
@ -36,7 +48,7 @@ async def _addConnection(inter: disnake.ApplicationCommandInteraction):
|
|||
name="Achievement Percentage",
|
||||
description="% 이상의 도전 과제를 달성해야 합니다.",
|
||||
type=RoleMetadataType.interger_greater_than_or_equal
|
||||
)
|
||||
),
|
||||
]
|
||||
async with LinkedRolesOAuth2(client_id=os.getenv("CLIENT_ID"), token=os.getenv("BOT_TOKEN")) as client:
|
||||
try:
|
||||
|
|
Reference in a new issue