|
|
|
@ -1,9 +1,9 @@
|
|
|
|
|
'''
|
|
|
|
|
Command line module for calling toota-palooza to do its work
|
|
|
|
|
Command line module for calling tootapalooza to do its work
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
__all__ = ['toota-palooza']
|
|
|
|
|
__author__ = 'Paco Hope <toota-palooza@filter.paco.to>'
|
|
|
|
|
__all__ = ['tootapalooza']
|
|
|
|
|
__author__ = 'Paco Hope <tootapalooza@filter.paco.to>'
|
|
|
|
|
__date__ = '25 November 2022'
|
|
|
|
|
__version__ = '1.0'
|
|
|
|
|
__copyright__ = 'Copyright © 2022 Paco Hope. See LICENSE for details.'
|
|
|
|
@ -21,14 +21,14 @@ class Tooter(Mastodon):
|
|
|
|
|
credentials: dict = {}
|
|
|
|
|
hostname: str = ''
|
|
|
|
|
files: dict = {}
|
|
|
|
|
client_id: str = '.toota-palooza.env'
|
|
|
|
|
client_id: str = '.tootapalooza.env'
|
|
|
|
|
|
|
|
|
|
def __init__(self, name: str):
|
|
|
|
|
self.name = name
|
|
|
|
|
cred_dict = self.credentials[self.name]
|
|
|
|
|
self.username = cred_dict['addr']
|
|
|
|
|
self.password = cred_dict['pass']
|
|
|
|
|
self.cred_file = f'.toota-palooza-usercred-{self.name}.env'
|
|
|
|
|
self.cred_file = f'.tootapalooza-usercred-{self.name}.env'
|
|
|
|
|
|
|
|
|
|
super().__init__(client_id=self.client_id, api_base_url=self.hostname)
|
|
|
|
|
|
|
|
|
|