From f562e264e23229fab434d32a9042b99ca6326916 Mon Sep 17 00:00:00 2001 From: shibao Date: Fri, 27 Jan 2023 19:04:22 -0500 Subject: [PATCH] post on home timeline --- misskey-szuru-bot.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/misskey-szuru-bot.py b/misskey-szuru-bot.py index fb70556..8b316c3 100644 --- a/misskey-szuru-bot.py +++ b/misskey-szuru-bot.py @@ -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 +)