mirror of
https://github.com/developersIndia/deviras.git
synced 2024-11-22 21:23:10 +05:30
dont message if empty use
This commit is contained in:
parent
7c90a350e9
commit
282d02d000
@ -154,8 +154,12 @@ def main():
|
||||
update_gist(gist_id, "collection.json", json.dumps(collection_json, indent=4))
|
||||
print("Internal database updated successfully!")
|
||||
update_wiki(reddit, "community-threads", posts)
|
||||
send_message(reddit, new_post["author"], new_post["url"])
|
||||
print("Message sent to the author!")
|
||||
if new_post["author"]:
|
||||
send_message(reddit, new_post["author"], new_post["url"])
|
||||
print("Message sent to the author!")
|
||||
else:
|
||||
print("Author username is empty. No message sent.")
|
||||
|
||||
else:
|
||||
print("Post is already in the collection. No changes were made.")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user