This commit is contained in:
GregTCLTK 2020-03-09 19:20:26 +01:00
parent 5cc7acfe0d
commit c12e4e8e7c
No known key found for this signature in database
GPG key ID: A91BADE5C070FF67
2 changed files with 3 additions and 7 deletions

View file

@ -66,9 +66,7 @@ public class ClydeCommand implements Command {
} }
webhook.delete().queue(); webhook.delete().queue();
e.getMessage().delete().queue(); e.getMessage().delete().queue();
} else { } else e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.NO_SELF_PERMISSION).build()).queue();
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.NO_SELF_PERMISSION).build()).queue();
}
} else e.getHelpCommand().sendHelp(this, e); } else e.getHelpCommand().sendHelp(this, e);
} }

View file

@ -54,12 +54,10 @@ public class GitHubCommand implements Command {
String website = "None"; String website = "None";
try { try {
bio = json.getString("bio"); bio = json.getString("bio");
} catch (JSONException ignored) { } catch (JSONException ignored) {}
}
try { try {
location = json.getString("location"); location = json.getString("location");
} catch (JSONException ignored) { } catch (JSONException ignored) {}
}
if (!json.getString("blog").equals("")) website = json.getString("blog"); if (!json.getString("blog").equals("")) website = json.getString("blog");