Fixed conflict.
All checks were successful
Build Ragnar anti spam bot / Build (push) Successful in 1m10s
All checks were successful
Build Ragnar anti spam bot / Build (push) Successful in 1m10s
This commit is contained in:
parent
1dc7c0d5ae
commit
ffd407ac66
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user