Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Latest commit

 

History

History
67 lines (62 loc) · 1.55 KB

README.md

File metadata and controls

67 lines (62 loc) · 1.55 KB

DEPRECATED

The website this module is for has shutdown.

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.2'
}

In Maven:

 <dependency>
  <groupId>xyz.discordboats</groupId>
  <artifactId>Boats4J</artifactId>
  <version>1.0.2</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);