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-plugin (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-plugin (2017-11-17): legacy version for Cisco Spark
10
+
- modular architecture
11
+
12
+
and all others features for the master branch
13
+
14
+
- configuration through environment variables or hard-coded values in the .env file
15
+
- skills: organize your bot behaviours by placing 'commands', 'conversations' and 'events' in the skills directory
16
+
- user experience: the template comes with ready-to-use skills: a 'welcome' invite, as well as 'help' and 'fallback' commands.
17
+
- healthcheck: easily check that everything goes well by hitting the ping endpoint automatically exposed.
18
+
- metadata: expose extra info via command and on a public address so that Spark users can inquire on Bot Author / Legal mentions / Healthcheck endpoint...
19
+
- mentions: the appendMention utility function helps Spark users remind to mention the bot in Group spaces.
20
+
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
+20-15Lines changed: 20 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,27 @@
1
-
# Template to bootstrap a Botkit project for Cisco Spark
1
+
# Modular Template to bootstrap a Botkit project for Webex Teams
2
2
3
-
This template regroups a set of best practices:
3
+
This template adds a modular architecture to the Botkit master template.
4
4
5
-
- plugable architecture: as Botkit launches, several directories are loaded to customize your bot, in the order below:
5
+
Pplugable architecture features: as Botkit launches, several directories are loaded to customize your bot, in the order below:
6
6
1. configurations: add complex configuration settings that get activated from env variables
7
7
2. extensions: add extra utility function to the bot object
8
8
3. plugins: add extra routes/middlewares to your bot
9
9
4. skills: organize your bot behaviours by placing 'commands', 'conversations' and 'events' in the [skills directory](skills/README.md).
10
10
11
+
All other features from the Botkit template's master branch apply (see below), BUT the capabity to run on glitch.
12
+
13
+
-------
14
+
15
+
11
16
- configuration: pass settings either through environment variables on the command line, or hard-coded values in the `.env` file. Note that command line variables are priorized over the `.env` file if present in both places.
12
17
13
18
- user experience: the template comes ready-to-use skills: a 'welcome' invite, as well as 'help' and 'fallback' commands.
14
19
15
20
- healthcheck: easilly check that everything goes well by hitting the `ping` endpoint automatically exposed.
16
21
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...
22
+
- 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...
18
23
19
-
- mentions: the appendMention utility function helps Spark users remind to mention the bot in Group spaces.
24
+
- mentions: the appendMention utility function helps Webex Teams users remind to mention the bot in Group spaces.
20
25
21
26
- popular cloud providers: the bot self-configures when run on Glitch and Heroku (if dyno metadata have been enabled via the Heroku CLI)
22
27
@@ -25,7 +30,7 @@ This template regroups a set of best practices:
25
30
26
31
Click [](https://glitch.com/edit/#!/import/github/CiscoDevNet/botkit-template)
27
32
28
-
Then open the `.env` file and paste your bot's token into the SPARK_TOKEN variable.
33
+
Then open the `.env` file and paste your bot's token into the ACCESS_TOKEN variable.
29
34
30
35
You bot is all set, responding in 1-1 and 'group' spaces, and sending a welcome message when added to a space,
31
36
Its healthcheck is accessible at your application public url, suffixed with "/ping"
@@ -37,7 +42,7 @@ _Note that thanks to Glitch 'PROJECT_DOMAIN' env variable, you did not need to a
37
42
38
43
Create a new project pointing to this repo.
39
44
40
-
Reach to your app settings, reveal your config variables, and add a SPARK_TOKEN variable with your bot token as value.
45
+
Reach to your app settings, reveal your config variables, and add a ACCESS_TOKEN variable with your bot token as value.
41
46
42
47
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.
43
48
@@ -52,7 +57,7 @@ Its healthcheck is accessible at your application public url, suffixed with "/pi
52
57
Assuming you plan to expose your bot via [ngrok](https://ngrok.com),
53
58
you can run this template in a snatch.
54
59
55
-
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.
60
+
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.
56
61
57
62
2. Launch ngrok to expose port 3000 of your local machine to the internet:
58
63
@@ -66,32 +71,32 @@ you can run this template in a snatch.
66
71
67
72
_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_
68
73
69
-
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.
74
+
To successfully run your bot, you'll need to specify a PUBLIC_URL for your bot, and a Webex Teams 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.
0 commit comments