Add block use proxy and other block proxyless

this available in OB1 with
SET USEPROXY FALSE
##PROXILESS BLOCK HERE
SET USEPROXY TRUE
##PROXIED BLOCK HERE
SET PROXY “127.0.0.1:8888”
SET PROXYTYPE SOCKS5
##USING ANOTHER PROXY

it available in openbullet 2 ? and how ?

1 Like
  • data.UseProxy (bool) whether to use the proxy assigned to the bot
  • data.Proxy.Host (string)
  • data.Proxy.Port (int)
  • data.Proxy.Username (string)
  • data.Proxy.Password (string)
  • data.Proxy.Type (ProxyType) can be Http/Socks4/Socks5/Socks4a

all avaliable at [LoliCode Statements] OpenBullet2

3 Likes

Some example:

data.UseProxy = false;
// Block without proxy here
data.UseProxy = true;
data.Proxy.Host = "127.0.0.1";
data.Proxy.Port = 8888;
data.Proxy.Username = "username";
data.Proxy.Password = "password";
data.Proxy.Type = RuriLib.Models.Proxies.ProxyType.Http;
2 Likes

Screenshot_1
@Ruri can you help

data.Proxy = new Proxy("127.0.0.1", 9050, ProxyType.Http, "username", "password");

(ProxyType) can be Http/Socks4/Socks5/Socks4a

=========

i was looking at lolicode and you can do like that too

SET PROXY "127.0.0.1" 8080 Http "username" "password"
2 Likes

If you started without a proxy then Proxy is null, so you have to create a proxy using the syntax @najort pointed out

1 Like