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

27 lines
949 B
Python

from pyrogram import Client
from pyrogram.types import Message
from os import getcwd, sep
from defs.challenge import get_day
async def tf_msg(client: Client, message: Message):
day = get_day(message)
if day == 7:
await message.reply('亲爱的旅行者:星期天所有副本都可以刷哦!', quote=True)
else:
path = f'{getcwd()}{sep}assets{sep}images{sep}tf{day}.png'
await message.reply_photo(photo=path, quote=True)
async def wq_msg(client: Client, message: Message):
day = get_day(message)
if day == 7:
await message.reply('亲爱的旅行者:星期天所有副本都可以刷哦!', quote=True)
else:
path = f'{getcwd()}{sep}assets{sep}images{sep}we{day}.png'
await message.reply_photo(photo=path, quote=True)
async def zb_msg(client: Client, message: Message):
await message.reply_photo(photo=f'{getcwd()}{sep}assets{sep}images{sep}zb.png', quote=True)