From e74c7d70dfc6b6e7b6a0c20a1dbce3b96153865b Mon Sep 17 00:00:00 2001 From: lifegpc Date: Sat, 16 Jan 2021 22:40:33 +0800 Subject: [PATCH] fix when reply bot in group, the bot will send help --- rssbot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rssbot.py b/rssbot.py index 84c3b9d..1546a1c 100644 --- a/rssbot.py +++ b/rssbot.py @@ -672,6 +672,8 @@ class messageHandle(Thread): self._main._db.setUserStatus( self._fromUserId, userStatus.normalStatus) return + if self._botCommand is None and self._data['chat']['type'] in ['group', 'supergroup']: + return if self._botCommand is None or self._botCommand not in ['/help', '/rss', '/rsslist']: self._botCommand = '/help' di = {'chat_id': self._chatId}