Update __init__.py
This commit is contained in:
parent
663d43edf6
commit
9c9fc3d8c2
1 changed files with 2 additions and 4 deletions
|
@ -58,17 +58,15 @@ async def _(msg: Bot.MessageSession):
|
|||
await msg.sendMessage(Image(drawb19('', result)))
|
||||
|
||||
|
||||
@phi.command('update assets')
|
||||
@phi.command('update assets', required_superuser=True)
|
||||
async def _(msg: Bot.MessageSession):
|
||||
update_ = await update_assets()
|
||||
if update_:
|
||||
await msg.finish(msg.locale.t("phigros.message.update.success"))
|
||||
|
||||
|
||||
@phi.command('update rating')
|
||||
@phi.command('update rating', required_superuser=True)
|
||||
async def _(msg: Bot.MessageSession):
|
||||
update_ = await update_difficulty_csv()
|
||||
if update_:
|
||||
await msg.finish(msg.locale.t("phigros.message.update.success"))
|
||||
|
||||
|
||||
|
|
Reference in a new issue