You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the code for bot to join it's worked but i wonder how to use proxy to connect the server with it ?
Maybe in the line factory.connct("host","port") ? like proxy = {http:'http://proxy:port'} or socks proxy stuff
and use it to join server instead local machine
I read the class ClientFactory inside the module quarry.net.client but still confuse about this
Do i need to overwrite library for that or it build with itself ?
Here is example of default join code
fromtwisted.internetimportdefer, reactorfromquarry.net.clientimportClientFactory, ClientProtocolfromquarry.net.authimportProfilefromquarry.net.authimportOfflineProfileclassExampleClientProtocol(ClientProtocol):
passclassExampleClientFactory(ClientFactory):
protocol=ExampleClientProtocol@defer.inlineCallbacksdefmain():
print("logging in...")
# profile = yield Profile.from_credentials("Jimmy001") #For online real official accountprofile=OfflineProfile("Jimmy") # For offline accountfactory=ExampleClientFactory(profile)
print("connecting...")
factory=yieldfactory.connect("localhost", 25565)
print("connected!")
if__name__=="__main__":
main()
reactor.run()
The text was updated successfully, but these errors were encountered:
So how can i join the bot with the proxy?
Here is the code for bot to join it's worked but i wonder how to use proxy to connect the server with it ?
Maybe in the line
factory.connct("host","port")
? likeproxy = {http:'http://proxy:port'}
or socks proxy stuffand use it to join server instead local machine
I read the class
ClientFactory
inside the modulequarry.net.client
but still confuse about thisDo i need to overwrite library for that or it build with itself ?
Here is example of default join code
The text was updated successfully, but these errors were encountered: