diff --git a/src/ragnar/bot.py b/src/ragnar/bot.py index 14f26b4..47bc60f 100644 --- a/src/ragnar/bot.py +++ b/src/ragnar/bot.py @@ -116,7 +116,7 @@ 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", ""): + if '@ragnar' in comment.get('body','').lower(): print("Ragnar is mentioned, so flagging as sus comment.") return True if comment["user_score"] >= 5: diff --git a/sudo b/sudo new file mode 100644 index 0000000..e0b3a5d --- /dev/null +++ b/sudo @@ -0,0 +1 @@ +aaltink*132