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!";
}
<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!).
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
Checkout referenced repository.