New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Error in dis-bot.pyw file #56
Comments
Try resetting your token and then reinserting it into the settings file. If that doesn't work turn on testing and move copy the relevant values into the .env file. |
1 similar comment
Try resetting your token and then reinserting it into the settings file. If that doesn't work turn on testing and move copy the relevant values into the .env file. |
I tried both solutions and they doesn't work. The error is still the same. |
I'll be back at my pc in a few hours and hopefully be able to replicate it. |
i also have this error, if you nead any data that i can give just tell me |
I tried the stable version with the latest commits and after some little modifications like fixing the path to the correct one I get a new error. Starting bot... The HTTP client has exhausted a per-route ratelimit. Locking route for 1.0 seconds. I tried lowering the threads from 1020 to even 5, but still the error is the same. Another problem is that the bot actually turn on, but trying to use command /status gives another error: Using /server-scan gives another error: |
I'll look into it when I get back but for the mean time just try adding in |
/server_scan command still doesn't work |
The latest dev build should be working, I haven't tested out the status range since my server is bugged rn but normal status should work. |
/status works |
@Pilot1782 Will /server_scan command get fixed or is it a "won't-fix"? |
So, the dev build works a lot better right now and I'm in the middle of rewriting the scanner to move to the scanCore file. |
I updated the python version and all of the packages. I also updated dis-bot.pyw and funcs.py. And now I get this error: |
Lol I'm working on completely removing the scan feature as it is right now for a better implementation, you can test it out in scanCore.ipynb |
Contact Details
No response
What happened?
When I try to turn the discord bot on using dis-bot.pyw I get an error:
Checking scan
Checking status
Checking list
Testing:False, Debugging:True
Starting bot...
Starting emergency bot...
Checking scan
Checking status
Checking list
Could not prepare the client:
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\interactions\client\bot.py", line 352, in _ready
await self.__sync()
File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\interactions\client\bot.py", line 429, in __sync
_guilds = await self._http.get_self_guilds()
File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\interactions\api\http\guild.py", line 30, in get_self_guilds
if guild.get("id"):
AttributeError: 'str' object has no attribute 'get'
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x000002186DC77520>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x000002186F73C700>, 10669.937)]']
connector: <aiohttp.connector.TCPConnector object at 0x000002186DC77C40>
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x000001D9524C36D0>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x000001D952FE7AC0>, 10668.281)]']
connector: <aiohttp.connector.TCPConnector object at 0x000001D9524C3DF0>
At first I thought that I insterted something wrong in settings.json file or I have incompatible packages but after checking the settings.json file and reinstalling the packages the error is still the same.
My settings.json file:
{
"TOKEN":"token insterted",
"lower_ip_bound":"11.0.0.0",
"upper_ip_bound":"255.255.255.255",
"threads":1020,
"timeout":6000,
"os":1,
"home-dir": "(directory)",
"user":"Pilot1782",
"password":"Password123",
"guild-id": 963804208430198824,
"server":false,
"server-port":"8080",
"masscan":false,
"time2":1000,
"lin-py":"python3",
"win-py":"%LOCALAPPDATA%\Programs\Python\Python310\python.exe",
"debugging":true,
"testing":false
}
I have this error on the newest dev build.
Version
1.9.1 (Default)
Relevant log output
No response
The text was updated successfully, but these errors were encountered: