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
|
c
|
||||||
for c in self.client.fetch_new_comments(limit=50)
|
for c in self.client.fetch_new_comments(limit=50)
|
||||||
if "author_name" in c
|
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
|
and c["post_id"] != 0
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -46,12 +47,7 @@ class Bot:
|
||||||
if "author_name" not in reply:
|
if "author_name" not in reply:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if reply["author_name"] not in [
|
if not reply["is_bot"]:
|
||||||
"AutoJanny",
|
|
||||||
"BARD_BOT",
|
|
||||||
"bbbb",
|
|
||||||
"longpostbot",
|
|
||||||
]:
|
|
||||||
self.reply(reply)
|
self.reply(reply)
|
||||||
|
|
||||||
def make_forced_replies(self):
|
def make_forced_replies(self):
|
||||||
|
|
Loading…
Reference in New Issue