remove debug code
This commit is contained in:
parent
308f29bf74
commit
f8f247f556
Binary file not shown.
|
@ -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) {
|
||||||
|
|
Reference in a new issue