forked from zovos/bot_tg
Compare commits
No commits in common. "2bcc726eea75d9efa012af14e4858d5f1067a41d" and "967cfb4a6de229814c573f79dcc8ab45903efe5b" have entirely different histories.
2bcc726eea
...
967cfb4a6d
1 changed files with 0 additions and 14 deletions
14
games/uwu.py
14
games/uwu.py
|
|
@ -7,20 +7,6 @@ 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