Skip to content
This repository has been archived by the owner on Apr 6, 2019. It is now read-only.

Latest commit

 

History

History
50 lines (42 loc) · 1.65 KB

README.md

File metadata and controls

50 lines (42 loc) · 1.65 KB

BotlistWrapper

An universal Java Discord botlist wrapper made for use in Discordlist projects

Maintainability Pipeline

Download it

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();