v1.1.3 #395

Merged
greg6775 merged 4 commits from greg-dev into master 2020-03-09 19:33:00 +01:00
2 changed files with 3 additions and 7 deletions
Showing only changes of commit c12e4e8e7c - Show all commits

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");