This commit is contained in:
spla 2022-12-18 12:56:48 +01:00
pare 5bc8f95941
commit bd84443c3e

Veure arxiu

@ -35,13 +35,7 @@ if __name__ == '__main__':
for notif in notifications:
if notif.type != 'mention' and notif.type != 'status':
print(f"Dismissing notification id {notif.id}")
bot.mastodon.notifications_dismiss(notif.id)
elif notif.type == 'mention':
if notif.type == 'mention':
mention = bot.get_data(notif)
@ -149,18 +143,10 @@ if __name__ == '__main__':
bot.mastodon.status_post(f'@{mention.acct}, error al esborrar tots els tuts.', in_reply_to_id=mention.status_id, visibility='direct')
print(f"Dismissing notification id {mention.id}")
bot.mastodon.notifications_dismiss(mention.id)
else:
print(f"Dismissing notification id {mention.id}")
bot.mastodon.notifications_dismiss(mention.id)
elif notif.type == 'status':
if notif.status != None:
if 'visibility' in notif.status:
if notif.status.visibility == 'public' and notif.status.language == 'ca':
@ -175,13 +161,6 @@ if __name__ == '__main__':
bot.mastodon.notifications_dismiss(notif.id)
else:
bot.mastodon.notifications_dismiss(notif.id)
else:
bot.mastodon.notifications_dismiss(notif.id)
now = datetime.now()
print(now.hour, now.minute)