File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,13 @@ func init() {
23
23
common .Logger .Info ("APIKEY: %s" , apikey )
24
24
}
25
25
go func () {
26
+ globalChat = binglib .NewChat ("" ).SetBingBaseUrl ("http://localhost:" + common .PORT ).SetSydneyBaseUrl ("ws://localhost:" + common .PORT ).SetBypassServer (common .BypassServer )
27
+ globalImage = binglib .NewImage ("" ).SetBingBaseUrl ("http://localhost:" + common .PORT ).SetBypassServer (common .BypassServer )
26
28
time .Sleep (200 * time .Millisecond )
27
29
t , _ := getCookie ("" , "" , "" )
28
30
common .Logger .Info ("BingAPI Ready!" )
29
- globalChat = binglib . NewChat ( t ). SetBingBaseUrl ( "http://localhost:" + common . PORT ). SetSydneyBaseUrl ( "ws://localhost:" + common . PORT ). SetBypassServer ( common . BypassServer )
30
- globalImage = binglib . NewImage ( t ). SetBingBaseUrl ( "http://localhost:" + common . PORT ). SetBypassServer ( common . BypassServer )
31
+ globalChat . SetCookies ( t )
32
+ globalImage . SetCookies ( t )
31
33
}()
32
34
}
33
35
You can’t perform that action at this time.
0 commit comments