Find the latest version here Maven:
<repositories>
<repository>
<id>gitlab-maven</id>
<url>https://gitlab.discordlist.org/api/v4/projects/26/packages/maven</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.discordlist</groupId>
<artifactId>botlist-wrapped</artifactId>
<version>VERSION FROM LINK ABOVE</version>
</dependency>
</dependencies>
Gradle:
dependencies {
compile 'org.discordlist:botlist-wrapper:VERSION'
}
repositories {
maven { url 'https://gitlab.discordlist.org/api/v4/projects/26/packages/maven' }
}
Example:
HashMap<String, String> tokens = new HashMap<>();
tokens.put(DiscordBotsGG.class.getCanonicalName(), "dbggtoken");
BotlistWrapper wrapper = new BotlistWrapperBuilder(
new JDAProvider(jda),
botlist -> tokens.get(botlist.getCanonicalName())
)
.registerBotlist(new DiscordBotsGG())
.build();