loicsikidi / Pokebot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PokeBot

This Pokedex bot is powered by Natural Language Processsing (NLP) with Recast.AI and can be connected to both Slack, Messenger or Kik.

You have 3 different ways to use PokeBot:

  • Use it straight away here
  • Follow the following procedure to run it by yourself on your computer.
  • Make your own simple version of it from A to Z with the tutorial.

Get your Recast.AI Bot Token

  • Log in to your Recast.AI account
  • Go to Pokebot
  • Click on the 'Fork the Bot' Button
  • Then on your profile, choose your fresh forked Bot
  • On the bottom, in the curl request is your precious Token

Get your Microsoft secret

  • Create an account on Microsoft Bot Framework
  • Create a new Bot and follow the procedure. The callback Url you have to put will be explain later.
  • During the process, you'll have to create a Microsoft App: keep your Secret and AppId, they will be used later
  • Follow the differents steps for every channel you want to add.

Put your local server Online

./ngrok http 8080

this terminal is now used by ngrok and you can see your full Url that is required on microsoft bot Platform

Launch Pokebot

Complete the config.js

  • Clone this Repository
git clone https://github.com/hcherchi/PokeBot.git
  • Fill the config.js with your Tokens
var tokens =
{
	recast: 'Recast Token',
	AppId: 'Application Id',
	Secret: 'Your Microsoft Secret',
}

Run

  • install the dependencies
npm install
  • run Pokebot
npm run build
npm run start

Use Pokebot

Alt text

Your can :

  • Ask informations about a specific Pokemon

  • Ask resist and strengh about a specific Pokemon

  • Ask Stats about a specific Pokemon

  • Ask Moves a specific Pokemon can learn

  • Ask informations about a specific move

  • Ask about the family of a specific Pokemon

  • Ask for a random Pokemon of a certain type

About


Languages

Language:JavaScript 100.0%