diff --git a/delete-this.py b/delete-this.py index 6708ace..cf98568 100644 --- a/delete-this.py +++ b/delete-this.py @@ -17,4 +17,10 @@ for notif in notifications: print(notif["id"]) mastodon.notifications_dismiss(notif["id"]) mastodon.status_delete(id_to_delete) + if "!replacethis" in notif.status.content and notif.account.acct == "bgcarlisle@scholar.social": + id_to_delete = notif.get("status").get("in_reply_to_id") + print(notif["id"]) + mastodon.notifications_dismiss(notif["id"]) + mastodon.status_delete(id_to_delete) + os.system('python3 shantybot.py')