ErisCasper.java

ErisCasper.java is a Java library for making Discord bots.

It uses RxJava2 to provide a reactive API.

Usage

Be sure to replace VERSION with the actual version you wish to use.

The latest version is Maven Central

Maven

  <dependency>
    <groupId>com.github.princesslana</groupId>
    <artifactId>ErisCasper.java</artifactId>
    <version>VERSION</version>
  </dependency>

Gradle

compile 'com.github.princesslana:ErisCasper.java:VERSION'

Examples

There are example bots included in the github repository here. To run these you will need to setup your bot token in the EC_TOKEN environment variable. Then:

$ mvn compile exec:java -Dexec.mainClass=com.github.princesslana.eriscasper.examples.<classname>

For example, to run PingBot:

$ mvn compile exec:java -Dexec.mainClass=com.github.princesslana.eriscasper.examples.PingBot