Intelligent Discord AI Chatbot in Python

  Рет қаралды 58,340

NeuralNine

NeuralNine

Күн бұрын

In this video we build an intelligent AI Discord chat bot in Python.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine...
💻 The Algorithm Bible Book: www.neuralnine...
👕 Programming Merch: www.neuralnine...
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine...
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/Neu...
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/

Пікірлер: 156
@therealdiamond5746
@therealdiamond5746 Жыл бұрын
Title is a little misleading, this isn't really ai, it just responds with random pre written messages you have to type yourself
@mivano3236
@mivano3236 3 жыл бұрын
This is going to be interesting
@NeuralNine
@NeuralNine 3 жыл бұрын
I very much hope so ^^
@oarsh1360
@oarsh1360 3 жыл бұрын
@@NeuralNine OMG its 2 hours ago message and reply 3 hours ago op BUG
@ophelia6044
@ophelia6044 2 жыл бұрын
Apparently, *pip install module_name.py
@sollekram
@sollekram 2 жыл бұрын
Thank you, for your commitment and teaching. I managed to change a bit the code on the neuralintents package that you made, so I could set a reading a text file as well an English Wikipedia articles/corpus(just for questioning and replying with answer), everything works fine, only needs 3~4 hours to train. The question that I have is, is there a way to just load the h5 model rather than training every time?
@johnlagou5362
@johnlagou5362 2 жыл бұрын
hmm thats nice! do you have your code modifications for this publicly?
@nipoteemus2472
@nipoteemus2472 2 жыл бұрын
NeuralNine: "It doesn't matter how you get the token." Me: Buying it from dark web
@shiverello6109
@shiverello6109 2 жыл бұрын
Nice, very useful! Im gonna have this running on a raspberry pi
@asciidude
@asciidude 3 жыл бұрын
Just realized I could make a voice assistant with this! :D
@coolninja360
@coolninja360 2 жыл бұрын
Tensorflow decay has been depreciated since Keras 2.3 so i can't run the instantiate the chatbot
@sajdaj6449
@sajdaj6449 3 жыл бұрын
thats seems good ,.keep it that way
@NeuralNine
@NeuralNine 3 жыл бұрын
thanks
@neelbanga
@neelbanga 3 жыл бұрын
You should use ext commands, they are much better and the correct practice
@gamingwithmrfragster4470
@gamingwithmrfragster4470 3 жыл бұрын
They are good for 'commands' but for chatbot this is better.
@stro3277
@stro3277 2 жыл бұрын
Im experiencing an issue regarding intents... it does not locate my intents and fails to run, any help would be appreciated.
@AviatingRandom
@AviatingRandom 2 жыл бұрын
it worked thanks! is there any way that I can make a chatbot that actually comes up with responses instead of static?
@johnlagou5362
@johnlagou5362 3 жыл бұрын
Very nice video! One question though. Is it possible to make the bot answer to mathematical questions? If yes, how?
@Revon-Feuer
@Revon-Feuer 2 жыл бұрын
Calculator is simple with JavaScript, but not python
@tibor0903
@tibor0903 2 жыл бұрын
@@Revon-Feuer it's more simple w/ python?
@sollekram
@sollekram 2 жыл бұрын
Very simple, just use commands on discord and make some mathematical functions. That you will call with the commands like !mathadd 5 5 There thousand of tutorials explain that... The bot will reply with the answer.
@johnlagou5362
@johnlagou5362 2 жыл бұрын
@@sollekram First of all thanks for the reply! So i was not very clear. I know you could do this with commands, but is there a way to chat with the bot to answer your math questions? For example: "Hey ChatBot! How much is 5+4?" or "Could you please tell me the square root of 4?"
@soumitradandapat6442
@soumitradandapat6442 Жыл бұрын
This man is gem❤️❤️❤️ lots of love from India
@homosapien1214
@homosapien1214 2 жыл бұрын
I code it on replit and I got this error [NameError: name 'intents' is not defined] is there any way to fix this?
@tasktoday9892
@tasktoday9892 2 жыл бұрын
Put single quotes around "intents.json"
@alexander_yordanov
@alexander_yordanov 3 жыл бұрын
Nice video bro!
@OmarHosam203
@OmarHosam203 3 жыл бұрын
Ahh yes i luv this Edit: 2 likes omg i love you guys Edit 2: omg 5 likes
@deathmeter7243
@deathmeter7243 3 жыл бұрын
Ahh yes i luv this comment
@OmarHosam203
@OmarHosam203 3 жыл бұрын
@@deathmeter7243 Ahh yes i luv this reply
@daflop685
@daflop685 3 жыл бұрын
0 likes tysm
@thomasstilp
@thomasstilp 2 жыл бұрын
POV: You're exited about the small things in life
@ophelia6044
@ophelia6044 2 жыл бұрын
@@thomasstilp POV0: Only until you reach your goal and it's not stratifying anymore. Humans in a nutshell. POV1: Finally someone paid attention to me. POV2: Less is more.
@SnippityNoy
@SnippityNoy 2 жыл бұрын
Watching this video on the 16th of July and lowkey had a my mind blown
@oscarxie6920
@oscarxie6920 3 жыл бұрын
can python do process manipulation within a unique library on mac?
@Robin-kh2nq
@Robin-kh2nq 3 жыл бұрын
When I run it it gives me errors about the intents.json file I dont think it found the file (im on vscode)
@josera8475
@josera8475 2 жыл бұрын
everything perfect but when executing the code I get the error that the file ('intents.json') was not found when the file is in the same place as the Python file, what do I do?
@frostberry
@frostberry Жыл бұрын
when I try downloading the pip for neuralintents, I get an OS error and I can't download it
@bandicamnick7903
@bandicamnick7903 3 жыл бұрын
Hey! I'm having a problem. When I'm running the bot, I get an error that says "ModuleNotFoundError: No module named neuralintents".
@hatosaur
@hatosaur 3 жыл бұрын
me too
@CutiePixii
@CutiePixii 2 жыл бұрын
@@DeltaAlpha00 it does not work i have tried that if i try doing it again it just spams Requirement already satisfied
@GamingCoderzX
@GamingCoderzX 2 жыл бұрын
try this import discord import os from dotenv import load_dotenv from neuralintents import GenericAssistant chatbot = GenericAssistant('intents.json') chatbot.train.model() chatbot.save.model() print('Bot is running...') client = discord.Client() @client.event async def on_message(message): if message.author == client.user: return if message.content.startswith("$aibot"): pass client.run("Your bot token here")
@stro3277
@stro3277 2 жыл бұрын
@Bilel yea thats pretty obvious lol, thanks sherlock... that is not a fix tho lol
@harald1
@harald1 2 жыл бұрын
After you have installed the neuralintents module with pip, you also need to import it into the project, press file -> settings -> project -> python interpreter and then press the plus sign at the bottom left, search for neuralintents and click install package, that should solve the problem
@saintseer8214
@saintseer8214 3 жыл бұрын
cannot install neuralintents from conflicting dependencies
@IzUrBoiKK
@IzUrBoiKK 3 жыл бұрын
U can use a bot instead of client!
@deez1213
@deez1213 3 жыл бұрын
the bot ends up repeating the same message for some reason
@lups4016
@lups4016 3 жыл бұрын
i do have music bot and i plan to make the AI at the same bot. but when i run the music command it didnt work, whats wrong T_T
@akshatprakash9596
@akshatprakash9596 2 жыл бұрын
Will the data save when the bot goes offline? Where is the data even stored?
@buckdanny1588
@buckdanny1588 3 жыл бұрын
Is the neuralintents library your library ? Can you tell me where is the repository ? And finally nice video! +1 sub, like
@NeuralNine
@NeuralNine 3 жыл бұрын
Yes it is mine and the repo is on GitHub
@tofuviet8221
@tofuviet8221 2 жыл бұрын
what if it's a personal account, can the individual account configure it as a bot
@sam_1sp364
@sam_1sp364 3 жыл бұрын
How about we use user token will the bot work I want to see how my respond if I stay online so long and talk
@stro3277
@stro3277 2 жыл бұрын
i got it somewhat working now, but ran into this error, any help at all would be appreciated... AttributeError: 'GenericAssistant' object has no attribute 'words'
@piplupsuper0
@piplupsuper0 2 жыл бұрын
Quick questions. 1. on this line of code if message.content.startswith("!@aibot"): it only works when i insert nothing into ("!@aibot") and then it only pulls the first intent from intents.json and doesn't pull up the seconds ones, when it does function.
@Capta1nJack
@Capta1nJack 2 жыл бұрын
yo its telling me that theres no module "neuralintents" even when i install it in my venv
@salamsam_
@salamsam_ 3 жыл бұрын
i cant install neuralintents on replit
@bayronperez6070
@bayronperez6070 2 жыл бұрын
I have the same error, does anyone know the solution?
@Valo_TV
@Valo_TV 2 жыл бұрын
i dont get any error but just stops
@ronak.wadhwani
@ronak.wadhwani 2 жыл бұрын
It happened to me too, I am on M1 Mac, and if you are too, then you should know what TensorFlow has some issues on M1, I figured it out btw
@Valo_TV
@Valo_TV 2 жыл бұрын
@@ronak.wadhwani me on windows 10
@ronak.wadhwani
@ronak.wadhwani 2 жыл бұрын
@@Valo_TV Oh then I don't know what's the problem, sry, you can search stack overflow though, that "code not showing any errors, just stopping" or something like that
@Aeon_
@Aeon_ 3 жыл бұрын
it would be good tho if there's already pre-made intents :(
@LofiNeo-yt
@LofiNeo-yt 2 жыл бұрын
you can do it like me take this vicdeo as an model and do it your own ^^
@tomcat9761
@tomcat9761 2 жыл бұрын
Nice video but your model overfitted, right?
@astalriel4827
@astalriel4827 2 жыл бұрын
Is it possible to make it a selfbot on our user?
@doctorco2089
@doctorco2089 3 жыл бұрын
things that i like about you 1. you dont have windows 11
@TheRealSuit
@TheRealSuit 3 жыл бұрын
But windows 11 is not out, and you would be dumb to install an unfinished ISO file for windows 11. I mainly replied because your comment confused me so please don't misunderstand.
@doctorco2089
@doctorco2089 3 жыл бұрын
@@TheRealSuit yup thats what i dont like about many people, using windows 11. Not only it is dumb to install unfinished ISO, but also the theme is so wierd
@Foused87
@Foused87 3 жыл бұрын
How is it different from a simple function that gets a message and then send random response from intent.json file?
@YoRHaAttackerNo2
@YoRHaAttackerNo2 2 жыл бұрын
Late here but the neural network here is capable of reading a variety of inquiries and its forms to retrieve a response. You could do a simple function but you'd have to define literally every possible way you could get the prompt that requires that response, or tell the AI to figure it out for you. For example: A simple function can easily retrieve: What are atoms? But a neural network can derive that from "Hey bot, what are atoms?" or "Atoms? What are they?"
@tomcat9761
@tomcat9761 2 жыл бұрын
@@YoRHaAttackerNo2 Hi! Question, his model overfitted, right?
@YoRHaAttackerNo2
@YoRHaAttackerNo2 2 жыл бұрын
@@tomcat9761 What do you mean?
@YoRHaAttackerNo2
@YoRHaAttackerNo2 2 жыл бұрын
Are you talking about the tutorial?
@tomcat9761
@tomcat9761 2 жыл бұрын
@@YoRHaAttackerNo2 yes. His training is 100 percent accurate and from what I know it means the model memorized the training data instead of "learning". It won't perform good on unseen data right?
@bhagyajkumarbijukumar3715
@bhagyajkumarbijukumar3715 3 жыл бұрын
why not use commands framework
@adgVelaepyaety
@adgVelaepyaety Жыл бұрын
Where do I get the .env file though?
@shuvadipghosh374
@shuvadipghosh374 3 жыл бұрын
Sir do we need to train the model every time we run the script
@felixoofed5994
@felixoofed5994 3 жыл бұрын
no
@CharlesBLim
@CharlesBLim 3 жыл бұрын
can you make a tutorial how to deploy this bot
@Mayank_edits09
@Mayank_edits09 3 жыл бұрын
Can you make this for telegram?
@dinanath5250
@dinanath5250 2 жыл бұрын
Is it really ai I mean it can tell any questions answered?
@Captain.N
@Captain.N 2 жыл бұрын
Can you please tell me how we can keep this bot running 24/7?
@YoRHaAttackerNo2
@YoRHaAttackerNo2 2 жыл бұрын
It should be capable of running as long as your PC is up and the program is running.
@sollekram
@sollekram 2 жыл бұрын
Host the program, in websites that you can host simple codes like this so your bot will run 24/7
@arnavkamra3346
@arnavkamra3346 3 жыл бұрын
I wrote the same code but it is not working. Pls help
@xaveriuschristopher6013
@xaveriuschristopher6013 2 жыл бұрын
can u implement this on whatsapp or telegram ?
@cryptoglenn
@cryptoglenn 3 жыл бұрын
What is the application for this
@minoftcro84
@minoftcro84 Жыл бұрын
Puede fingir ser mi amigo ese bot ?
@migspanganiban6939
@migspanganiban6939 3 жыл бұрын
Command Prompt can't install NeuralIntents :(
@pastlecry
@pastlecry 3 жыл бұрын
Replit?
@bayronperez6070
@bayronperez6070 2 жыл бұрын
@@pastlecry I have the same error, I try to run it in replit (File "main.py", line 12, in from neuralintents import GenericAssistant ModuleNotFoundError: no module named 'neuraliintents')
@Valo_TV
@Valo_TV 3 жыл бұрын
what version
@MohammedAhmed-dn1uz
@MohammedAhmed-dn1uz 2 жыл бұрын
Is this self learning?
@Old_SDC
@Old_SDC 3 жыл бұрын
When I run this there’s no errors but it just stops.
@Valo_TV
@Valo_TV 2 жыл бұрын
me too did u find a fix
@kylomaskgamer
@kylomaskgamer Жыл бұрын
This seems fun :D
@Ru1n
@Ru1n 3 жыл бұрын
my bot is replying greetings to goodbyes. How do I fix this?
@Ru1n
@Ru1n 3 жыл бұрын
@@NeuralNine I think I figured it out. For some reason if I type bye or goodbye it doesn't work. If it's a different word then it works
@WaveChronos
@WaveChronos 2 жыл бұрын
your libary is not working anymore why i am on mac btw
@aiworld387
@aiworld387 3 жыл бұрын
how can i host this bot online
@hiigari5218
@hiigari5218 2 жыл бұрын
This isn't an *"AI"* though. it just picks random words that you put into that list.
@LofiNeo-yt
@LofiNeo-yt 2 жыл бұрын
effectively , because AI can think by itsself and not this bot
@hiigari5218
@hiigari5218 2 жыл бұрын
@@LofiNeo-yt "AI" Yeah.. But can it do decision making?
@sweminzaw
@sweminzaw 2 жыл бұрын
@@hiigari5218 possible but it would probably take an entire team to do that
@sweminzaw
@sweminzaw 2 жыл бұрын
let me tell you something this AI know something and does not need the question to be case sensitive, for example the intents may have a question like "how are you" and the bot will reply but with this you can tell the bot "how are ya" or "hey whats up" that are not included in the list and the bot will respond
@NotePortal
@NotePortal 2 жыл бұрын
14:59
@radiivanov747
@radiivanov747 Жыл бұрын
Doesn't work at 2023
@happinin
@happinin 2 жыл бұрын
1:22 mark really sloppy man. not all of us know how to make a discord bot and set it up. couldnt you just complete the tutorial so it would be less of a headache trying to figure out what the hell you mean? "i assume that you somehow know how to create your discord bot..." umm no, thats why i clicked on this tutorial? really annoying when ppl do that.
@agusclivio
@agusclivio 2 жыл бұрын
i love ur videos!
@NotePortal
@NotePortal 2 жыл бұрын
11:08
@preet_dhiman022
@preet_dhiman022 2 жыл бұрын
What is $Aibot in this?
@alper8430
@alper8430 2 жыл бұрын
nothing you can write anything you want, it's just there to mean you're texting a bot
@thewhiteape1686
@thewhiteape1686 2 жыл бұрын
This isn't really an intelligent AI chatbot
@minusharma1738
@minusharma1738 3 жыл бұрын
Lol I was making discord bot
@NeuralNine
@NeuralNine 3 жыл бұрын
now you can make it intelligent ^^
@minusharma1738
@minusharma1738 3 жыл бұрын
@@NeuralNine ya true
@nathaniel8422
@nathaniel8422 Жыл бұрын
this is teddious work and its not AI. Its pre programming of questions in array
@shikharadhikari
@shikharadhikari 3 жыл бұрын
ayyy
@NeuralNine
@NeuralNine 3 жыл бұрын
^^
@Suresh_babu00
@Suresh_babu00 3 жыл бұрын
Update your pc Windows 11 bro
@NeuralNine
@NeuralNine 3 жыл бұрын
why?
@Suresh_babu00
@Suresh_babu00 3 жыл бұрын
@@NeuralNine all are updating bro. So i said to you...
@Suresh_babu00
@Suresh_babu00 3 жыл бұрын
@NeuralNine I wish you tell any hidden features in windows 11
@StingBolt
@StingBolt 3 жыл бұрын
Just because everyone is updating doesn't mean you have it :) use whatever you are most comfortable with.
@anon-n1d
@anon-n1d 3 жыл бұрын
windows 11 is kind of dogshit
@Darksovereign69
@Darksovereign69 Жыл бұрын
😮
@neppie14.
@neppie14. 2 жыл бұрын
Whats ndarray
@abhinavchoudhary6849
@abhinavchoudhary6849 3 жыл бұрын
Intrusing
@awa-0174
@awa-0174 Жыл бұрын
Guys I think he forgot pip install neuralintents that what u need to train the Bot
@wahwahwally1
@wahwahwally1 8 ай бұрын
my pip install neuralintents worked just fine but chatbot.train_model appears to be absent from the module now :(
@kaunrkn2273
@kaunrkn2273 8 ай бұрын
@@wahwahwally1 try .fit_model(epochs=50) I am not sure if it works or what it is but its available at the example code from github of neuralintents
@sanspentester8506
@sanspentester8506 3 жыл бұрын
First comment 😍
@NeuralNine
@NeuralNine 3 жыл бұрын
:)
@electronicfun9296
@electronicfun9296 3 жыл бұрын
24th comment
@NeuralNine
@NeuralNine 3 жыл бұрын
👏🏻
@electronicfun9296
@electronicfun9296 3 жыл бұрын
@@NeuralNine lol thanks
@he4landefacer760
@he4landefacer760 3 жыл бұрын
First
@electricz3045
@electricz3045 3 жыл бұрын
You can do the same by checking what the message content is if message.content == "hey": Then you can use random module to send random responses from a list. This way is more easy: import random list = ["Hey", "Hello", "I love you"] await ctx.send(random.rand(list))
@NeuralNine
@NeuralNine 3 жыл бұрын
no you don't seem to have listened to the explanations regarding the intents file. The patterns in the intents file only serve as training data. So the user doesn't have to input the exact messages but only similar messages. If you have the patterns ["How are you?", "How are you feeling?", "Is everything fine?", "How is life?"] the model will also react to "How about your feelings?" even though it is not part of the pattern list. This would not work with your static if statements.
@b07x
@b07x 3 жыл бұрын
That's not ai, that's just following a command. The program won't be able to make the right decisions by itself
@adabarton3406
@adabarton3406 3 жыл бұрын
@@b07x Listen, if we were able to have programs that could think on their own we'd have no need for this But go ahead, tell me when a sentient AI chatbot talks to you.
@tomcat9761
@tomcat9761 2 жыл бұрын
That's not a machine learning tehcnique. That's only rule-based.
@electricz3045
@electricz3045 3 жыл бұрын
discord.dev redirect to the dev portal directly
Simple Discord Bot in Python
26:30
NeuralNine
Рет қаралды 18 М.
Simple Virtual Assistant in Python
18:58
NeuralNine
Рет қаралды 36 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Python Chat Bot Tutorial - Chatbot with Deep Learning (Part 1)
16:11
Tech With Tim
Рет қаралды 848 М.
Self-Driving AI Car Simulation in Python
11:52
NeuralNine
Рет қаралды 174 М.
Code a Discord Bot with Python - Host for Free in the Cloud
1:08:28
freeCodeCamp.org
Рет қаралды 2,4 МЛН
Colorize Black & White Images in Python
21:27
NeuralNine
Рет қаралды 33 М.
Zoom Clone in Python
24:27
NeuralNine
Рет қаралды 181 М.
Logstash Part2 Unit Testing the SIMPLE WAY!
1:01:32
NeighbourWithTools
Рет қаралды 36
Code a Discord Chat Bot That Talks Like Your Favorite Character - Tutorial
57:52
Sudoku Solver in Python
19:22
NeuralNine
Рет қаралды 44 М.
Hide Information in JPEG Files
16:19
NeuralNine
Рет қаралды 183 М.
Fingerprint Matching in Python
23:46
NeuralNine
Рет қаралды 96 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН