Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 949 Bytes

File metadata and controls

42 lines (25 loc) · 949 Bytes

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.