Implement function for publishing to Mastodon
This commit is contained in:
parent
6eaa6a19d5
commit
10c19997d5
@ -16,7 +16,8 @@ def show_version():
|
|||||||
print("There is NO WARRANTY, to the extent permitted by law.")
|
print("There is NO WARRANTY, to the extent permitted by law.")
|
||||||
|
|
||||||
def publish(ctx, token, url):
|
def publish(ctx, token, url):
|
||||||
pass
|
m = Mastodon(access_token=token, api_base_url=url)
|
||||||
|
m.toot(ctx)
|
||||||
|
|
||||||
def listen(user, passwd, url, port):
|
def listen(user, passwd, url, port):
|
||||||
mail = imaplib.IMAP4_SSL(url, port=port)
|
mail = imaplib.IMAP4_SSL(url, port=port)
|
||||||
|
Loading…
Reference in New Issue
Block a user