Fixed conflict.
All checks were successful
Build Ragnar anti spam bot / Build (push) Successful in 1m10s

This commit is contained in:
retoor 2025-01-06 23:41:25 +00:00
parent 1dc7c0d5ae
commit ffd407ac66
2 changed files with 2 additions and 1 deletions

View File

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

1
sudo Normal file
View File

@ -0,0 +1 @@
aaltink*132