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
from twisted.internet import defer, reactor
from quarry.net.client import ClientFactory, ClientProtocol
from quarry.net.auth import Profile
from quarry.net.auth import OfflineProfile
class ExampleClientProtocol(ClientProtocol):
pass
class ExampleClientFactory(ClientFactory):
protocol = ExampleClientProtocol
@defer.inlineCallbacks
def main():
print("logging in...")
# profile = yield Profile.from_credentials("Jimmy001") #For online real official account
profile = OfflineProfile("Jimmy") # For offline account
factory = ExampleClientFactory(profile)
print("connecting...")
factory = yield factory.connect("localhost", 25565)
print("connected!")
if __name__ == "__main__":
main()
reactor.run()
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 stuff and use it to join server instead local machineI 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