Skip to content

Commit

Permalink
add: reddit comment tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTheDev committed Jul 14, 2024
1 parent c4dc6f6 commit 7ba770d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions bot/reddit/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7ba770d

Please sign in to comment.