Skip to content

Commit

Permalink
* Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
DxsSucuk committed Jun 27, 2022
1 parent d37a993 commit 135080c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/main/java/de/presti/ree6/commands/impl/nsfw/NSFW.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import de.presti.ree6.commands.*;
import de.presti.ree6.commands.Category;
import de.presti.ree6.commands.CommandEvent;
import de.presti.ree6.commands.interfaces.Command;
import de.presti.ree6.commands.interfaces.ICommand;
import de.presti.ree6.main.Data;
import de.presti.ree6.main.Main;
import de.presti.ree6.utils.apis.Neko4JsAPI;
import de.presti.ree6.utils.external.RequestUtility;
import de.presti.ree6.utils.others.RandomUtils;
import net.dv8tion.jda.api.EmbedBuilder;
Expand All @@ -19,7 +19,6 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.function.Consumer;

@Command(name = "nsfw", description = "Get NSFW Image for reddit.com/r/hentai", category = Category.NSFW)
public class NSFW implements ICommand {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ public static InviteContainer getRightInvite(Guild guild) {
foundOne = true;
}

if (inv.getInviter() == null) continue;
if (!inv.getCode().equalsIgnoreCase(inv2.getCode())) continue;
if (!inv.getInviter().getId().equalsIgnoreCase(inv2.getCreatorId())) continue;
if (inv.getInviter() == null ||
!inv.getCode().equalsIgnoreCase(inv2.getCode()) ||
!inv.getCode().equalsIgnoreCase(inv2.getCode()) ||
!inv.getInviter().getId().equalsIgnoreCase(inv2.getCreatorId())) continue;

if (inv.getUses() > inv2.getUses()) {
return inv2;
Expand Down

0 comments on commit 135080c

Please sign in to comment.