You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### v0.7-redis (2018-05-17): reflecting Webex Teams rebrand
4
+
- introducing ACCESS_TOKEN env variable
5
+
- backward compatibility for SPARK_TOKEN env variable
6
+
- documentation updates (removing spark mentions)
7
+
- added popular skills from convos@sparkbot.io
8
+
9
+
### v0.6-redis (2017-11-17): legacy version for Cisco Spark
10
+
- Redis support via the REDIS_URL variable
11
+
12
+
and all others features for the master branch
13
+
- configuration through environment variables or hard-coded values in the .env file
14
+
- skills: organize your bot behaviours by placing 'commands', 'conversations' and 'events' in the skills directory
15
+
- user experience: the template comes with ready-to-use skills: a 'welcome' invite, as well as 'help' and 'fallback' commands.
16
+
- healthcheck: easily check that everything goes well by hitting the ping endpoint automatically exposed.
17
+
- metadata: expose extra info via command and on a public address so that Spark users can inquire on Bot Author / Legal mentions / Healthcheck endpoint...
18
+
- mentions: the appendMention utility function helps Spark users remind to mention the bot in Group spaces.
19
+
popular cloud providers: the bot self-configures when run on Glitch, and also Heroku (if dyno-metadata are installed for Heroku).
Copy file name to clipboardExpand all lines: README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Template to bootstrap a Botkit project for Cisco Spark
1
+
# Template to bootstrap a Botkit project for Webex Teams
2
2
3
3
This template regroups a set of best practices:
4
4
@@ -10,18 +10,18 @@ This template regroups a set of best practices:
10
10
11
11
- healthcheck: easilly check that everything goes well by hitting the `ping` endpoint automatically exposed.
12
12
13
-
- metadata: expose extra info via command and on a public address so that Spark users can inquire on Bot Author / Legal mentions / Healthcheck endpoint...
13
+
- metadata: expose extra info via command and on a public address so that Webex Teams users can inquire on Bot Author / Legal mentions / Healthcheck endpoint...
14
14
15
-
- mentions: the appendMention utility function helps Spark users remind to mention the bot in Group spaces.
15
+
- mentions: the appendMention utility function helps Webex Teams users remind to mention the bot in Group spaces.
16
16
17
-
- popular cloud providers: the bot self-configures when run on Glitch and Heroku (if )
17
+
- popular cloud providers: the bot self-configures when run on Glitch and Heroku (if the dyno_metadata feature is activated)
18
18
19
19
20
20
## Quick start on Glitch
21
21
22
22
Click [](https://glitch.com/edit/#!/import/github/CiscoDevNet/botkit-template)
23
23
24
-
Then open the `.env` file and paste your bot's token into the SPARK_TOKEN variable.
24
+
Then open the `.env` file and paste your bot's token into the ACCESS_TOKEN variable.
25
25
26
26
You bot is all set, responding in 1-1 and 'group' spaces, and sending a welcome message when added to a space,
27
27
Its healthcheck is accessible at your application public url, suffixed with "/ping"
@@ -33,7 +33,7 @@ _Note that thanks to Glitch 'PROJECT_DOMAIN' env variable, you did not need to a
33
33
34
34
Create a new project pointing to this repo.
35
35
36
-
Reach to your app settings, reveal your config variables, and add a SPARK_TOKEN variable with your bot token as value.
36
+
Reach to your app settings, reveal your config variables, and add a ACCESS_TOKEN variable with your bot token as value.
37
37
38
38
Unless your app is using [Dyno Metadata](https://devcenter.heroku.com/articles/dyno-metadata), you also need to add a PUBLIC_URL variable pointing to your app domain.
39
39
@@ -48,7 +48,7 @@ Its healthcheck is accessible at your application public url, suffixed with "/pi
48
48
Assuming you plan to expose your bot via [ngrok](https://ngrok.com),
49
49
you can run this template in a snatch.
50
50
51
-
1. Create a Bot Account from the ['Spark for developers' bot creation page](https://developer.ciscospark.com/add-bot.html), and copy your bot's access token.
51
+
1. Create a Bot Account from the ['Webex for developers' bot creation page](https://developer.webex.com/add-bot.html), and copy your bot's access token.
52
52
53
53
2. Launch ngrok to expose port 3000 of your local machine to the internet:
54
54
@@ -62,7 +62,7 @@ you can run this template in a snatch.
62
62
63
63
_Note that you can also specify any of these settings via env variables. In practice, the values on the command line or in your machine env will prevail over .env file settings_
64
64
65
-
To successfully run your bot, you'll need to specify a PUBLIC_URL for your bot, and a Cisco Spark API token (either in the .env settings or via env variables). In the example below, we do not modify any value in settings and specify all configuration values on the command line.
65
+
To successfully run your bot, you'll need to specify a PUBLIC_URL for your bot, and a Webex Teaùs API ACCESS_TOKEN (either in the .env settings or via env variables). In the example below, we do not modify any value in settings and specify all configuration values on the command line.
66
66
67
67
4. You're ready to run your bot
68
68
@@ -72,7 +72,7 @@ you can run this template in a snatch.
@@ -53,9 +57,8 @@ var env = process.env.NODE_ENV || "development";
53
57
varconfiguration={
54
58
log: true,
55
59
public_address: public_url,
56
-
ciscospark_access_token: process.env.SPARK_TOKEN,
57
-
secret: process.env.SECRET,// this is a RECOMMENDED security setting that checks of incoming payloads originate from Cisco Spark
58
-
webhook_name: process.env.WEBHOOK_NAME||('built with BotKit ('+env+')')
60
+
ciscospark_access_token: accessToken,
61
+
secret: process.env.SECRET,// this is a RECOMMENDED security setting that checks if incoming payloads originate from Webex webhook_name: process.env.WEBHOOK_NAME || ('built with BotKit (' + env + ')')
This directory and subdirectories are automatically imported.
3
4
Add scripts to enrich your bot skills.
4
5
5
6
_Note that the skills are imported in alphabetical order of their file name. As such, the fallback skill is prefixed with a 'z-' to ensure it is loaded last, ie, if no pattern match, the fallback skill will apply to any message sent to the bot_
6
-
7
-
8
-
This directory and subdirectories are automatically imported by the Cisco Spark starter kit.
9
-
10
-
_Note that you can place common code in the 'utils' directory, as it is not loaded automatically by design._
0 commit comments