forked from zovos/bot_tg
feat: add -h help flag to /uwu command
This commit is contained in:
parent
93d8c2187a
commit
2bcc726eea
1 changed files with 14 additions and 0 deletions
14
games/uwu.py
14
games/uwu.py
|
|
@ -7,6 +7,20 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
async def handle_uwu_cmd(message: types.Message):
|
||||
args = message.text.split(maxsplit=1)
|
||||
|
||||
if len(args) > 1 and args[1].strip() == "-h":
|
||||
help_msg = (
|
||||
"🐈 <b>Справка по тегам e621:</b>\n\n"
|
||||
"Перечислите любые теги через пробел после команды.\n"
|
||||
"• <b>rating</b>: <code>rating:safe</code> (безопасные), <code>rating:questionable</code>, <code>rating:explicit</code> (NSFW)\n"
|
||||
"• <b>score</b>: <code>score:>500</code> (искать популярные посты с рейтингом больше 500)\n"
|
||||
"• Исключить тег: поставьте минус, например <code>-fox</code>\n\n"
|
||||
"<i>Пример:</i> <code>/uwu wolf -rating:explicit score:>100</code>\n"
|
||||
"<i>По умолчанию:</i> <code>rating:safe score:>500</code>"
|
||||
)
|
||||
await message.reply(help_msg, parse_mode="HTML")
|
||||
return
|
||||
|
||||
tags = "rating:safe score:>500"
|
||||
if len(args) > 1:
|
||||
tags = args[1].strip()
|
||||
|
|
|
|||
Loading…
Reference in a new issue