post on home timeline
continuous-integration/drone/push Build is passing Details

This commit is contained in:
shibao 2023-01-27 19:04:22 -05:00
parent 9bb2964032
commit f562e264e2
1 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import pyszuru
import requests
import random
from misskey import Misskey
from misskey import NoteVisibility
# arguments
parser = argparse.ArgumentParser(prog='misskey-szuru-bot',
@ -34,4 +35,7 @@ if post.safety == "unsafe":
text += f"\nsource: https://{args.booru}/post/{post.id_}"
# 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
)