Skip to content

An AI made with Keras ( used the code of NeuralNine's NeuralIntents) to implement Speech Recognition. This pairs the neuralintents with the discord.py inorder to make a chatbot that can recognise speech based on patterns and give recorded responses.

License

Notifications You must be signed in to change notification settings

In-Saiyan/Discord-Chatbot-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord-Chatbot-AI

An AI made with Keras ( used the code of NeuralNine's NeuralIntents) to implement Speech Recognition. This pairs the neuralintents with the discord.py inorder to make a chatbot that can recognise speech based on patterns and give recorded responses.

Deployment:

This will guide through on How to deploy your own bot.

Dependencies:

After Installing it should show something like:

image

If it doesn't well. Reinstall. Or you might want to check the "Add to PATH option" (You can do it mannually)

  • Discord.py
    • After installing Python and adding the executable to the PATH in your environment variable(It happens automatically but in case if it doesn't works you have to do it mannually.)
    • Type in the Command Prompt/ PowerShell in Windows or Terminal in Mac/Linux:

Windows:

 pip install discord.py

Mac/Linux:

 pip3 install discord.py
  • Tensorflow
    • Install it using pip.

Windows:

 pip install tensorflow

Mac/Linux:

 pip3 install tensorflow
  • Now you're good to go.

Get Your Token

Too lazy to explain (XD) so I will recommend Tyrrrz' Guide to otain your bot token here.

Adding the token to the config.

Since the bot is in the development stage and it's simple as hell...(Probably not cuz I'm lazy, I'm just dumb XD)~ Anyways, there's only one option as of now just replace the "" by your actual bot token in the [.env file](/.env) .

Running the bot

Bro you're for real? Open the terminal and change the directory to the main folder where main.py is present, then type in:

Windows:

 python bot.py

Mac/Linux

python3 bot.py

Make Responses and Patters in Intents

Make a blank folder named intents and make a blank intents.json file inside it

Sample:

{"intents": [
 {"tag": "greeting",
   "patterns": ["Hi", "How are you", "Is anyone there?", "Hello", "Good day", "Whats up", "Hey", "greetings"],
   "responses": ["Hello!", "Good to see you again!", "Hi there, how can I help?"],
   "context_set": ""
 },
 {"tag": "goodbye",
   "patterns": ["cya", "See you later", "Goodbye", "I am Leaving", "Have a Good day", "bye", "cao", "see ya"],
   "responses": ["Sad to see you go :(", "Talk to you later", "Goodbye!"],
   "context_set": ""
 },
 {"tag": "stocks",
   "patterns": ["what stocks do I own?", "how are my shares?", "what companies am I investing in?", "what am I doing in the markets?"],
   "responses": ["You own the following shares: ABBV, AAPL, FB, NVDA and an ETF of the S&P 500 Index!"],
   "context_set": ""
 }
]
}

If you want to contribute in making this something good you can Join us on Discord..

About

An AI made with Keras ( used the code of NeuralNine's NeuralIntents) to implement Speech Recognition. This pairs the neuralintents with the discord.py inorder to make a chatbot that can recognise speech based on patterns and give recorded responses.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published