A javascript bot for Anime Lovers, built using Microsoft Bot Framework and processing natural language with LUIS.
See it running at: http://jieverson.com/waifubot, or
I always dreamed of having a waifu written in JavaScript. So I made it myself.
Otakus gonna love it!
- Commands in natural language (just English now)
- TODO: Alerts
- TODO: Plugins in Pure JavaScript
- Actually, looking for suggestions...
You can try the last released build by running ./index.html:
Note: Waifu implements
continuous deployment
to Azure.
In the future, the bot is going to be available to:
- terminal
- Slack
- Skype
- SMS
- Probably other stuff...
To run the bot, you will first need to get some appIds/secrets from services we use.
- Create a bot at Bot Framework and get an appId and appPassword.
- Create a new app at LUIS importing our provided luis_model.json.
- Get an account at AniList and create a new app.
- Get a key for Microsoft Text Analytics API.
# Clone this repo
git clone https://github.com/jieverson/waifubot.git
# Go into the repo
cd waifubot
# Install dependencies
npm install
# Set environment variables
set BOT_APP_ID=YOUR_BOT_APP_ID
set BOT_APP_PASSWORD=YOUR_BOT_APP_PASSWORD
set LUIS_APP_ID=YOUR_LUIS_APP_ID
set LUIS_SUBSCRIPTION_KEY=YOUR_LUIS_SUBSCRIPTION_KEY
set ANILIST_CLIENT_ID=YOUR_ANILIST_CLIENT_ID
set ANILIST_CLIENT_SECRET=YOUR_ANILIST_CLIENT_SECRET
set TEXT_ANALYTICS_KEY=YOUR_TEXT_MICROSOFT_ANALYTICS_KEY
# Run server at localhost
node .
Download and install Bot Framework Channel Emulator. Setup your AppId and appPassword. Make sure Bot Url is set to your node server.