Комментарии:
when I started it, it said Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:394:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21)
Can I get the code from require('doteenv/config'); and copy and paste it?
Ответитьdont waste your time not working erorr
ОтветитьGreat video, I was able to get a bot up and running! Is there a way to make it able to reply to DMs?
Ответитьdude this is the first one that worked and ive been looking for months! THANK YOU
ОтветитьIm getting this error: "SyntaxError: await is only valid in async functions and the top level bodies of modules"
Ответитьdoesn't work like every other code in this yt channel
ОтветитьHi can you post a tutorial about chatgpt bot trained on our data, according to open ai recently posted blog post,
ОтветитьPlease friend, can you give us the code ?
ОтветитьIS it 100% free?
ОтветитьIt's important to be aware that gpt4 charges more for each token than gpt3.5 turbo does. A lot more in fact. So if you want your bot to be used for simple communication purposes there is no reason to use gpt4.
Ответитьone thing you missed, add a name to your bot sa every user call that name and the bot will response directly to that user
ОтветитьWhen I try ping from the discord its not getting picked up on the terminal. Any ideas?
ОтветитьThank you for making this tutorial. You explain the code excellently well. If anyone is trying to get the bot to limit messages to only 2,000 characters, the following works:
message.reply(response.choices[0].message.content.substring(0, 2000));
PRO: node.js doesn't crash
CON: The message is cut off.
I'd like to figure out a way to return a text file if the message is longer than 2000 characters.
Thank you for the nice tutorial! Is it possible to let this bot join a discord call and include TTS?
ОтветитьMan, you did a great job in this tutorial. Now I just need to dive a little deeper to make the experience more personalized. Thank you.
Ответить