Code Monkey home page Code Monkey logo

javabot's Introduction

javabot

Description

Used to listen to events in Webex Teams on a localhost port. The only command it can understand is hello, replies "hello there".

Requirements

  • Webex Teams access token: this will be used to communicate with Webex Teams. Ideally you would use the access token of the same bot here.
  • open port on localhost: this is where the app will listen for incoming messages
  • Java 1.8
  • Maven 3.6.1

Installation

  • clone the repo
  • mvn install
  • mvn exec:java -Dexec.mainClass=Main

Usage

+---------------------------------------------+
|                                             |
|        _                  _           _     |
|       | | __ ___   ____ _| |__   ___ | |_   |
|    _  | |/ _` \ \ / / _` | '_ \ / _ \| __|  |
|   | |_| | (_| |\ V / (_| | |_) | (_) | |_   |
|    \___/ \__,_| \_/ \__,_|_.__/ \___/ \__|  |
|                                             |
|                                             |
+---------------------------------------------+

Please enter an access token
AaBbCcDdEeFfGgHhIiJjAaBbCcDdEeFfGgHhIiJjAaBbCcDdEeFfGgHhIiJj_ABCD_1a2b3c4d-1234-abcd-9876-abcdefghijkl
INFO Verifying account
INFO Account verified as Droid
Please enter port you want to listen on:
5000
INFO Service listening on localhost:5000

Tip: you can use the hookbuster to test how this app works. Start a websocket listener for messages:created and the hookbuster will forward incoming message events to localhost, where javabot can listen to them. No need for webhooks!

Dependencies

<dependencies>
 <dependency>
   <groupId>org.glassfish</groupId>
   <artifactId>javax.json</artifactId>
   <version>1.0.4</version>
 </dependency>

 <dependency>
   <groupId>com.ciscospark</groupId>
   <artifactId>ciscospark-client</artifactId>
   <version>1.0-SNAPSHOT</version>
 </dependency>

 <dependency>
   <groupId>org.json</groupId>
   <artifactId>json</artifactId>
   <version>20180130</version>
 </dependency>
</dependencies>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.