Implement function for publishing to Mastodon

This commit is contained in:
youshitsune 2023-06-09 08:33:24 +02:00
parent 6eaa6a19d5
commit 10c19997d5
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@ def show_version():
print("There is NO WARRANTY, to the extent permitted by law.")
def publish(ctx, token, url):
pass
m = Mastodon(access_token=token, api_base_url=url)
m.toot(ctx)
def listen(user, passwd, url, port):
mail = imaplib.IMAP4_SSL(url, port=port)