mirror of
https://github.com/developersIndia/deviras.git
synced 2024-11-23 05:33:12 +05:30
Compare commits
3 Commits
bcd0648167
...
282d02d000
Author | SHA1 | Date | |
---|---|---|---|
|
282d02d000 | ||
|
7c90a350e9 | ||
|
24be5dcd82 |
@ -73,7 +73,7 @@ def get_post_data(reddit, post_url):
|
|||||||
submission.created_utc
|
submission.created_utc
|
||||||
).isoformat(),
|
).isoformat(),
|
||||||
"flair_text": submission.link_flair_text,
|
"flair_text": submission.link_flair_text,
|
||||||
"author": submission.author.name,
|
"author": submission.author.name if submission.author else "",
|
||||||
}
|
}
|
||||||
return post
|
return post
|
||||||
|
|
||||||
@ -154,8 +154,12 @@ def main():
|
|||||||
update_gist(gist_id, "collection.json", json.dumps(collection_json, indent=4))
|
update_gist(gist_id, "collection.json", json.dumps(collection_json, indent=4))
|
||||||
print("Internal database updated successfully!")
|
print("Internal database updated successfully!")
|
||||||
update_wiki(reddit, "community-threads", posts)
|
update_wiki(reddit, "community-threads", posts)
|
||||||
|
if new_post["author"]:
|
||||||
send_message(reddit, new_post["author"], new_post["url"])
|
send_message(reddit, new_post["author"], new_post["url"])
|
||||||
print("Message sent to the author!")
|
print("Message sent to the author!")
|
||||||
|
else:
|
||||||
|
print("Author username is empty. No message sent.")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print("Post is already in the collection. No changes were made.")
|
print("Post is already in the collection. No changes were made.")
|
||||||
|
|
||||||
|
@ -28,11 +28,13 @@ def create_showcase_sunday_megathread(subreddit):
|
|||||||
|
|
||||||
title = "Showcase Sunday Megathread - {month} {year}".format(month=datetime.date.today().strftime("%B"), year=datetime.date.today().year)
|
title = "Showcase Sunday Megathread - {month} {year}".format(month=datetime.date.today().strftime("%B"), year=datetime.date.today().year)
|
||||||
text = """
|
text = """
|
||||||
It's time for our monthly showcase thread where we celebrate the incredible talent in our community. Whether it's an app, a website, a tool, or anything else you've built, we want to see it! Share your latest creations, side projects, or even your work-in-progress.
|
It's time for our monthly showcase thread where we celebrate the incredible talent in our community. Whether it's an app, a website, a tool, or anything else you've built, we want to see it! Share your latest creations, side projects, or even your work-in-progress. Ask for feedback, and help each other out.
|
||||||
|
|
||||||
Let's inspire each other and celebrate the diverse skills we have. Comment below with details about what you've built, the tech stack used, and any interesting challenges faced along the way.
|
Let's inspire each other and celebrate the diverse skills we have. Comment below with details about what you've built, the tech stack used, and any interesting challenges faced along the way.
|
||||||
|
|
||||||
**Showcase Sunday thread is posted on the second Sunday of every month. You can find the [schedule on our calendar](https://developersindia.in/events-calendar).**
|
### [Looking for more projects built by developersIndia community members?](https://www.reddit.com/r/developersIndia/?f=flair_name%3A%22I%20Made%20This%20%3Asnoo_wink%3A%22)
|
||||||
|
|
||||||
|
**Showcase Sunday thread is posted on the second Sunday of every month. You can find the [schedule on our calendar](https://developersindia.in/events-calendar). You can also find past [showcase sunday megathreads here](https://www.reddit.com/r/developersIndia/?f=flair_name%3A%22Showcase%20Sunday%20%3Asnoo_hearteyes%3A%22)**.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
submission = subreddit.submit(
|
submission = subreddit.submit(
|
||||||
|
Loading…
Reference in New Issue
Block a user