Najmul190 / Discord-AI-Selfbot

A Discord chatbot / selfbot that allows users to talk to AI powered by Groq API which uses Meta Llama-3 or use your own ChatGPT API key. The AI runs on a genuine Discord account, not a bot account and so it can be put in any server without any permissions! Try it out at: https://discord.gg/yUWmzQBV4P
GNU General Public License v3.0
102 stars 29 forks source link

[BUG] #45

Closed FaizurXD closed 2 months ago

FaizurXD commented 4 months ago

I am getting an error while starting , I just started the code for the first time and this error occurred also I downloaded all the dependencies and packages etc

File "/home/container/.local/lib/python3.10/site -packages/discord/client.py", line 927, in runner await self.start(token, reconnect=reconnect)

File "/home/container/.local/lib/python3.10/site -packages/discord/client.py", line 857, in start

await self.login(token)

File "/home/container/.local/lib/python3.10/site

-packages/discord/client.py", line 698, in login data = await state.http.static_login(token.str

ip()) File "/home/container/.local/lib/python3.10/site

-packages/discord/http.py", line 991, in static_lo gin

await self.startup()

File "/home/container/.local/lib/python3.10/site

-packages/discord/http.py", line 562, in startup self.super_properties, self.encoded_super_prop erties = sp, = await utils._get_info(session)

File "/home/container/.local/lib/python3.10/site

-packages/discord/utils.py", line 1446, in _get_in

fo

bn = await_get_build_number(session)

File "/home/container/.local/lib/python3.10/site -packages/discord/utils.py", line 1474, in_get_bu ild_number

build_url = 'https://discord.com/assets/' + re

.compile(r'assets/+([a-z0-9]+).js').findall(login _page) [-2] + '.js'

IndexError: list index out of range

populated commented 4 months ago

This is related to discord.py-self; you have to download discord.py-self from the repository itself, as the library is behind compared to the repository. Use pip install git+https://github.com/dolfies/discord.py-self to install it.