From 147a05fa45c17b2e44884ecbc00aefed56ed3fc6 Mon Sep 17 00:00:00 2001 From: Xtao_dada Date: Sun, 22 Aug 2021 15:11:25 +0800 Subject: [PATCH] =?UTF-8?q?antisticker=20=E4=BF=AE=E5=A4=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF=20(#188)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- antisticker.py | 7 +++++-- list.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/antisticker.py b/antisticker.py index 0866792..c116706 100644 --- a/antisticker.py +++ b/antisticker.py @@ -20,8 +20,11 @@ async def auto_remove_sticker(context): if context.chat_id > 0: return if context.sender: - if context.sender.bot: - return + try: + if context.sender.bot: + return + except AttributeError: + pass else: return diff --git a/list.json b/list.json index 755dbcd..896df64 100644 --- a/list.json +++ b/list.json @@ -752,7 +752,7 @@ }, { "name": "antisticker", - "version": "1.01", + "version": "1.011", "section": "chat", "maintainer": "xtaodada", "size": "0.7 kb",