Use is_bot rather than a hardcoded list.
parent
b235222ac2
commit
ea0b22b5ec
10
bot.py
10
bot.py
|
@ -26,7 +26,8 @@ class Bot:
|
|||
c
|
||||
for c in self.client.fetch_new_comments(limit=50)
|
||||
if "author_name" in c
|
||||
and c["author_name"] not in ["Bussy-boy", "AutoJanny", "BARD_BOT", "Snappy"]
|
||||
and not c["is_bot"]
|
||||
and c["author_name"] != config["username"]
|
||||
and c["post_id"] != 0
|
||||
]
|
||||
|
||||
|
@ -46,12 +47,7 @@ class Bot:
|
|||
if "author_name" not in reply:
|
||||
continue
|
||||
|
||||
if reply["author_name"] not in [
|
||||
"AutoJanny",
|
||||
"BARD_BOT",
|
||||
"bbbb",
|
||||
"longpostbot",
|
||||
]:
|
||||
if not reply["is_bot"]:
|
||||
self.reply(reply)
|
||||
|
||||
def make_forced_replies(self):
|
||||
|
|
Loading…
Reference in New Issue