=Fix for GetSauce Command

Fixed issue #2
This commit is contained in:
Alex Stewart
2020-02-25 21:07:51 -05:00
parent 3e48056b15
commit 22f8e0b9df
4 changed files with 13 additions and 11 deletions
+2 -7
View File
@@ -24,13 +24,8 @@ public class CommandE6 extends Command
@Override
public void onRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
{
if(guild.contentRating == KittyRating.Filtered || !guild.channels.get(Long.getLong(channel.uniqueID)).mature)
if(guild.contentRating == KittyRating.Filtered)
{
if(!guild.channels.get(Long.getLong(channel.uniqueID)).mature)
{
res.send("This channel is SFW only! Have some (probably) wholesome content ^^~");
}
image = searcher.getE6(input.args + " rating:safe");
try
{
@@ -43,7 +38,7 @@ public class CommandE6 extends Command
}
try
{
if(response.authorText == null)
if(response.bodyImageURL == null)
{
Exception e = new Exception();
throw e;