Create a Chat GPT Bot in Discord (with GPT-4)

Create a Chat GPT Bot in Discord (with GPT-4)

Under Ctrl

8 месяцев назад

39,453 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

NUS PEE
NUS PEE - 06.11.2023 19:00

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)

Ответить
Balvin Raval
Balvin Raval - 03.11.2023 02:40

Can I get the code from require('doteenv/config'); and copy and paste it?

Ответить
SKlRoller
SKlRoller - 24.10.2023 19:57

dont waste your time not working erorr

Ответить
Kazzran
Kazzran - 21.10.2023 06:25

Great video, I was able to get a bot up and running! Is there a way to make it able to reply to DMs?

Ответить
GalaxyEXE
GalaxyEXE - 21.10.2023 00:08

dude this is the first one that worked and ive been looking for months! THANK YOU

Ответить
Idan Yair
Idan Yair - 11.10.2023 06:19

Im getting this error: "SyntaxError: await is only valid in async functions and the top level bodies of modules"

Ответить
Zubariel
Zubariel - 04.10.2023 18:09

doesn't work like every other code in this yt channel

Ответить
Sachin B
Sachin B - 27.09.2023 23:51

Hi can you post a tutorial about chatgpt bot trained on our data, according to open ai recently posted blog post,

Ответить
PixelmonMMO
PixelmonMMO - 23.09.2023 21:28

Please friend, can you give us the code ?

Ответить
Dev's Playful Pixels
Dev's Playful Pixels - 23.09.2023 09:24

IS it 100% free?

Ответить
Alex Gkiafis
Alex Gkiafis - 22.09.2023 07:39

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.

Ответить
Jesus Cries
Jesus Cries - 20.09.2023 07:44

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

Ответить
Augustus
Augustus - 14.09.2023 05:40

When I try ping from the discord its not getting picked up on the terminal. Any ideas?

Ответить
Stat 201 at UTK
Stat 201 at UTK - 10.09.2023 19:48

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.

Ответить
AquaKaiko
AquaKaiko - 09.09.2023 23:32

Thank you for the nice tutorial! Is it possible to let this bot join a discord call and include TTS?

Ответить
Lucas BR
Lucas BR - 09.09.2023 19:42

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.

Ответить