This commit is contained in:
parent
9bb2964032
commit
f562e264e2
@ -4,6 +4,7 @@ import pyszuru
|
|||||||
import requests
|
import requests
|
||||||
import random
|
import random
|
||||||
from misskey import Misskey
|
from misskey import Misskey
|
||||||
|
from misskey import NoteVisibility
|
||||||
|
|
||||||
# arguments
|
# arguments
|
||||||
parser = argparse.ArgumentParser(prog='misskey-szuru-bot',
|
parser = argparse.ArgumentParser(prog='misskey-szuru-bot',
|
||||||
@ -34,4 +35,7 @@ if post.safety == "unsafe":
|
|||||||
text += f"\nsource: https://{args.booru}/post/{post.id_}"
|
text += f"\nsource: https://{args.booru}/post/{post.id_}"
|
||||||
|
|
||||||
# post a note :D
|
# post a note :D
|
||||||
Misskey(args.instance, i=args.token).notes_create(text=text)
|
Misskey(args.instance, i=args.token).notes_create(
|
||||||
|
text=text,
|
||||||
|
visibility=NoteVisibility.HOME
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user