diff --git a/Attrap_bot.py b/Attrap_bot.py index 7d463aaf96ae7ab1f34721dba5dc3ddb7aab9bf8..6817e1be85516cd91b81089fe02145d46041d54f 100644 --- a/Attrap_bot.py +++ b/Attrap_bot.py @@ -6,6 +6,7 @@ import os import requests import smtplib import ssl +import time import yaml @@ -179,6 +180,8 @@ class Attrap_bot: suffix = suffix.replace('{administration_name}', raa_administration_name) toot = f"{toot}\n\n{suffix}" mastodon_sender.send(toot) + time.sleep(3) + logger.debug('Attente 3 secondes après envoi sur Mastodon...') # On complète le mail if smtp_sender: