{"id":16599709,"url":"https://github.com/hagemt/cwt-echo-bot","last_synced_at":"2025-10-05T23:51:07.239Z","repository":{"id":140005224,"uuid":"139207174","full_name":"hagemt/cwt-echo-bot","owner":"hagemt","description":"Scaffold to demonstrate a Cisco Webex Teams bot; just add `config/token.json`.","archived":false,"fork":false,"pushed_at":"2018-08-03T23:50:51.000Z","size":44,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-17T06:45:38.059Z","etag":null,"topics":["bot","starter","webex","webex-bot","webex-teams"],"latest_commit_sha":null,"homepage":"https://developer.webex.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hagemt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-30T00:28:06.000Z","updated_at":"2018-08-03T23:50:52.000Z","dependencies_parsed_at":"2023-05-23T22:15:49.421Z","dependency_job_id":null,"html_url":"https://github.com/hagemt/cwt-echo-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hagemt%2Fcwt-echo-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hagemt%2Fcwt-echo-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hagemt%2Fcwt-echo-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hagemt%2Fcwt-echo-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hagemt","download_url":"https://codeload.github.com/hagemt/cwt-echo-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242538984,"owners_count":20145882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","starter","webex","webex-bot","webex-teams"],"created_at":"2024-10-12T00:12:21.010Z","updated_at":"2025-10-05T23:51:07.111Z","avatar_url":"https://github.com/hagemt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cwt-echo-bot\n\nYou: resourceful business collaboration dev/enabler; if you like this, you might also like [cisco-webex-tools](https://www.npmjs.com/package/cisco-webex-tools).\n\nThis bot is a template--it responds when DM'd. (ignores non-humans, can only respond in groups when @mentioned)\n\nWhen triggered (by webhook delivery = POST to target URL) an `event` action is fired, passing relevant JSON `data`.\n\nEvents are handled without blocking other HTTP traffic (actions are processed asynchronously) to enable scale-up.\n\n## Getting Started\n\nUpfront: we expect you have installed a modern [NodeJS](https://nodejs.org) as well as functional `docker` and `git` commands.\n\nTo get started, create your bot here: https://developer.webex.com/add-app.html (other application types: out of scope)\n\nCopy the (double quoted) token string to file named `token.json` e.g. `\"$SECRET_BOT_ACCESS_TOKEN_FROM_DEV_PORTAL\"`\n\nClone this repository with `git` and drop `token.json` into the `config` directory, then follow the instructions below.\n\n## Basic Walkthrough\n\nLast week, we created a Cisco Webex Teams bot (application) using the dev portal. (developer.webex.com)\n\n0. You already have NodeJS (for `npm`) as well as `docker` and have used `git` to fork/clone this repo.\n1. Copy `token.json` (file containing only the bot's token as a quoted string) into the `config` folder.\n2. Run `npm install` to populate the `node_modules` folder and `npm test` to exercise a simple test server.\n3. Examine `package.json` to understand the `scripts` you can run via `npm`. Feel free to add stuff here.\n4. Next, try running `npm run docker` to build and spawn a container using the included `Dockerfile`.\n\nBy default, `docker` will create a lightweight container running the `start` script. See Tooling Primer, below.\n\n5. Notice how `npm start` executes the `server` script by default? (a simple test server, not the bot)\n6. Examine the contents of the `bot` folder and the provided script. Can you figure out ho?\n7. Why isn't your bot responding to messages yet? Try `npm run tunnel` in another terminal.\n8. Can you modify your bot to reply with a different message, or do something else?\n9. What will you make your bot do? Will you add an API, or a React front-end?\n\nCreate an issue on GitHub (we also accept PRs) if you run into any problems. Your feedback is much appreciated!\n\n## Tooling Primer\n\nNote: use [Kinematic](https://kitematic.com) and/or [Github Desktop](https://desktop.github.com/) if you prefer GUIs.\n\nYou might prefer an IDE, but NodeJS makes it simple enough to write JavaScript with any editor, even ones like `vim`.\n\nTo send HTTP requests, use your web browser (for simple GETs) or Postman or e.g. `curl -v http://localhost:8080/`.\n\n### Basic Docker\n\nFrom the command line, use `docker ps -a` to list all your local containers, then `docker stop ...` and `docker rm ...`.\n\nThe included `Dockerfile` is simple enough for beginners, but robust enough for a (basic) production application.\n\nIf you add databases or other services, you might want to explore tools like e.g. `docker-compose`, Swarm, etc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhagemt%2Fcwt-echo-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhagemt%2Fcwt-echo-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhagemt%2Fcwt-echo-bot/lists"}