Update planeClass.py

Adds Mastodon circling messages
This commit is contained in:
Jack Sweeney 2022-12-22 21:38:36 -05:00 committed by GitHub
parent bba2eb75a1
commit 92a6f5808d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -821,6 +821,10 @@ class Plane:
if self.config.has_option('META', 'ENABLE') and self.config.getboolean('META', 'ENABLE'):
from meta_toolkit import post_to_meta_both
post_to_meta_both(self.config.get("META", "FB_PAGE_ID"), self.config.get("META", "IG_USER_ID"), self.map_file_name, message, self.config.get("META", "ACCESS_TOKEN"))
#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)
self.circle_history['triggered'] = True
elif abs(total_change) <= 360 and self.circle_history["triggered"]:
print("No Longer Circling, trigger cleared")