ObliviousDonkey / discord-ai-bot

Api.ai bot in a discord channel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Artificial Intelligence Discord Bot

This bot is capable of answer any message sent through discord using the '!' command to specify that this message is for the bot. This bot works using the Api.ai which is now known as DialogFlow.

The responses can be trained to any situation such as book a flight, query the weather and so many things. In addition, you can add custom responses for very special cases that you want to respond with a specific answer.

Stack

This bot is running using NodeJs with the apiai & discord.js modules. Simple as this.

How to run

In order to run the bot, you should get an API key from DialogFlow, a discord bot token, and of course, a discord bot configurated.

To run, you need to excecute the following command:

AUTH_TOKEN=<your-discord-token> API_AI=<your-api-ai-key> node main.js

Contributors

To contribute to this project, fork this repo and make a pull request with your changes.

About

Api.ai bot in a discord channel

License:MIT License


Languages

Language:JavaScript 100.0%