}
@Override
public void run(Channel channel, User from, String command, String[] args, String unparsed) {
try {
Connection con;
con = Jsoup.connect(url.toString());
con.followRedirects(true);
con.execute();
if (con.response().statusCode() == 200) {
String[] response = BotAppletUtil.blockFormat(con.response().body(), 300, 10);
channel.writeMultiple(response);
} else {
channel.write("Error retreiving page: " + con.response().statusCode());
}
} catch (IOException e) {
channel.write("Unknown error occured");
log.error("error retrieving page", e);
return;