Closed MateeTheGod closed 6 years ago
~~From the error, it is apparent that one of the servers in your account is either down due to temporary outage or banned you from there while the bot was loading. Try re-running it. Also, try running it with another account. Your configs seem to be fine, so this might be just a temporary issue.~~
Do let us know if you're able to get it working or if you come across a new error.
Edit: Looks like the problem was with connecting to api.github.com
. I'm investigating this.
Edit 2: There is no documentation about this. Looks like github is forcing the connection for you. Are you using this behind a proxy? Try manually visiting the version file from google chrome and see if you are able to access it.
Try a quick restart to see if it connects then.
i am able to access the version file, and i assume you mean quick restart chrome, i will try that now edit: i have restarted chrome, has not worked, i will try to restart computer edit2: that hasnt worked either
Quick restart the bot lol, not chrome.
On Tue, Jun 5, 2018, 10:44 AM MateeTheGod notifications@github.com wrote:
i am about to access the version file, and i assume you mean quick restart chrome, i will try that now
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Hyperclaw79/PokeBall-SelfBot/issues/70#issuecomment-394584091, or mute the thread https://github.com/notifications/unsubscribe-auth/Ab8O6zaDu71gyIu43kSYsnOkRiWbZr80ks5t5hPBgaJpZM4UYHC3 .
Looks like there is a proxy problem on your end. Let's disable the version checking on yours and see if it connects to discord at least.
In your pokeball.py
, comment out the block from lines 657 to 667.
])
try:
blackies = '\n'.join([
', '.join([str(channel) for channel in self.configs['blacklists'][i:i+5]]) for i in range(0, len(self.configs['blacklists']), 5)
])
except:
blackies = "None"
try:
whities = '\n'.join([
', '.join([str(channel) for channel in self.configs['whitelists'][i:i+5]]) for i in range(0, len(self.configs['whitelists']), 5)
])
Starting from headers =
till print(bordered(vtext))
headers = {"Accept": "application/vnd.github.v3.raw+json"}
async with aiohttp.ClientSession(headers=headers, loop=self.loop) as sess:
async with sess.get("http://api.github.com/repos/Hyperclaw79/PokeBall-SelfBot/contents/_version.json") as resp:
data = await resp.read()
data = json.loads(data)
vnum = int(data["version"].split('v')[1].replace('.', ''))
lnum = int(self.version.split('v')[1].replace('.', ''))
if vnum > lnum:
vtext = f'{""*79}\nThere is a new version available. Download it to for new updates and bug fixes.\n'
vtext += f'Your version: {lnum}\nNew Version: {vnum}\n{""*79}'
print(vtext)
Comment that part out in the code.
Add #
in front of each line in that block.
#headers = {"Accept": "application/vnd.github.v3.raw+json"}
# async with aiohttp.ClientSession(headers=headers, loop=self.loop) as sess:
#async with sess.get("http://api.github.com/repos/Hyperclaw79/PokeBall-#SelfBot/contents/_version.json") as resp:
#data = await resp.read()
#data = json.loads(data)
#vnum = int(data["version"].split('v')[1].replace('.', ''))
# lnum = int(self.version.split('v')[1].replace('.', ''))
# if vnum > lnum:
#vtext = f'{"_"*79}\nThere is a new version available. Download it to for new updates and bug #fixes.\n'
#vtext += f'Your version: {lnum}\nNew Version: {vnum}\n{"_"*79}'
# print(vtext)
Yes, do that in your pokeball.py
and try running the bot again.
you're a genius, it worked :D
Glad that it worked. The only drawback is that you'll have to manually keep a look out for new updates and download them.
i had to do that anyways, i never got any updates
Title: [Bug/Query/(leave empty)] ErrorName
Body:
Problem:
After pressing run it just says the name of the bot and where its located, after like a minute or so it'll have an error
Steps to Reproduce:
I pressed run and waited a minute and the error popped up
config.json:
Most of the problems arise due to badly edited config.json. Hence post the contents of it within codeblocks. (Select the contents here and press code button on top.)
https://vgy.me/KMK1gJ.png
Traceback and Screenshots:
https://vgy.me/uzKPiB.png
Specs. sorry, i dont know, but i can say that the old version worked for me
OS: Windows 10 Bot Version: Latest Version Python Version: Python 3.6