mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-22 08:27:39 +00:00
lottery 修复机器人参与抽奖
This commit is contained in:
parent
3b1ecc8b7c
commit
076bcf5d7c
@ -54,6 +54,8 @@ async def lottery_end():
|
|||||||
async def handle_lottery(_, message: Message):
|
async def handle_lottery(_, message: Message):
|
||||||
if not message.from_user:
|
if not message.from_user:
|
||||||
return
|
return
|
||||||
|
if message.from_user.is_bot:
|
||||||
|
return
|
||||||
if not message.text:
|
if not message.text:
|
||||||
return
|
return
|
||||||
if not lottery_json["start"]:
|
if not lottery_json["start"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user