Coder Social home page Coder Social logo

mee6-api-wrapper-for-java's Introduction

MEE6 API Wrapper for Java

Java 8 API Wrapper for the MEE6 Discord Bot

What is it?

MEE6 is a Discord bot that lets you easily add your own commands to your server through a user-friendly dashboard, but it is a little known fact is that MEE6 has an API which other applications can call information from.

While building a bot with JDA around Mee6 player statistics, I found that there was no public wrappers for Mee6, so I built one. I thought I would share this with the community in case someone else needed it.

Jason

Using Mee6API Object:

public class Example
{
    public static void main(String[] args)
    {
    	//Step 1: Build a corresponding JDA with the Guild's ID
        Mee6API mee = new Mee6API("222123744959660032");
        
        //Grab a player by ID (will output null if player does not exist in this leaderboard)
        Players player = mee.getPlayer("157692073699573761");
        
        //An example of displaying this data
        System.out.println(player.getUsername() + " : " + player.getLevel());
    }
}

Output

Micc : 21
//Note: the level may change by the time you attempt to use this

Frequently Asked Questions and Issues

How do I find a Guild ID / Player ID?

Step 1: Enable developer mode on your Discord Client. 
You can find this option in User Settings >  Apperance > Advanced > Developer Mode.

Step 2: Right click any Guild or Player and click Copy ID

Step 3: Profit

I'm making modifications to the data in my program but the changes aren't being reflected on the server. Help?

All returned objects are immutable. This API only allows for querying and not for sending data back to Mee6.

Download

Latest Stable Version: GitHub Release

Latest Version: download

Maven

<dependency>
    <groupId>com.github.Miic</groupId>
    <artifactId>Mee6-API-Wrapper-for-Java</artifactId>
    <version>LATEST</version>
</dependency>
<repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
</repository>

mee6-api-wrapper-for-java's People

Contributors

miic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.