Giter VIP home page Giter VIP logo

Comments (7)

Zero6992 avatar Zero6992 commented on July 17, 2024

Is there a window manager for your remote desktop? Because running it will require opening a browser

from chatgpt-discord-bot.

mohammalmokdad13 avatar mohammalmokdad13 commented on July 17, 2024

Same thing, I was running the script from a bat file with nssm, and the browser does not open. Works fine when I run the bat file directly though, is there no way to run it without having to open the browser?

from chatgpt-discord-bot.

Omupp avatar Omupp commented on July 17, 2024

The first error could be avoided by running xvfb-run python3 main.py
However, after 2 minutes of stoppage, the following error appeared

Traceback (most recent call last): File "/opt/chatgpt2/main.py", line 1, in <module> from src import bot File "/opt/chatgpt2/src/bot.py", line 3, in <module> from src import responses File "/opt/chatgpt2/src/responses.py", line 32, in <module> chatbot = Chatbot(config, conversation_id=None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/revChatGPT/revChatGPT.py", line 110, in __init__ self.refresh_session() File "/usr/local/lib/python3.11/dist-packages/revChatGPT/revChatGPT.py", line 312, in refresh_session self.refresh_session() File "/usr/local/lib/python3.11/dist-packages/revChatGPT/revChatGPT.py", line 312, in refresh_session self.refresh_session() File "/usr/local/lib/python3.11/dist-packages/revChatGPT/revChatGPT.py", line 312, in refresh_session self.refresh_session() [Previous line repeated 24 more times] File "/usr/local/lib/python3.11/dist-packages/revChatGPT/revChatGPT.py", line 311, in refresh_session asyncio.run(self.get_cf_cookies()) File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/revChatGPT/revChatGPT.py", line 381, in get_cf_cookies raise Exception("cf challenge fail") Exception: cf challenge fail root@kohta-desktop:/opt/chatgpt2# root@kohta-desktop:/opt/chatgpt2# xvfb-run python3.11 main.py Traceback (most recent call last): File "/opt/chatgpt2/main.py", line 1, in <module> from src import bot File "/opt/chatgpt2/src/bot.py", line 3, in <module> from src import responses File "/opt/chatgpt2/src/responses.py", line 32, in <module> chatbot = Chatbot(config, conversation_id=None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/revChatGPT/revChatGPT.py", line 110, in __init__ self.refresh_session() File "/usr/local/lib/python3.11/dist-packages/revChatGPT/revChatGPT.py", line 312, in refresh_session self.refresh_session() File "/usr/local/lib/python3.11/dist-packages/revChatGPT/revChatGPT.py", line 312, in refresh_session self.refresh_session() File "/usr/local/lib/python3.11/dist-packages/revChatGPT/revChatGPT.py", line 312, in refresh_session self.refresh_session() [Previous line repeated 19 more times] File "/usr/local/lib/python3.11/dist-packages/revChatGPT/revChatGPT.py", line 311, in refresh_session asyncio.run(self.get_cf_cookies()) File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/revChatGPT/revChatGPT.py", line 381, in get_cf_cookies raise Exception("cf challenge fail") Exception: cf challenge fail

from chatgpt-discord-bot.

Zero6992 avatar Zero6992 commented on July 17, 2024

The first error could be avoided by running xvfb-run python3 main.py However, after 2 minutes of stoppage, the following error appeared

Have you filled the session token?

from chatgpt-discord-bot.

Omupp avatar Omupp commented on July 17, 2024

yes

from chatgpt-discord-bot.

Zero6992 avatar Zero6992 commented on July 17, 2024

same issue here #324

from chatgpt-discord-bot.

Zero6992 avatar Zero6992 commented on July 17, 2024

Change to Using OpenAI official GPT-3 API now

from chatgpt-discord-bot.

Related Issues (20)

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.