Add link to schedule.

This commit is contained in:
Julien Palard 2023-02-11 12:27:23 +01:00
parent 12d3c3ddd4
commit 7014b4ea10
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
1 changed files with 5 additions and 2 deletions

View File

@ -133,9 +133,12 @@ def parse_args():
def toot_for(talk, ahead_days=0):
"""Redact a toot for a given talk."""
if ahead_days:
return f"Dans {ahead_days} jours exactement, salle {talk.room} : « {talk.title} » présenté par {talk.author}"
msg = f"Dans {ahead_days} jours exactement, salle {talk.room} : « {talk.title} » présenté par {talk.author}"
else:
return f"Salle {talk.room} : « {talk.title} » présenté par {talk.author}, c'est maintenant !"
msg = f"Salle {talk.room} : « {talk.title} » présenté par {talk.author}, c'est maintenant !"
msg += "\n\nLe programme : https://www.pycon.fr/2023/fr/schedule.html"
return msg
def live_toot(talks, mastodon: Mastodon, ahead_days=0):