Project URL: https://glitch.com/edit/#!/ai-discord-bot
This is a discordjs bot using Dialogflow
Remix the above project
You will want to create an agent in the dashboard
Go to Agent settings
turn on beta features and api
Copy the dev token and place in in the env variable “AKEY”
Then navigate to intents
Go to default fallbacks and get rid of the responses so your bot doesnt reply to every message
Create a new intent with training phrases and a response
The bot will respond with any sentance that includes a keyword from your phrase
Navigate to training
You will want to mark the correct messages with a tick and mark messages you dont want your bot to respond to with a cross
Then click approve
Your bot shouldnt respond to the keyword anymore but it will respond to the sentance
Carry on doing this until youre happy with your bot (: