Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

JustRed23/ListenDotMoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ListenDotMoe

ListenDotMoe is a Java API used to get song information from listen.moe

Usage

package com.example;

import dev.JustRed23.ListenDotMoe.ListenDotMoe;

import java.util.concurrent.TimeUnit;

public class Example {

    public static void main(String[] args) throws InterruptedException {
        //Create a new instance
        ListenDotMoe ldm = new ListenDotMoe();
        //Disable logging (optional)
        ldm.disableLogging();
        //Add the song event handler
        ldm.addSongEventHandler(song -> System.out.println("Song title: " + song.getTitle()));
        //Start ListenDotMoe
        ldm.start();

        //Sleep for three seconds
        TimeUnit.SECONDS.sleep(3);
        //Stop ListenDotMoe
        ldm.stop();
    }
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT