feat(bot): maybe we could use localizations
Signed-off-by: 하누 <aki@nrma.cc>
This commit is contained in:
parent
150bdaeb65
commit
33fd438f33
1 changed files with 34 additions and 16 deletions
50
bot.py
50
bot.py
|
@ -30,32 +30,50 @@ async def _addConnection(inter: disnake.ApplicationCommandInteraction):
|
||||||
RoleMetadataRecord(
|
RoleMetadataRecord(
|
||||||
key="honor_roll",
|
key="honor_roll",
|
||||||
name="Honor roll",
|
name="Honor roll",
|
||||||
description="튜토리얼 스테이지를 퍼펙트로 클리어해야 합니다.",
|
description="Perfect the tutorial",
|
||||||
type=RoleMetadataType.boolean_equal
|
type=RoleMetadataType.boolean_equal,
|
||||||
|
name_localizations={
|
||||||
|
"ko": ""
|
||||||
|
},
|
||||||
|
description_localizations={
|
||||||
|
"ko": ""
|
||||||
|
}
|
||||||
),
|
),
|
||||||
RoleMetadataRecord(
|
RoleMetadataRecord(
|
||||||
key="new_day",
|
key="new_day",
|
||||||
name="New Day",
|
name="New Day",
|
||||||
description="모든 스테이지를 클리어해야 합니다.",
|
description="Get through the morning",
|
||||||
type=RoleMetadataType.boolean_equal
|
type=RoleMetadataType.boolean_equal,
|
||||||
|
name_localizations={
|
||||||
|
"ko": ""
|
||||||
|
},
|
||||||
|
description_localizations={
|
||||||
|
"ko": ""
|
||||||
|
}
|
||||||
),
|
),
|
||||||
RoleMetadataRecord(
|
RoleMetadataRecord(
|
||||||
key="go_to_bed",
|
key="go_to_bed",
|
||||||
name="Go to bed",
|
name="Go to bed",
|
||||||
description="모든 스테이지를 퍼펙트로 클리어해야 합니다.",
|
description="Get all perfect scores",
|
||||||
type=RoleMetadataType.boolean_equal
|
type=RoleMetadataType.boolean_equal,
|
||||||
),
|
name_localizations={
|
||||||
RoleMetadataRecord(
|
"ko": ""
|
||||||
key="complete",
|
},
|
||||||
name="ALL CLEAR!!",
|
description_localizations={
|
||||||
description="게임의 도전 과제를 모두 달성해야 합니다.",
|
"ko": ""
|
||||||
type=RoleMetadataType.boolean_equal
|
}
|
||||||
),
|
),
|
||||||
RoleMetadataRecord(
|
RoleMetadataRecord(
|
||||||
key="percentage",
|
key="percentage",
|
||||||
name="Percent of Achievement",
|
name="% of Achievements",
|
||||||
description="% 이상의 도전 과제를 달성해야 합니다.",
|
description="% of cleared achievements",
|
||||||
type=RoleMetadataType.interger_greater_than_or_equal
|
type=RoleMetadataType.interger_greater_than_or_equal,
|
||||||
|
name_localizations={
|
||||||
|
"ko": ""
|
||||||
|
},
|
||||||
|
description_localizations={
|
||||||
|
"ko": ""
|
||||||
|
}
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
async with LinkedRolesOAuth2(client_id=os.getenv("CLIENT_ID"), token=os.getenv("BOT_TOKEN")) as client:
|
async with LinkedRolesOAuth2(client_id=os.getenv("CLIENT_ID"), token=os.getenv("BOT_TOKEN")) as client:
|
||||||
|
@ -66,4 +84,4 @@ async def _addConnection(inter: disnake.ApplicationCommandInteraction):
|
||||||
else:
|
else:
|
||||||
await inter.edit_original_message(content=f"> :star2: 역할 추가가 완료되었습니다!\n{result}")
|
await inter.edit_original_message(content=f"> :star2: 역할 추가가 완료되었습니다!\n{result}")
|
||||||
|
|
||||||
bot.run(os.getenv("BOT_TOKEN"))
|
bot.run(os.getenv("BOT_TOKEN"))
|
||||||
|
|
Reference in a new issue