Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Creating bots with JG_API

Jared edited this page Jul 26, 2022 · 6 revisions

Step 1: Getting your bot token from Guilded

TBD

Step 2: Creating the JG_API instance

public class Bot {
    public static JG_API jg_api;

    public static void main(String[] args) {
        try {
            jg_api = new JG_API.ClientBuilder()
                    .setParentServerId(ConfigManager.getInstance().getProperty("GUILDED_SERVER_ID"))
                    .setToken(ConfigManager.getInstance().getProperty("GUILDED_TOKEN"))
                    .build();

            jg_api.login();
            jg_api.start();
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}

Step 3: Creating an event handler

TBD

Step 4: Register the event handler

TBD

Step 5: Executing RestClient methods via the queue

TBD

Step 6: Executing RestClient methods via completion

Clone this wiki locally