This repository has been archived by the owner on Oct 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Home
Bastian Oppermann edited this page Jan 14, 2017
·
8 revisions
Welcome to the sdcf4j wiki!
Sdcf4j is a simple Discord command framework for Java, supporting Javacord, JDA and Discord4J. It helps you creating commands within seconds in a clean and simple way.
A ping command is as easy as this:
@Command(aliases = "!ping", description = "Pong!")
public String onPingCommand() {
return "Pong!";
}
Sdcf4j uses Maven to manage it's dependencies.
<repository>
<!-- The repo for the sdcf4j -->
<id>sdcf4j-repo</id>
<url>http://repo.bastian-oppermann.de</url>
</repository>
...
<!-- The core module -->
<dependency>
<groupId>de.btobastian.sdcf4j</groupId>
<artifactId>sdcf4j-core</artifactId>
<version>LATEST</version>
</dependency>
<!-- The module for your prefered lib-->
<dependency>
<groupId>de.btobastian.sdcf4j</groupId>
<!-- Possible artifact ids: sdcf4j-javacord, sdcf4j-jda, sdcf4j-jda3, sdcf4j-discord4j -->
<artifactId>sdcf4j-javacord</artifactId>
<version>LATEST</version>
</dependency>
You always need the core module. Depending on your used library you either have to use sdcf4j-javacord
, sdcf4j-jda
, sdcf4j-jda3
or sdcf4j-discord4j
. Take a look at the README.md file to find out what's the latest version.
Note: If you don't like Maven you can use Gradle, too, or download the .jar files yourself at Jenkins.
The latest JavaDocs can be found here: JavaDocs