Giter Site home page Giter Site logo

expdani / discord-dialogflow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from biggestcookie/june-bot

0.0 0.0 0.0 459 KB

A Discord bot that processes commands with natural language.

License: GNU Affero General Public License v3.0

TypeScript 99.61% Procfile 0.39%

discord-dialogflow's Introduction

June-bot

Banner License: AGPL v3 Support me

The cutest Discord bot you'll ever meet ✿✼:*゚:.。

What is this?

June-bot is a Discord bot with Dialogflow integration. Traditionally, Discord commands are invoked with a prefix and pre-configured words (e.g. ~help as a command). Dialogflow allows June to instead process commands using natural language.

Meme example

This isn't just limited to commands -- simple conversations can be held when the user's input is not interpreted as a command.

Dialog example

June uses Dialogflow's 'small talk' feature, which isn't capable of much more than simple responses to simple questions. However, one could easily have fallback responses instead hooked up to Cleverbot or a similar tool to provide richer, context-aware conversations.

Why make this?

This was a originally a bit of a pet project for myself to learn JavaScript. I did learn a lot and have since upgraded to TypeScript, so now I'm releasing this project for others to use as an example when integrating Discord and/or Dialogflow in TypeScript. I will likely have to stop developing this bot soon, so I am hoping the project will be helpful for anyone aspiring to make a Discord bot with these tools.

I think the Discord community would greatly benefit from more bots using natural language for ease-of-use, role-playing, and so much more.

How do I use this?

June is not set up for public servers. If you'd like to clone the repository to try it for yourself, a simple npm install should set you up with the needed dependencies. I'll soon be providing instructions for setting up the Dialogflow end.

Frequently Asked Questions

What is June capable of?

Outside of small talk, currently only a few commands (this is not unlike most programmers). Dialogflow can be used to trigger any command you can implement in a Discord bot, though, and can be trained to parse user input for arguments. June's current command list will soon be provided in the wiki.

Where's the art from?

June's picture comes from ガオ maker on Picrew.

I have other questions!

Feel free to open an issue or reach out to me on Discord at bigcookie#7513 .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.