Update export statistics
This commit is contained in:
parent
b3ddac8f94
commit
1dc7c0d5ae
BIN
dist/Ragnar-1.3.37-py3-none-any.whl
vendored
BIN
dist/Ragnar-1.3.37-py3-none-any.whl
vendored
Binary file not shown.
BIN
dist/ragnar-1.3.37.tar.gz
vendored
BIN
dist/ragnar-1.3.37.tar.gz
vendored
Binary file not shown.
@ -116,7 +116,7 @@ class Bot:
|
|||||||
rant = self.api.get_rant(rant_id)
|
rant = self.api.get_rant(rant_id)
|
||||||
for comment in rant.get("comments", []):
|
for comment in rant.get("comments", []):
|
||||||
print("Checking if sus comment: ", comment["body"])
|
print("Checking if sus comment: ", comment["body"])
|
||||||
if '@ragnar' in comment.get('body',''):
|
if "@ragnar" in comment.get("body", ""):
|
||||||
print("Ragnar is mentioned, so flagging as sus comment.")
|
print("Ragnar is mentioned, so flagging as sus comment.")
|
||||||
return True
|
return True
|
||||||
if comment["user_score"] >= 5:
|
if comment["user_score"] >= 5:
|
||||||
|
Loading…
Reference in New Issue
Block a user