Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.38 KB

README.MD

File metadata and controls

39 lines (31 loc) · 1.38 KB

sdcf4j-twitch

Sdcf4j is a simple Discord command framework for Java, supporting Javacord, JDA, Discord4J and now Twitch4J. It helps you creating commands within seconds in a clean and simple way.

A ping command is as easy as this:

@TwitchCommand(aliases = "ping", description = "Pong!")
public String onPingCommand() {
    return "Pong!";
}

Maven

<repository>
  <id>jitpack.io</id>
  <url>https://jitpack.io</url>
</repository>
...
<!-- The module for Twitch4J -->
<dependency>
  <groupId>com.github.twitch4j</groupId>
  <artifactId>sdcf4j-twitch</artifactId>
  <version>%version%</version>
</dependency>

Make sure to replace %version% with the latest version number, e.g. v1.0.0 (don't use this one!).

Support

Usage

Take a look at the wiki for a detailed description on how to use the library.

Current annotation is supported for Twitch4J script. Don't even try use @Command annotation. It would not add some methods when doesn't have @TwitchCommand annotation

Creator of Core script sdcf4j

Checkout referenced repository.