Coder Social home page Coder Social logo

jhcbot's Introduction

Java hack.chat Bot

A simple bot for https://hack.chat/ in java.

Take a look at this bot running on https://hack.chat/?programming and type -h.

Download

Download the latest executable jar JHCBot latest

Sources

You can download source code releases from Github Releases

Building

This project is created with Apache Maven so download and install it if you don't have it already. Build executable jar files using

mvn clean package

This will produce the two jars:

  • JHCBot-1.0-SNAPSHOT.jar This is the executable jar without the dependencies packed within the jar. You must have all dependencies in the classpath to run the bot.
  • JHCBot-1.0-SNAPSHOT-jar-with-dependencies.jar This executable jar has all the dependencies mentioned in pom.xml already packed within the jar. You can run the bot directly with it although it is slightly heavier.

Running

First, create/modify the config file for the bot jhcbot.xml or jhcbot.properties with all the required entries with their appropriate values respectively (See jhcbot.xml file for the explanations and suggestions on the config values). Now, place the config file in the current directory/folder and proceed towards executing the jar.

Run the bot by executing any of the jars but its better to execute JHCBot-1.0-SNAPSHOT-jar-with-dependencies.jar cause it has all the dependencies in it. Be sure, you include all the dependencies mentioned in pom.xml if you are going to execute JHCBot-1.0-SNAPSHOT.jar

To execute the jar and run the bot

java -jar target/JHCBot-1.0-SNAPSHOT-jar-with-dependencies.jar

Or

java -jar <path to jar file>

You can also provide the config file with its path while executing the jar

java -jar <path to jar file> -f <path to config file>

License

This project is under MIT License

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.