Giter VIP home page Giter VIP logo

mengmengbot's Introduction

萌萌机器人

这是Bot framework的一个简单示例,请参考文章: http://www.cnblogs.com/rocsheh/p/5846009.html

配置工作

从Bot Framework申请好bot,打开Web.config文件,配置好以下内容。

<add key="BotId" value="YOU_BOT_ID" />
<add key="MicrosoftAppId" value="YOU_APP_ID" />
<add key="MicrosoftAppPassword" value="YOU_APP_PASSWORD" />

在Bot Framework网站上channel上的web打开,打开default.htm文件,把web的密钥配置到以下地方。

<body style="font-family:'Segoe UI'">
<iframe name="myframe" scrolling="auto" width="100%" height="100%" onload="document.all['myframe'].style.height=myframe.document.body.scrollHeight" 
 src="https://webchat.botframework.com/embed/YOU_BOT_HANDLER?s=YOU_WEB_KEY" style="height: 502px; max-height: 502px;"></iframe>
</body>

从luis.ai上申请设置好LUIS,打开MessagesController.cs文件,配置好LUIS的id和key。

 [LuisModel("YOU_LUIS_ID", "YOU_LUIS_KEY")]

打开MengmengBotTask.cs文件,配置好天气的key。查询天气的key可以从这里申请:http://www.heweather.com

string ServiceURL = $"https://api.heweather.com/x3/weather?city={city}&key=YOUR_WEATHER_KEY";

mengmengbot's People

Contributors

cheneyszp avatar

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.