webex-chess-card-sample

Overview

Sample application demonstrating the use of interactive, in-place Webex messaging adaptive cards to implement an AI chess program.

chess bot

https://developer.webex.com/docs/api/guides/cards

Requirements:

  • Node.js 12.x (LTS)

Getting started

  • Clone this repo:

    git clone https://github.com/CiscoDevNet/webex-chess-card-sample.git
  • Install dependencies:

    cd webex-chess-card-sample
    npm install
  • Rename .env.example to .env, and edit it to specify your Webex bot's access token

  • Launch:

    node index.js

Hints

  • Log output from webex-node-bot-framework can be increased via the WEBEX_LOG_LEVEL setting in .env

  • Currently edits to an adaptive card message are limited to 10. To-do: include the edit count in a hidden field and generate a new instance when the limit is reached.

View code on GitHub

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.