Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.
/ Boats4J Public archive
forked from DiscordBoats/Boats4J

Discord Boats Java API Wrapper

License

Notifications You must be signed in to change notification settings

dunctes-archive/Boats4J

 
 

Repository files navigation

Build Status Download

Boats4J

Discord Boats' Official Java API Wrapper

Adding To Your Project

In Gradle:

repositories {
  jcenter()
}
dependencies {
  compile 'xyz.discordboats:Boats4J:1.0.1'
}

In Maven:

 <dependency>
  <groupId>xyz.discordboats</groupId>
  <artifactId>Boats4J</artifactId>
  <version>1.0.1</version>
</dependency>
<repository>
    <id>jcenter</id>
    <name>jcenter-bintray</name>
    <url>http://jcenter.bintray.com</url>
</repository>

Posting Stats

Boats4J can help you automatically post the server count by using the constructor with JDA:

new Boats4J(jda, apiToken);

or

new Boats4J(shardmanager, apiToken, botid) ;

Otherwise

Boats4J bfourj = new Boats4J(ApiToken, botid);
bfourj.postStats(count); // count is a long!

Posting Stats statically

If you do not want to create an instance you can post statically

Boats4J.postStats(count, botid, token);
Boats4J.postStats(jda, token);
Boats4J.postStats(shardmanager, token);

Getting Bot Info

You can easily get information about a bot

BotInfo info = Boats4J.fetchBotInfo(id);

Getting User Info

You can also get information about a user

UserInfo info = Boats4J.fetchUserInfo(id);

About

Discord Boats Java API Wrapper

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%