> πͺ
github.com/Najmul190
----------------
OS : Windows 11
GPU : RTX 2070
CPU : Ryzen 5 3600
Alias : Najmul
Languages : Python
Discord : Najmul
README shamefully stolen. (cant find the original anymore)
A Discord chatbot / selfbot that allows users to talk to AI powered by OpenGPT or BARD. The AI runs on a genuine Discord account, not a bot account and has image detection alongside image generation.
License: GNU General Public License v3.0
I downloaded your repository, installed dependencies via bat file, wrote my promt in instructions, wrote channel in channels.txt, wrote my token and word trigger
I tried to get some kind of response by replying to my message, but the bot gives an error in the console and doesn't respond, on the default settings from the repository everything worked a week ago when testing, but when I wrote my promt and my trigger words it stopped working.
my discord id: 9w8
btw, if you can help...
Describe the bug
Analyze and styles command does not work for some reason
To Reproduce
Steps to reproduce the behavior:
Expected behavior
In my understanding, it should be able to talk like how I talk, or in fact the command should give something back when I type it in. But the bot does not seem to recognize the command.
Desktop (please complete the following information):
Same issue as #24
Error making the request: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('https://gpt4.xunika.uk/api/openai/v1/chat/completions') Task exception was never retrieved future: <Task finished name='Task-27' coro=<on_message.<locals>.generate_response_in_thread() done, defined at /home/runner/Discord-AI-Selfbot/main.py:263> exception=AttributeError("'NoneType' object has no attribute 'splitlines'")> Traceback (most recent call last): File "/home/runner/Discord-AI-Selfbot/main.py", line 266, in generate_response_in_thread chunks = split_response(response) File "/home/runner/Discord-AI-Selfbot/main.py", line 99, in split_response lines = response.splitlines() AttributeError: 'NoneType' object has no attribute 'splitlines'
I have just updated the main.py file and still get this issue, I'm hosting the bot on replit.
Hey the bot works great but I've been wondering if there is a way to have multiple trigger words instead of just one. I've been trying around but haven't found a way to make it work yet
Keep on getting this super long error message when running. Manual fallback does not work, selfbot is still inactive.
192.168.1.75 - - [06/Dec/2023 15:02:32] "GET / HTTP/1.1" 200 -
[2023-12-06 15:02:32] [WARNING ] discord.utils: Info API down. Falling back to manual fetching...
Traceback (most recent call last):
File "C:\Users\Arthur\Desktop\Discord-AI-Selfbot\main.py", line 510, in <module>
bot.run(TOKEN)
File "C:\Users\Arthur\Desktop\Discord-AI-Selfbot\bot-env\lib\site-packages\discord\client.py", line 938, in run
asyncio.run(runner())
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "C:\Users\Arthur\Desktop\Discord-AI-Selfbot\bot-env\lib\site-packages\discord\client.py", line 927, in runner
await self.start(token, reconnect=reconnect)
File "C:\Users\Arthur\Desktop\Discord-AI-Selfbot\bot-env\lib\site-packages\discord\client.py", line 857, in start
await self.login(token)
File "C:\Users\Arthur\Desktop\Discord-AI-Selfbot\bot-env\lib\site-packages\discord\client.py", line 698, in login
data = await state.http.static_login(token.strip())
File "C:\Users\Arthur\Desktop\Discord-AI-Selfbot\bot-env\lib\site-packages\discord\http.py", line 991, in static_login
await self.startup()
File "C:\Users\Arthur\Desktop\Discord-AI-Selfbot\bot-env\lib\site-packages\discord\http.py", line 562, in startup
self.super_properties, self.encoded_super_properties = sp, _ = await utils._get_info(session)
File "C:\Users\Arthur\Desktop\Discord-AI-Selfbot\bot-env\lib\site-packages\discord\utils.py", line 1446, in _get_info
bn = await _get_build_number(session)
File "C:\Users\Arthur\Desktop\Discord-AI-Selfbot\bot-env\lib\site-packages\discord\utils.py", line 1474, in _get_build_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
192.168.1.75 - - [06/Dec/2023 15:02:33] "GET /favicon.ico HTTP/1.1" 404 -
[2024-01-17 10:38:32] [WARNING ] discord.utils: Info API down. Falling back to manual fetching...
Traceback (most recent call last):
File "F:\OpenSourceProject\Discord-AI-Selfbot\main.py", line 510, in
bot.run(TOKEN)
File "F:\OpenSourceProject\Discord-AI-Selfbot\bot-env\Lib\site-packages\discord\client.py", line 938, in run
asyncio.run(runner())
File "D:\Program Files\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "D:\Program Files\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program Files\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "F:\OpenSourceProject\Discord-AI-Selfbot\bot-env\Lib\site-packages\discord\client.py", line 927, in runner
await self.start(token, reconnect=reconnect)
File "F:\OpenSourceProject\Discord-AI-Selfbot\bot-env\Lib\site-packages\discord\client.py", line 857, in start
await self.login(token)
File "F:\OpenSourceProject\Discord-AI-Selfbot\bot-env\Lib\site-packages\discord\client.py", line 698, in login
data = await state.http.static_login(token.strip())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\OpenSourceProject\Discord-AI-Selfbot\bot-env\Lib\site-packages\discord\http.py", line 991, in static_login
await self.startup()
File "F:\OpenSourceProject\Discord-AI-Selfbot\bot-env\Lib\site-packages\discord\http.py", line 562, in startup
self.super_properties, self.encoded_super_properties = sp, _ = await utils._get_info(session)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\OpenSourceProject\Discord-AI-Selfbot\bot-env\Lib\site-packages\discord\utils.py", line 1446, in _get_info
bn = await _get_build_number(session)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\OpenSourceProject\Discord-AI-Selfbot\bot-env\Lib\site-packages\discord\utils.py", line 1474, in _get_build_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
127.0.0.1 - - [17/Jan/2024 10:38:36] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [17/Jan/2024 10:38:37] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [17/Jan/2024 10:42:38] "GET / HTTP/1.1" 200 -
Describe the bug
The Bard cookie does not work even after login from a different browser
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The AI Selfbot to use Google Bard cookie alongside GPT
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
think its just an issue with api/cookies, dunno...?
Bard is now Gemini and ChatGPT has had major upgrades, neither seem to work with this now.
ive looked at #41 , #17 , and #36
didnt help much :(
i get:
Task exception was never retrieved
future: <Task finished name='Task-22' coro=<on_message..generate_response_in_thread() done, defined at C:\Users\Me\Discord-AI-Selfbot\main.py:253> exception=KeyError('choices')>
Traceback (most recent call last):
File "C:\Users\Me\Discord-AI-Selfbot\main.py", line 254, in generate_response_in_thread
response = await generate_response(prompt, history)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Me\Discord-AI-Selfbot\main.py", line 87, in generate_response
choices = response_data["choices"]
~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'choices'
Only answers to prompts when it's related to the Quran.
Traceback (most recent call last):
File "C:\Python311\Lib\site-packages\discord\client.py", line 507, in _run_event
await coro(*args, **kwargs)
File "C:\Users\hello\Downloads\Discord-AI-Selfbot-main\Discord-AI-Selfbot-main\main.py", line 282, in on_message
response = bard.get_answer(user_prompt)
^^^^
NameError: name 'bard' is not defined
This error pops up when I text the bot, every other feature works
Error making the request: Cannot connect to host free.chatgpt.org.uk:443 ssl:default [Access is denied]
Task exception was never retrieved
future: <Task finished name='Task-21' coro=<on_message..generate_response_in_thread() done, defined at C:\Users\Profile\Discord-AI-Selfbot\main.py:253> exception=AttributeError("'NoneType' object has no attribute 'splitlines'")>
Traceback (most recent call last):
File "C:\Users\Profile\Discord-AI-Selfbot\main.py", line 256, in generate_response_in_thread
chunks = split_response(response)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Profile\Discord-AI-Selfbot\main.py", line 95, in split_response
lines = response.splitlines()
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'splitlines'
Hey, I am currently trying to run Replit version, each time i open i get
Bard cookie not set, so only ChatGPT will be available.
Bard cookie not set, so only ChatGPT will be available.
And commands don't work. Please help.
Describe the bug
got this in logs. and cookie is set in .env
Bard cookie not set, so only ChatGPT will be available.
Error: prybar-python310 not found in $PATH
repl process died unexpectedly: exit status 1
Error: prybar-python310 not found in $PATH
repl process died unexpectedly: exit status 1
Error: prybar-python310 not found in $PATH
repl process died unexpectedly: exit status 1
Error: prybar-python310 not found in $PATH
repl process died unexpectedly: exit status 1
Getting this error.
[2023-12-01 17:32:19] [WARNING ] discord.utils: Info API down. Falling back to manual fetching...
Traceback (most recent call last):
File "C:\Users\Admin\Discord-AI-Selfbot\main.py", line 510, in
bot.run(TOKEN)
File "C:\Users\Admin\Discord-AI-Selfbot\bot-env\Lib\site-packages\discord\client.py", line 938, in run
asyncio.run(runner())
File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\asyncio\runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 664, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\Admin\Discord-AI-Selfbot\bot-env\Lib\site-packages\discord\client.py", line 927, in runner
await self.start(token, reconnect=reconnect)
File "C:\Users\Admin\Discord-AI-Selfbot\bot-env\Lib\site-packages\discord\client.py", line 857, in start
await self.login(token)
File "C:\Users\Admin\Discord-AI-Selfbot\bot-env\Lib\site-packages\discord\client.py", line 698, in login
data = await state.http.static_login(token.strip())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\Discord-AI-Selfbot\bot-env\Lib\site-packages\discord\http.py", line 991, in static_login
await self.startup()
File "C:\Users\Admin\Discord-AI-Selfbot\bot-env\Lib\site-packages\discord\http.py", line 562, in startup
self.super_properties, self.encoded_super_properties = sp, _ = await utils._get_info(session)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\Discord-AI-Selfbot\bot-env\Lib\site-packages\discord\utils.py", line 1446, in _get_info
bn = await _get_build_number(session)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\Discord-AI-Selfbot\bot-env\Lib\site-packages\discord\utils.py", line 1474, in _get_build_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
File "C:\Users\yourname\Downloads\Discord-AI-Selfbot-main\Discord-AI-Selfbot-main\main.py", line 22, in
selfbot_id = int(os.getenv("SELFBOT_ID"))
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
Describe the bug
13.08.2023 - i was getting blocked by https://gpt4.xunika.uk/ (cloudflare too much requests), i used vpn to fix this
14.08.2023 - vpn does not help anymore even the website shows that im not blocked. i have the same issue #23, running on my main pc not replit
Additional context
Seems like i cant just connect to "https://gpt4.xunika.uk/" even im not blocked anymore by cloudflare
re-opened #22. Latest update installed.
Describe the bug
AttributeError: 'NoneType' object has no attribute 'splitlines'
~imagine etc still works but bot cant talk
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
You said you fixed that but i still get that error
The bug occurs when I try to do something like Analyse, using the image detector and the conversation AI. I tested it and when I use image detector he gives the generated text in console, but not in discord. Image generator is working normal, nothing wrong with API KEY I think.
Describe the bug
Bot doesn't respond, in DMs or in channels. I did the toggleactive command on a channel, but he still doesn't reply. He has dms set to true and I even used the command to set it to true, he still doesn't respond. He is currently being run on replit.
To Reproduce
Steps to reproduce the behavior:
Simply add it to repl.it, add the secrets, install requirements (basically all the steps on the readme) and then run the program.
Expected behavior
Expected for it to speak to me.
Desktop (please complete the following information):
Additional context
Here's the full log from console:
WARNING: Skipping discord as it is not installed.
WARNING: Skipping discord.py as it is not installed.
Looking in indexes: https://package-proxy.replit.com/pypi/simple/
Requirement already satisfied: aiohttp in ./venv/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (3.8.3)
Requirement already satisfied: aiofiles in ./venv/lib/python3.10/site-packages (from -r requirements.txt (line 2)) (23.1.0)
Requirement already satisfied: curl_cffi in ./venv/lib/python3.10/site-packages (from -r requirements.txt (line 3)) (0.5.6)
Requirement already satisfied: fake_useragent in ./venv/lib/python3.10/site-packages (from -r requirements.txt (line 4)) (1.1.3)
Requirement already satisfied: httpx in ./venv/lib/python3.10/site-packages (from -r requirements.txt (line 5)) (0.24.1)
Requirement already satisfied: flask in ./venv/lib/python3.10/site-packages (from -r requirements.txt (line 6)) (2.2.2)
Requirement already satisfied: asyncio in ./venv/lib/python3.10/site-packages (from -r requirements.txt (line 7)) (3.4.3)
Requirement already satisfied: python-dotenv in ./venv/lib/python3.10/site-packages (from -r requirements.txt (line 8)) (1.0.0)
Requirement already satisfied: pyYAML in ./venv/lib/python3.10/site-packages (from -r requirements.txt (line 9)) (6.0)
Requirement already satisfied: requests in ./venv/lib/python3.10/site-packages (from -r requirements.txt (line 10)) (2.28.2)
Requirement already satisfied: pydantic in ./venv/lib/python3.10/site-packages (from -r requirements.txt (line 11)) (1.10.9)
Requirement already satisfied: langdetect in ./venv/lib/python3.10/site-packages (from -r requirements.txt (line 12)) (1.0.9)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in ./venv/lib/python3.10/site-packages (from aiohttp->-r requirements.txt (line 1)) (4.0.2)
Requirement already satisfied: aiosignal>=1.1.2 in ./venv/lib/python3.10/site-packages (from aiohttp->-r requirements.txt (line 1)) (1.3.1)
Requirement already satisfied: multidict<7.0,>=4.5 in ./venv/lib/python3.10/site-packages (from aiohttp->-r requirements.txt (line 1)) (6.0.4)
Requirement already satisfied: attrs>=17.3.0 in ./venv/lib/python3.10/site-packages (from aiohttp->-r requirements.txt (line 1)) (22.2.0)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in ./venv/lib/python3.10/site-packages (from aiohttp->-r requirements.txt (line 1)) (2.1.1)
Requirement already satisfied: frozenlist>=1.1.1 in ./venv/lib/python3.10/site-packages (from aiohttp->-r requirements.txt (line 1)) (1.3.3)
Requirement already satisfied: yarl<2.0,>=1.0 in ./venv/lib/python3.10/site-packages (from aiohttp->-r requirements.txt (line 1)) (1.8.2)
Requirement already satisfied: cffi>=1.12.0 in ./venv/lib/python3.10/site-packages (from curl_cffi->-r requirements.txt (line 3)) (1.15.1)
Requirement already satisfied: sniffio in ./venv/lib/python3.10/site-packages (from httpx->-r requirements.txt (line 5)) (1.3.0)
Requirement already satisfied: httpcore<0.18.0,>=0.15.0 in ./venv/lib/python3.10/site-packages (from httpx->-r requirements.txt (line 5)) (0.17.2)
Requirement already satisfied: certifi in ./venv/lib/python3.10/site-packages (from httpx->-r requirements.txt (line 5)) (2022.12.7)
Requirement already satisfied: idna in ./venv/lib/python3.10/site-packages (from httpx->-r requirements.txt (line 5)) (3.4)
Requirement already satisfied: Werkzeug>=2.2.2 in ./venv/lib/python3.10/site-packages (from flask->-r requirements.txt (line 6)) (2.2.2)
Requirement already satisfied: click>=8.0 in ./venv/lib/python3.10/site-packages (from flask->-r requirements.txt (line 6)) (8.1.3)
Requirement already satisfied: itsdangerous>=2.0 in ./venv/lib/python3.10/site-packages (from flask->-r requirements.txt (line 6)) (2.1.2)
Requirement already satisfied: Jinja2>=3.0 in ./venv/lib/python3.10/site-packages (from flask->-r requirements.txt (line 6)) (3.1.2)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./venv/lib/python3.10/site-packages (from requests->-r requirements.txt (line 10)) (1.26.14)
Requirement already satisfied: typing-extensions>=4.2.0 in ./venv/lib/python3.10/site-packages (from pydantic->-r requirements.txt (line 11)) (4.6.3)
Requirement already satisfied: six in ./venv/lib/python3.10/site-packages (from langdetect->-r requirements.txt (line 12)) (1.16.0)
Requirement already satisfied: pycparser in ./venv/lib/python3.10/site-packages (from cffi>=1.12.0->curl_cffi->-r requirements.txt (line 3)) (2.21)
Requirement already satisfied: anyio<5.0,>=3.0 in ./venv/lib/python3.10/site-packages (from httpcore<0.18.0,>=0.15.0->httpx->-r requirements.txt (line 5)) (3.7.0)
Requirement already satisfied: h11<0.15,>=0.13 in ./venv/lib/python3.10/site-packages (from httpcore<0.18.0,>=0.15.0->httpx->-r requirements.txt (line 5)) (0.14.0)
Requirement already satisfied: exceptiongroup in ./venv/lib/python3.10/site-packages (from anyio<5.0,>=3.0->httpcore<0.18.0,>=0.15.0->httpx->-r requirements.txt (line 5)) (1.1.1)
Requirement already satisfied: MarkupSafe>=2.0 in ./venv/lib/python3.10/site-packages (from Jinja2>=3.0->flask->-r requirements.txt (line 6)) (2.1.2)
WARNING: pip is using a content-addressable pool to install files from. This experimental feature is enabled through --use-feature=content-addressable-pool and it is not ready for production.
Looking in indexes: https://package-proxy.replit.com/pypi/simple/
Collecting discord.py-self
Downloading https://package-proxy.replit.com/pypi/packages/6c/86/7f54e265f2bacb29355d024c8ca9135811591ea5c60dbd57bed001a199f3/discord.py_self-2.0.0-py3-none-any.whl (1.1 MB)
|ββββββββββββββββββββββββββββββββ| 1.1 MB 11.4 MB/s
Collecting discord-protos<1.0.0
Downloading https://package-proxy.replit.com/pypi/packages/3a/7c/4b9eaf1f85caa5ff93caa948ee47a2fc5be2d2bbd4b60d3f989da84c8140/discord-protos-0.0.2.tar.gz (13 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: aiohttp<4,>=3.7.4 in ./venv/lib/python3.10/site-packages (from discord.py-self) (3.8.3)
Requirement already satisfied: yarl<2.0,>=1.0 in ./venv/lib/python3.10/site-packages (from aiohttp<4,>=3.7.4->discord.py-self) (1.8.2)
Requirement already satisfied: attrs>=17.3.0 in ./venv/lib/python3.10/site-packages (from aiohttp<4,>=3.7.4->discord.py-self) (22.2.0)
Requirement already satisfied: aiosignal>=1.1.2 in ./venv/lib/python3.10/site-packages (from aiohttp<4,>=3.7.4->discord.py-self) (1.3.1)
Requirement already satisfied: frozenlist>=1.1.1 in ./venv/lib/python3.10/site-packages (from aiohttp<4,>=3.7.4->discord.py-self) (1.3.3)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in ./venv/lib/python3.10/site-packages (from aiohttp<4,>=3.7.4->discord.py-self) (4.0.2)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in ./venv/lib/python3.10/site-packages (from aiohttp<4,>=3.7.4->discord.py-self) (2.1.1)
Requirement already satisfied: multidict<7.0,>=4.5 in ./venv/lib/python3.10/site-packages (from aiohttp<4,>=3.7.4->discord.py-self) (6.0.4)
Requirement already satisfied: protobuf in ./venv/lib/python3.10/site-packages (from discord-protos<1.0.0->discord.py-self) (4.21.12)
Requirement already satisfied: idna>=2.0 in ./venv/lib/python3.10/site-packages (from yarl<2.0,>=1.0->aiohttp<4,>=3.7.4->discord.py-self) (3.4)
Building wheels for collected packages: discord-protos
Building wheel for discord-protos (PEP 517) ... done
Created wheel for discord-protos: filename=discord_protos-0.0.2-py3-none-any.whl size=13958 sha256=bef55744ea8f9c4fbddbdeb6d4714aea06b1f77aff7476dbdcc41b0fda192941
Stored in directory: /home/runner/.cache/pip/wheels/1c/c8/6e/8b7d59408174a217be68ad9d6f239b025f617cab091d00e0e3
Successfully built discord-protos
WARNING: pip is using a content-addressable pool to install files from. This experimental feature is enabled through --use-feature=content-addressable-pool and it is not ready for production.
Installing collected packages: discord-protos, discord.py-self
Successfully installed discord-protos-0.0.2 discord.py-self-2.0.0
2023-06-21 14:48:40 INFO discord.client Logging in using static token.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/runner/Discord-AI-Selfbot/venv/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 1169, in invoke
await ctx.command.invoke(ctx)
File "/home/runner/Discord-AI-Selfbot/venv/lib/python3.10/site-packages/discord/ext/commands/core.py", line 1020, in invoke
await injected(*ctx.args, **ctx.kwargs) # type: ignore
File "/home/runner/Discord-AI-Selfbot/venv/lib/python3.10/site-packages/discord/ext/commands/core.py", line 245, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: expected str, bytes or os.PathLike object, not NoneType
2023-06-21 14:54:09 ERROR discord.ext.commands.bot Ignoring exception in command toggleactive
Traceback (most recent call last):
File "/home/runner/Discord-AI-Selfbot/venv/lib/python3.10/site-packages/discord/ext/commands/core.py", line 236, in wrapped
ret = await coro(*args, **kwargs)
File "/home/runner/Discord-AI-Selfbot/main.py", line 369, in toggleactive
f"{ctx.channel.mention} has been added to the list of active channels."
AttributeError: 'DMChannel' object has no attribute 'mention'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/runner/Discord-AI-Selfbot/venv/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 1169, in invoke
await ctx.command.invoke(ctx)
File "/home/runner/Discord-AI-Selfbot/venv/lib/python3.10/site-packages/discord/ext/commands/core.py", line 1020, in invoke
await injected(*ctx.args, **ctx.kwargs) # type: ignore
File "/home/runner/Discord-AI-Selfbot/venv/lib/python3.10/site-packages/discord/ext/commands/core.py", line 245, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'DMChannel' object has no attribute 'mention'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.