diff --git a/src/ragnar/bot.py b/src/ragnar/bot.py index f56dab5..eec12fd 100644 --- a/src/ragnar/bot.py +++ b/src/ragnar/bot.py @@ -116,6 +116,9 @@ class Bot: rant = self.api.get_rant(rant_id) for comment in rant.get("comments", []): print("Checking if sus comment: ", comment["body"]) + if '@ragnar' in comment.get('body',''): + print("Ragnar is mentioned, so flagging as sus comment.") + return True if comment["user_score"] >= 5: print("User has reputation >= 5 so not sus.") continue