mirror of
https://github.com/developersIndia/deviras.git
synced 2024-12-22 08:09:49 +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))
|
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)
|
||||||
send_message(reddit, new_post["author"], new_post["url"])
|
if new_post["author"]:
|
||||||
print("Message sent to the 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:
|
else:
|
||||||
print("Post is already in the collection. No changes were made.")
|
print("Post is already in the collection. No changes were made.")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user