From 4f3d6aa75e8e7dd9a954c017833b8bb75271edf9 Mon Sep 17 00:00:00 2001 From: Pentacene Date: Mon, 17 May 2021 10:17:18 +0800 Subject: [PATCH] =?UTF-8?q?AutoReplySticker=20v1.21=20=E4=B8=8D=E5=93=8D?= =?UTF-8?q?=E5=BA=94=E6=9C=BA=E5=99=A8=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +++ autoreplysticker.py | 2 ++ list.json | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index efeddfc..1ff4a37 100644 --- a/.gitignore +++ b/.gitignore @@ -130,3 +130,6 @@ dmypy.json # Pyre type checker .pyre/ + +# vscode +.vscode/ \ No newline at end of file diff --git a/autoreplysticker.py b/autoreplysticker.py index 334670c..6b2e527 100644 --- a/autoreplysticker.py +++ b/autoreplysticker.py @@ -223,6 +223,8 @@ async def process_message(context): return if str(context.sender.id) in _whitelist: return + if context.sender.bot: + return except: pass diff --git a/list.json b/list.json index 5f6d06e..3533554 100644 --- a/list.json +++ b/list.json @@ -362,7 +362,7 @@ }, { "name": "autoreplysticker", - "version": "1.20", + "version": "1.21", "section": "chat", "maintainer": "Pentacene", "size": "12 kb",