@@ -308,8 +308,8 @@ lagrange = { remote_http = { host = "localhost", port = 8000 } }
308308[platform.Telegram]
309309token = "ttt"
310310
311- [platform.Twitter]
312- auth = { cookies = "a=b;c=d;ct0=blah" }
311+ [platform.Twitter.account.MyTwitter ]
312+ cookies = "a=b;c=d;ct0=blah"
313313
314314[platform.bilibili]
315315playback = { bililive_recorder = { listen_webhook = { host = "127.0.0.1", port = 8888 }, working_directory = "/brec/" } }
@@ -324,11 +324,11 @@ interval = '30s'
324324notify = ["meow"]
325325
326326[[subscription.meow]]
327- platform = { name = "Twitter", username = "meowww" }
327+ platform = { name = "Twitter", username = "meowww", as = "MyTwitter" }
328328notify = ["meow", "woof"]
329329
330330[[subscription.meow]]
331- platform = { name = "Twitter", username = "meowww2" }
331+ platform = { name = "Twitter", username = "meowww2", as = "MyTwitter" }
332332notify = ["meow", "woof", { ref = "woof", id = 123 }]
333333 "# ,
334334 |c| {
@@ -365,7 +365,7 @@ notify = ["meow", "woof", { ref = "woof", id = 123 }]
365365 experimental: Default :: default ( )
366366 } ) ) ,
367367 twitter: Accessor :: new( Some ( twitter:: ConfigGlobal {
368- auth : twitter:: ConfigCookies :: with_raw( "a=b;c=d;ct0=blah" )
368+ account : HashMap :: from_iter ( [ ( "MyTwitter" . into ( ) , Accessor :: new ( twitter:: ConfigCookies :: with_raw( "a=b;c=d;ct0=blah" ) ) ) ] )
369369 } ) ) ,
370370 bilibili: Accessor :: new( Some ( bilibili:: ConfigGlobal {
371371 playback: Accessor :: new( Some ( bilibili:: source:: playback:: ConfigGlobal {
@@ -420,7 +420,8 @@ notify = ["meow", "woof", { ref = "woof", id = 123 }]
420420 SubscriptionRaw {
421421 platform: Accessor :: new( SourceConfig :: Twitter (
422422 Accessor :: new( twitter:: source:: ConfigParams {
423- username: "meowww" . into( )
423+ username: "meowww" . into( ) ,
424+ actor: "MyTwitter" . into( )
424425 } )
425426 ) ) ,
426427 interval: None ,
@@ -432,7 +433,8 @@ notify = ["meow", "woof", { ref = "woof", id = 123 }]
432433 SubscriptionRaw {
433434 platform: Accessor :: new( SourceConfig :: Twitter (
434435 Accessor :: new( twitter:: source:: ConfigParams {
435- username: "meowww2" . into( )
436+ username: "meowww2" . into( ) ,
437+ actor: "MyTwitter" . into( )
436438 } )
437439 ) ) ,
438440 interval: None ,
0 commit comments