GithubHelp home page GithubHelp logo

najmul190 / discord-ai-selfbot Goto Github PK

View Code? Open in Web Editor NEW
73.0 4.0 21.0 174 KB

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

Python 92.68% Batchfile 7.32%
ai chatbot chatbots chatgpt chatgpt4free discord discord-bot discord-py discord-selfbot freeai

discord-ai-selfbot's Introduction

> πŸ˜ͺ

logo.gif

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)

discord-ai-selfbot's People

Contributors

mishalhossin avatar najmul190 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

discord-ai-selfbot's Issues

[BUG] File "main.py", line 86, in generate_response

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.

image image
  • OS: Windows 11 last version, python 3.11
    "
    Add any other context about the problem here.
    AI Selfbot successfully logged in as 9w8.
    Task exception was never retrieved
    future: <Task finished name='Task-55' coro=<on_message..generate_response_in_thread() done, defined at main.py:252> exception=KeyError('choices')>
    Traceback (most recent call last):
    File "main.py", line 253, in generate_response_in_thread
    response = await generate_response(prompt, history)
    File "main.py", line 86, in generate_response
    choices = response_data["choices"]
    KeyError: 'choices'"

my discord id: 9w8
btw, if you can help...

[BUG]

Describe the bug
Analyze and styles command does not work for some reason

To Reproduce
Steps to reproduce the behavior:

  1. type the analyze/styles command
  2. look at the command prompt
  3. it shows the command "analyze/styles" is not found

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.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11

[BUG]

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.

Multiple trigger words?

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

[WARNING ] discord.utils: Info API down. [BUG]

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 -

[REQUEST]I have tried many times but I can't solve this problem. Can anyone give me some advice? Python3.8

[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 -

[BUG] Google Bard Cookie

Describe the bug
The Bard cookie does not work even after login from a different browser

To Reproduce
Steps to reproduce the behavior:

  1. Git cloned repository, put info in .env and made a python venv
  2. pip install -r requirements.txt and then python main.py
  3. Bard cookie not set or has expired, so only ChatGPT will be available.

Expected behavior
The AI Selfbot to use Google Bard cookie alongside GPT

aiselfbot1
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: arch linux

[BUG] KeyError: 'choices'

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'

[BUG]

Only answers to prompts when it's related to the Quran.

bard cookie not set or invalid [BUG]

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

[BUG] Bot Texting

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'

[BUG]

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.

  • Serving Flask app 'keep_alive'
  • Debug mode: off
    2023-07-25 21:37:47 INFO discord.client Logging in using static token.
    WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Running on all addresses (0.0.0.0)
  • Running on http://127.0.0.1:3000
  • Running on http://172.31.196.95:3000
    Press CTRL+C to quit
    172.31.196.1 - - [25/Jul/2023 21:37:47] "OPTIONS * HTTP/1.1" 404 -
    172.31.196.1 - - [25/Jul/2023 21:37:47] "GET / HTTP/1.1" 200 -
    2023-07-25 21:37:47 INFO discord.http Found user agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36, build number 214913.
    172.31.196.1 - - [25/Jul/2023 21:37:47] "GET / HTTP/1.1" 200 -
    2023-07-25 21:37:48 INFO discord.gateway Connected to Gateway (Session ID: d924060b537536f700d6c447b9ba551e).
    2023-07-25 21:37:48 WARNING discord.state Member list scraping failed for 1017547860276949042 (Failed to automatically choose channels; please specify them manually).
    2023-07-25 21:37:48 WARNING discord.state Member list scraping failed for 1130432479694704745 (Failed to automatically choose channels; please specify them manually).
    2023-07-25 21:37:48 WARNING discord.state Member list scraping failed for 1132406042987352094 (Failed to automatically choose channels; please specify them manually).
    AI Selfbot successfully logged in as ferryyz.

And commands don't work. Please help.

[BUG]

Describe the bug
got this in logs. and cookie is set in .env
Bard cookie not set, so only ChatGPT will be available.

[BUG] prybar-python310 not found in $PATH

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.

[BUG]

[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

[BUG]

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'

[BUG]

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
ΠΈΠ·ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅_2023-08-14_105708123

Additional context
Seems like i cant just connect to "https://gpt4.xunika.uk/" even im not blocked anymore by cloudflare
without
WITH

re-opened #22. Latest update installed.

[BUG]AttributeError: 'NoneType' object has no attribute 'splitlines'

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):

  • Windows 10 (python 3.11)

Additional context
You said you fixed that but i still get that error
ΠΈΠ·ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅_2023-08-13_124547972

[BUG]

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.

[BUG]

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.

Screenshots
image
image

Desktop (please complete the following information):

  • OS: Windows 10

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.

  • Serving Flask app 'keep_alive'
  • Debug mode: off
    WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Running on all addresses (0.0.0.0)
  • Running on http://127.0.0.1:3000
  • Running on http://172.31.196.33:3000
    Press CTRL+C to quit
    2023-06-21 14:48:41 INFO discord.http Found user agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36, build number 206653.
    2023-06-21 14:48:42 INFO discord.gateway Connected to Gateway (Session ID: cd2e7d5f3b27ca76df234b9e1acdef4a).
    Vega has connected to Discord!
    172.31.196.1 - - [21/Jun/2023 14:48:47] "GET / HTTP/1.1" 200 -
    2023-06-21 14:52:11 ERROR discord.ext.commands.bot Ignoring exception in command None
    discord.ext.commands.errors.CommandNotFound: Command "pfp" is not found
    2023-06-21 14:52:34 ERROR discord.ext.commands.bot Ignoring exception in command None
    discord.ext.commands.errors.CommandNotFound: Command "pfp" is not found
    An error occurred while making the request: 400, message='Bad Request', url=URL('https://inferenceengine.vyro.ai/sdprem')
    An error occurred while writing the image to file: a bytes-like object is required, not 'NoneType'
    Unclosed client session
    client_session: <aiohttp.client.ClientSession object at 0x7f0df1c276d0>
    Unclosed connector
    connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7f0df1bfa8c0>, 11662.966089787)]']
    connector: <aiohttp.connector.TCPConnector object at 0x7f0df1c24cd0>
    2023-06-21 14:53:16 ERROR discord.ext.commands.bot Ignoring exception in command imagine
    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 437, in imagine
    file = discord.File(filename, filename="image.png")
    File "/home/runner/Discord-AI-Selfbot/venv/lib/python3.10/site-packages/discord/file.py", line 99, in init
    self.fp = open(fp, 'rb')
    TypeError: expected str, bytes or os.PathLike object, not NoneType

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.