botbuilder-typetalk
Typetalk bot connector for Microsoft BotBuilder.
Get started
- Install botbuilder-typetalk
npm install botbuilder-typetalk --save
- Create .env file.
.env:
TYPETALK_CLIENT_ID='DEADBEEF' # see http://developer.nulab-inc.com/docs/typetalk/auth#clientTYPETALK_CLIENT_SECRET='FACEFEED'TYPETALK_ROOMS='2321,2684' # comma separated
- Initialize Typetalk Bot.
index.js:
'use strict'const TypetalkBot = TypetalkBotconst bot =clientId: processenvTYPETALK_CLIENT_IDclientSecret: processenvTYPETALK_CLIENT_SECRETrooms: processenvTYPETALK_ROOMSbot
- Run bot with typetalk adapter.
node index
Let's try sample!
- Get botbuilder-typetalk project.
git clone git@github.com:nulab/botbuilder-typetalk.gitcd ./botbuilder-typetalk
- Create .env file.
TYPETALK_CLIENT_ID='DEADBEEF' # see http://developer.nulab-inc.com/docs/typetalk/auth#client TYPETALK_CLIENT_SECRET='FACEFEED'TYPETALK_ROOMS='2321,2684' # comma separated
- Install dependencies.
npm install
- Run sample bot.
node sample
License
MIT License