mishl-dev / Discord-AI-Chatbot

This Discord chatbot is incredibly versatile. Powered incredibly fast Groq API
GNU Affero General Public License v3.0
1.32k stars 417 forks source link

Error, please help #108

Closed rep0rtDev closed 1 year ago

rep0rtDev commented 1 year ago

Screenshot_20230528_140807

mishl-dev commented 1 year ago

i cant even see the full log

rep0rtDev commented 1 year ago

Sorry, but I do not know where to get them, I just use hosting on the pterodactyl panel, I reviewed all the files, but I did not find the logs folder, because on other hosts that I used before, the logs were in the folder

mishl-dev commented 1 year ago

Sorry, but I do not know where to get them, I just use hosting on the pterodactyl panel, I reviewed all the files, but I did not find the logs folder, because on other hosts that I used before, the logs were in the folder

is there still the same error ?

rep0rtDev commented 1 year ago

Of course, where will she go

mishl-dev commented 1 year ago

Of course, where will she go

okay can i just get the error as raw text instead of a screenshot ?

mishl-dev commented 1 year ago

looks like there isnt a , comma on 2nd line of lang/lang.en

mishl-dev commented 1 year ago

can you try to update your repo also you actually get gpt4 now if you do

rep0rtDev commented 1 year ago

The comma seems to be present, that's how you asked, an error in text form

Traceback (most recent call last): File "/home/container/main.py", line 51, in current_language = load_current_language() File "/home/container/main.py", line 48, in load_current_language current_language = json.load(lang_file) File "/usr/local/lib/python3.9/json/init.py", line 293, in load return loads (fp.read(), File "/usr/local/lib/python3.9/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.9/json/decoder.py ", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.9/json/decoder.py line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ',' delimiter: line 2 column 561 (char 562)

mishl-dev commented 1 year ago

The comma seems to be present, that's how you asked, an error in text form

Traceback (most recent call last): File "/home/container/main.py", line 51, in current_language = load_current_language() File "/home/container/main.py", line 48, in load_current_language current_language = json.load(lang_file) File "/usr/local/lib/python3.9/json/init.py", line 293, in load return loads (fp.read(), File "/usr/local/lib/python3.9/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.9/json/decoder.py ", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.9/json/decoder.py line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ',' delimiter: line 2 column 561 (char 562)

I checked the JSON again and it seems to be correct

mishl-dev commented 1 year ago

Can you update your cloned project and try again ?

rep0rtDev commented 1 year ago

Still the same error

rep0rtDev commented 1 year ago

I solved this problem, it was extremely stupid, and consisted in the fact that there were characters in double quotes in the text, I just put them in single quotes

rep0rtDev commented 1 year ago

But I still have a question, please answer. Is there any way to make the answers ONLY in Russian?

dadaoerv commented 1 year ago

But I still have a question, please answer. Is there any way to make the answers ONLY in Russian?

image

rep0rtDev commented 1 year ago

With this method, sooner or later he begins to speak the same English

dadaoerv commented 1 year ago

With this method, sooner or later he begins to speak the same English

it didn't happen to me. image

rep0rtDev commented 1 year ago

Why do I have so many problems all the time, aaaaaaaaaaa, I got an error like that person with deepai

mishl-dev commented 1 year ago

But I still have a question, please answer. Is there any way to make the answers ONLY in Russian?

I will add a lang/lang.ru file

then you could edit the main.py to select ru instead of en