This repository has been archived on 2022-12-14. You can view files and clone it, but cannot push or open issues or pull requests.
geiserpbot/src/main/Main.java
2016-04-21 22:34:36 +02:00

25 lines
703 B
Java

package main;
import com.mashape.unirest.http.exceptions.UnirestException;
import elements.exceptions.ReadErrorException;
/**
* Created by vylion on 4/1/16.
*/
public class Main {
public static void main(String[] args) {
try {
Vylbot bot = new Vylbot();
System.out.println("The Bot @" + bot.getUsername() + " awakens.");
System.out.println("Bot running.");
bot.run();
} catch (UnirestException e) {
System.out.println("Unirest Error catched.");
e.printStackTrace();
} catch (ReadErrorException e) {
System.out.println(e.getMessage());
e.printStackTrace();
}
}
}