25 lines
703 B
Java
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();
|
|
}
|
|
}
|
|
}
|