Juice3d
New Coder
Hi ,
I've never really coded before so bear with me , im trying to run this javascript
const { Chatbot } = require('tchatgpt');
const config = require('./config.json');
const chatbot = new Chatbot(config);
chatbot.refresh_session().then(() => {
chatbot.get_chat_response('Hello').then(console.log);
});
I've coppied it directly from the github where the code is from , however Im getting this error when i try to run it , all the necessary files are in the correct location
ERROR
Windows script host
Line:1
Char:1
Rrror: syntax error
code: 800A03EA
source: microsoft jscript compilation error
am i missing a library or is something missing from the code ? i asked chatgpt and it said i could try changing the 1st line to const Chatbot = require('tchatgpt').Chatbot;
however this led to the same error code .
Anyone know whats wrong ?
Thanks for the help
I've never really coded before so bear with me , im trying to run this javascript
const { Chatbot } = require('tchatgpt');
const config = require('./config.json');
const chatbot = new Chatbot(config);
chatbot.refresh_session().then(() => {
chatbot.get_chat_response('Hello').then(console.log);
});
I've coppied it directly from the github where the code is from , however Im getting this error when i try to run it , all the necessary files are in the correct location
ERROR
Windows script host
Line:1
Char:1
Rrror: syntax error
code: 800A03EA
source: microsoft jscript compilation error
am i missing a library or is something missing from the code ? i asked chatgpt and it said i could try changing the 1st line to const Chatbot = require('tchatgpt').Chatbot;
however this led to the same error code .
Anyone know whats wrong ?
Thanks for the help