File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 242242 "enable" : False ,
243243 "misskey_instance_url" : "https://misskey.example" ,
244244 "misskey_token" : "" ,
245- "default_visibility " : "public" ,
246- "local_only " : False ,
245+ "misskey_default_visibility " : "public" ,
246+ "misskey_local_only " : False ,
247247 },
248248 "Slack" : {
249249 "id" : "slack" ,
356356 "type" : "string" ,
357357 "hint" : "连接服务设置生成的 API 鉴权访问令牌(Access token)" ,
358358 },
359- "default_visibility " : {
359+ "misskey_default_visibility " : {
360360 "description" : "默认帖子可见性" ,
361361 "type" : "string" ,
362362 "options" : ["public" , "home" , "followers" ],
363363 "hint" : "机器人发帖时的默认可见性设置。public:公开,home:主页时间线,followers:仅关注者。" ,
364364 },
365- "local_only " : {
365+ "misskey_local_only " : {
366366 "description" : "仅限本站(不参与联合)" ,
367367 "type" : "bool" ,
368368 "hint" : "启用后,机器人发出的帖子将仅在本实例可见,不会联合到其他实例" ,
Original file line number Diff line number Diff line change @@ -38,8 +38,10 @@ def __init__(
3838 self .poll_interval = self .config .get ("poll_interval" , 5.0 )
3939 self .max_message_length = self .config .get ("max_message_length" , 3000 )
4040
41- self .default_visibility = self .config .get ("default_visibility" , "public" )
42- self .local_only = self .config .get ("local_only" , False )
41+ self .default_visibility = self .config .get (
42+ "misskey_default_visibility" , "public"
43+ )
44+ self .local_only = self .config .get ("misskey_local_only" , False )
4345
4446 self .api : Optional [MisskeyAPI ] = None
4547 self ._running = False
@@ -54,8 +56,8 @@ def meta(self) -> PlatformMetadata:
5456 "misskey_token" : "" ,
5557 "poll_interval" : 5.0 ,
5658 "max_message_length" : 3000 ,
57- "default_visibility " : "public" ,
58- "local_only " : False ,
59+ "misskey_default_visibility " : "public" ,
60+ "misskey_local_only " : False ,
5961 }
6062 default_config .update (self .config )
6163
You can’t perform that action at this time.
0 commit comments