lottery 修复机器人参与抽奖

This commit is contained in:
omg-xtao 2022-10-25 21:58:07 +08:00 committed by GitHub
parent 3b1ecc8b7c
commit 076bcf5d7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"]: