Fixey fix
This commit is contained in:
parent
65cebc37ac
commit
8ebef4327d
4
reply.py
4
reply.py
|
@ -59,10 +59,10 @@ class ReplyListener(mastodon.StreamListener):
|
||||||
if mention == "pin":
|
if mention == "pin":
|
||||||
print("pin received, pinning")
|
print("pin received, pinning")
|
||||||
client.status_pin(pin)
|
client.status_pin(pin)
|
||||||
client.status_post("Toot pinned!", post_id, visibility=visibility spoiler_text = cfg['cw'])
|
client.status_post("Toot pinned!", post_id, visibility=visibility, spoiler_text = cfg['cw'])
|
||||||
else:
|
else:
|
||||||
print("unpin received, unpinning")
|
print("unpin received, unpinning")
|
||||||
client.status_post("Toot Unpinned!", post_id, visibility=visibility spoiler_text = cfg['cw'])
|
client.status_post("Toot unpinned!", post_id, visibility=visibility, spoiler_text = cfg['cw'])
|
||||||
client.status_unpin(pin)
|
client.status_unpin(pin)
|
||||||
else:
|
else:
|
||||||
print("User is not valid")
|
print("User is not valid")
|
||||||
|
|
Loading…
Reference in New Issue