Use is_bot rather than a hardcoded list.

master
float-trip 2023-07-10 00:21:01 +00:00
parent b235222ac2
commit ea0b22b5ec
1 changed files with 3 additions and 7 deletions

10
bot.py
View File

@ -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):