From 7ba770d99f2c3372f03597bf313b77d478939e2c Mon Sep 17 00:00:00 2001
From: Magic <82341152+MagicTheDev@users.noreply.github.com>
Date: Sun, 14 Jul 2024 09:06:37 -0500
Subject: [PATCH] add: reddit comment tracking
---
.idea/workspace.xml | 22 ++++++++++++----------
bot/reddit/track.py | 2 ++
2 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 9934e21..0b94cd3 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,9 @@
-
+
+
+
@@ -186,14 +188,6 @@
1706581825121
-
-
- 1712792878485
-
-
-
- 1712792878485
-
1712795023805
@@ -578,7 +572,15 @@
1720964920590
-
+
+
+ 1720965222823
+
+
+
+ 1720965222823
+
+
diff --git a/bot/reddit/track.py b/bot/reddit/track.py
index 0475781..cdd0e0b 100644
--- a/bot/reddit/track.py
+++ b/bot/reddit/track.py
@@ -62,6 +62,8 @@ async def comment_stream():
if count < 100: # This removes the 100 historical submissions that SubredditStream pulls.
count += 1
continue
+ await comment.author.load()
+ await comment.submission.load()
json_data = {"type": "redditcomment",
"data" : {"author" : comment.author.name,
"avatar" : comment.author.icon_img,