3
0
Telegram_PaimonBot/defs/challenge.py
Xtao_dada 5eeea30fdc
v0.1.0beta (#1)
*  支持生成原神黄历
*  支持每日副本查询
*  支持角色资料、命座查询
*  支持武器查询
2021-07-09 23:31:30 +08:00

27 lines
537 B
Python

from pyrogram.types import Message
from datetime import datetime
def get_day(message: Message):
mes = message.text
if '' in mes:
day = 1
elif '' in mes:
day = 2
elif '' in mes:
day = 3
elif '' in mes:
day = 4
elif '' in mes:
day = 5
elif '' in mes:
day = 6
else:
day = datetime.now().isoweekday()
if '' in mes:
if day == 7:
day = 1
else:
day += 1
return day