Browse Source

Update planeClass.py

Adds Mastodon circling messages
pull/90/head
Jack Sweeney 2 years ago committed by GitHub
parent
commit
92a6f5808d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      planeClass.py

4
planeClass.py

@ -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")

Loading…
Cancel
Save