Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Update readme-teams.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Brown authored Feb 8, 2018
1 parent 54a9d58 commit 4651e14
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/readme-teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Getting these elements in place is a multi-step process, but only takes a few mi
The fastest way to get up and running with Botkit for Microsoft Teams is to use [Botkit Studio](https://studio.botkit.ai/signup?code=teams).
Botkit Studio will guide you through the process of setting up the [Botkit Starter Kit for Microsoft Teams](https://github.com/howdyai/botkit-starter-teams), walk you through the process of configuring the Microsoft Teams and Bot Framework APIs, and deploy your bot to a stable hosting environment so that you can start building right away.

**[![Sign up for Botkit Studio](docs/studio.png)](https://studio.botkit.ai/signup?code=readme)**
**[![Sign up for Botkit Studio](studio.png)](https://studio.botkit.ai/signup?code=readme)**

### Manual Setup: Get the Starter Kit

Expand Down Expand Up @@ -66,7 +66,7 @@ An example of this can be seen [in the starter kit](https://github.com/howdyai/b

The full code for a simple Microsoft Teams bot is below:

~~~ javascript
```javascript
var Botkit = require('botkit');

var controller = Botkit.teamsbot({
Expand All @@ -91,8 +91,7 @@ controller.on('direct_mention', function(bot, message) {
controller.on('direct_message', function(bot, message) {
bot.reply(message, 'I got your private message. You said, "' + message.text + '"');
});
~~~

```

#### App Package / Manifest File

Expand Down Expand Up @@ -122,14 +121,14 @@ Here is a [COMPLETE SAMPLE](../examples/teams/manifest.json)

This function creates a Teams-ready Botkit controller. The values for clientId and clientSecret must be acquired from [Bot Framework](http://dev.botframework.com).

~~~ javascript
```javascript
var controller = Botkit.teamsbot({
debug: true,
log: true,
clientId: process.env.clientId,
clientSecret: process.env.clientSecret
});
~~~
```

#### controller.spawn()
| Argument | Description
Expand Down

0 comments on commit 4651e14

Please sign in to comment.