post on home timeline
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
shibao 2023-01-27 19:04:22 -05:00
parent 9bb2964032
commit f562e264e2

View File

@ -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
)