Skip to content

kidofcubes/euphoria-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

euphoria-api

A euphoria.io bot library for java

Usage

Run ./gradlew publishToMavenLocal to add the library to your local maven repo,

and then add the latest version to your dependencies

implementation "io.github.kidofcubes:euphoria-api:0.1.0"

Writing a bot

EuphoriaBot bot = new EuphoriaBot("ExampleBotName"); // initiate bot
bot.joinRoom(new URI("wss://euphoria.io/room/testing/ws")); // connect to a websockets endpoint

Functionality is added by extending the EuphoriaBot class and overriding functions

class ExampleBot extends EuphoriaBot{
    @Override
    public void onJoinRoom(RoomConnection connection){
        connection.sendEuphoriaMessage(new Message("Hello World"));
    }
}

About

A euphoria.io bot library for java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages