use of io.github.spugn.Sargo.Listeners.MessageListener in project S-argo by Expugn.
the class Sargo method main.
public static void main(String[] args) {
File settingsFile = new File("data/Settings.xml");
if (!(settingsFile.exists())) {
LOGGER.error("\nSettings.xml is not found!\nPlace it in the appropriate location before continuing.");
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
System.exit(0);
}
System.exit(0);
}
Reload.silentReloadSettings();
CLIENT = buildBot(SettingsParser.getBotToken());
EventDispatcher dispatcher = CLIENT.getDispatcher();
dispatcher.registerListener(new ReadyListener(CLIENT));
dispatcher.registerListener(new MessageListener(CLIENT));
}
Aggregations