remove debug code

This commit is contained in:
Kegan Myers 2013-06-30 19:08:15 -05:00
parent 308f29bf74
commit f8f247f556
2 changed files with 77 additions and 80 deletions

Binary file not shown.

View file

@ -22,13 +22,10 @@ public class UrbanCommand extends be.xrg.evilbotx.parents.EBXComponent {
if (b.startsWith("!urban")) { if (b.startsWith("!urban")) {
if (b.contains(" ")) { if (b.contains(" ")) {
String[] c = b.split(" ", 2); String[] c = b.split(" ", 2);
System.out.println(c[0]); JSONObject d = new JSONObject(
System.out.println(c[1]); Utilities
String a = Utilities .getHTMLPage("http://api.urbandictionary.com/v0/define?term="
.getHTMLPage("http://api.urbandictionary.com/v0/define?term=" + Utilities.urlEncode(c[1]))[1]);
+ Utilities.urlEncode(c[1]))[1];
System.out.println(a);
JSONObject d = new JSONObject(a);
if (d.has("result_type")) { if (d.has("result_type")) {
Object g = d.get("result_type"); Object g = d.get("result_type");
if (g instanceof String) { if (g instanceof String) {