cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
637
Views
1
Helpful
2
Replies

Webex Bot 'Chess Game' issue

robad
Level 1
Level 1

Hi Team,

I've followed this guide :
https://developer.cisco.com/learning/modules/webex-messaging-bots/webex-messaging-adaptive-cards/designing-the-adaptive-card/

All worked for me, until this step :

robad_1-1714891883996.png

 

This is my index.js file looks like after this step:

robad_0-1714891854651.png

And this is the error I'm getting :

robad_2-1714891911452.png

 

Maybe I've added it wrong to the index.js ?

Am I missing something ?

 

 

Thanks in advanced 

 

1 Accepted Solution

Accepted Solutions

Alex Stevenson
Cisco Employee
Cisco Employee

Hi @robad,

Here is the GitHub repo associated with this lab: https://github.com/CiscoDevNet/webex-chess-card-sample-workshop/tree/phase_5

Because you are running it locally, and not in the lab IDE, you can run these commands locally to setup the environment the same as the lab uses:

 

git clone https://github.com/CiscoDevNet/webex-chess-card-sample-workshop.git

cd webex-chess-card-sample-workshop && npm init -y && npm install webex-node-bot-framework@2.3.5 dotenv@8.2.0 js-chess-engine@0.11.3 node-fetch@2.6.1

git clone https://github.com/CiscoDevNet/webex-meeting-types-samples.git

cd webex-meeting-types-samples && npm install && npm run-script build

 

For anyone working on a Webex Bot or who wants to see how one operates, you can also read about my Word of the Day Bot here: https://blogs.cisco.com/developer/automatewebexspace01

Anyone can join the Word of the Day space, which the bot serves, as well: https://eurl.io/#3wNrmU0-1

 

View solution in original post

2 Replies 2

Alex Stevenson
Cisco Employee
Cisco Employee

Hi @robad,

Here is the GitHub repo associated with this lab: https://github.com/CiscoDevNet/webex-chess-card-sample-workshop/tree/phase_5

Because you are running it locally, and not in the lab IDE, you can run these commands locally to setup the environment the same as the lab uses:

 

git clone https://github.com/CiscoDevNet/webex-chess-card-sample-workshop.git

cd webex-chess-card-sample-workshop && npm init -y && npm install webex-node-bot-framework@2.3.5 dotenv@8.2.0 js-chess-engine@0.11.3 node-fetch@2.6.1

git clone https://github.com/CiscoDevNet/webex-meeting-types-samples.git

cd webex-meeting-types-samples && npm install && npm run-script build

 

For anyone working on a Webex Bot or who wants to see how one operates, you can also read about my Word of the Day Bot here: https://blogs.cisco.com/developer/automatewebexspace01

Anyone can join the Word of the Day space, which the bot serves, as well: https://eurl.io/#3wNrmU0-1

 

robad
Level 1
Level 1

worked like charm !!!

Thanks @Alex Stevenson