From 4963c8b15eb1b99fcbe449c8fc7b1aefc549afa5 Mon Sep 17 00:00:00 2001 From: kk6fut Date: Wed, 14 Dec 2022 08:49:05 -0800 Subject: [PATCH] Plug in Mastodon section --- planeClass.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/planeClass.py b/planeClass.py index 4b24edf..9baf884 100644 --- a/planeClass.py +++ b/planeClass.py @@ -463,6 +463,11 @@ class Plane: from defTelegram import sendTeleg photo = open(self.map_file_name, "rb") sendTeleg(photo, message, self.config) + #Mastodon + if self.config.has_section('MASTODON') and self.config.getboolean('MASTODON', 'ENABLE'): + from defMastodon import sendMastodon + sendMastodon(self.map_file_name, message, self.config) + #Discord if self.config.getboolean('DISCORD', 'ENABLE'): role_id = self.config.get('DISCORD', 'ROLE_ID') if self.config.has_option('DISCORD', 'ROLE_ID') and self.config.get('DISCORD', 'ROLE_ID').strip() != "" else None @@ -880,4 +885,4 @@ class Plane: print(time_since_ra) if time_since_ra.seconds >= 600: print(ra_type) - self.recent_ra_types.pop(ra_type) \ No newline at end of file + self.recent_ra_types.pop(ra_type)