forked from zovos/bot_tg
Merge pull request 'feat: add help menu for /uwu' (#15) from Furrex/bot_tg:main into main
Reviewed-on: zovos/bot_tg#15
This commit is contained in:
commit
4ecc25239e
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):
|
async def handle_uwu_cmd(message: types.Message):
|
||||||
args = message.text.split(maxsplit=1)
|
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"
|
tags = "rating:safe score:>500"
|
||||||
if len(args) > 1:
|
if len(args) > 1:
|
||||||
tags = args[1].strip()
|
tags = args[1].strip()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue