This commit is contained in:
GregTCLTK 2020-01-24 17:34:50 +01:00
parent bd4fda3094
commit fe965a5cf7
No known key found for this signature in database
GPG key ID: A91BADE5C070FF67
18 changed files with 32 additions and 35 deletions

View file

@ -19,14 +19,14 @@ package com.bbn.hadder.commands.nsfw;
import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.utils.MessageEditor;
import com.bbn.hadder.utils.Request;
import com.bbn.hadder.utils.Http;
public class AnalCommand implements Command {
@Override
public void executed(String[] args, CommandEvent e) {
if (e.getTextChannel().isNSFW()) {
String url = Request.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/anal/");
String url = Http.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/anal/");
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
.setImage(url)

View file

@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.utils.MessageEditor;
import com.bbn.hadder.utils.Request;
import com.bbn.hadder.utils.Http;
public class BDSMCommand implements Command {
@ -27,7 +27,7 @@ public class BDSMCommand implements Command {
public void executed(String[] args, CommandEvent e) {
if (e.getTextChannel().isNSFW()) {
String url = Request.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/img/bdsm_lewd");
String url = Http.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/img/bdsm_lewd");
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)

View file

@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.utils.MessageEditor;
import com.bbn.hadder.utils.Request;
import com.bbn.hadder.utils.Http;
public class BlowjobCommand implements Command {
@ -27,7 +27,7 @@ public class BlowjobCommand implements Command {
public void executed(String[] args, CommandEvent e) {
if (e.getTextChannel().isNSFW()) {
String url = Request.getNSFW("https://nekos.life/api/v2/img/blowjob");
String url = Http.getNSFW("https://nekos.life/api/v2/img/blowjob");
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)

View file

@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.utils.MessageEditor;
import com.bbn.hadder.utils.Request;
import com.bbn.hadder.utils.Http;
public class BoobsCommand implements Command {
@ -27,7 +27,7 @@ public class BoobsCommand implements Command {
public void executed(String[] args, CommandEvent e) {
if (e.getTextChannel().isNSFW()) {
String url = Request.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/tits/");
String url = Http.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/tits/");
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)

View file

@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.utils.MessageEditor;
import com.bbn.hadder.utils.Request;
import com.bbn.hadder.utils.Http;
public class CumCommand implements Command {
@ -27,7 +27,7 @@ public class CumCommand implements Command {
public void executed(String[] args, CommandEvent e) {
if (e.getTextChannel().isNSFW()) {
String url = Request.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/cum/");
String url = Http.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/cum/");
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)

View file

@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.utils.MessageEditor;
import com.bbn.hadder.utils.Request;
import com.bbn.hadder.utils.Http;
public class EroticCommand implements Command {
@ -27,7 +27,7 @@ public class EroticCommand implements Command {
public void executed(String[] args, CommandEvent e) {
if (e.getTextChannel().isNSFW()) {
String url = Request.getNSFW("https://nekos.life/api/v2/img/erok");
String url = Http.getNSFW("https://nekos.life/api/v2/img/erok");
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)

View file

@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.utils.MessageEditor;
import com.bbn.hadder.utils.Request;
import com.bbn.hadder.utils.Http;
public class FeetCommand implements Command {
@ -27,7 +27,7 @@ public class FeetCommand implements Command {
public void executed(String[] args, CommandEvent e) {
if (e.getTextChannel().isNSFW()) {
String url = Request.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/feet/");
String url = Http.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/feet/");
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)

View file

@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.utils.MessageEditor;
import com.bbn.hadder.utils.Request;
import com.bbn.hadder.utils.Http;
public class FingeringCommand implements Command {
@ -27,7 +27,7 @@ public class FingeringCommand implements Command {
public void executed(String[] args, CommandEvent e) {
if (e.getTextChannel().isNSFW()) {
String url = Request.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/pussy_wank/");
String url = Http.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/pussy_wank/");
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)

View file

@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.utils.MessageEditor;
import com.bbn.hadder.utils.Request;
import com.bbn.hadder.utils.Http;
public class LickingCommand implements Command {
@ -27,7 +27,7 @@ public class LickingCommand implements Command {
public void executed(String[] args, CommandEvent e) {
if (e.getTextChannel().isNSFW()) {
String url = Request.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/kuni/");
String url = Http.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/kuni/");
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)

View file

@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.utils.MessageEditor;
import com.bbn.hadder.utils.Request;
import com.bbn.hadder.utils.Http;
public class PornCommand implements Command {
@ -27,7 +27,7 @@ public class PornCommand implements Command {
public void executed(String[] args, CommandEvent e) {
if (e.getTextChannel().isNSFW()) {
String url = Request.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/classic/");
String url = Http.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/classic/");
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)

View file

@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.utils.MessageEditor;
import com.bbn.hadder.utils.Request;
import com.bbn.hadder.utils.Http;
public class PussyCommand implements Command {
@ -27,7 +27,7 @@ public class PussyCommand implements Command {
public void executed(String[] args, CommandEvent e) {
if (e.getTextChannel().isNSFW()) {
String url = Request.getNSFW("https://nekos.life/api/v2/img/pussy/");
String url = Http.getNSFW("https://nekos.life/api/v2/img/pussy/");
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)

View file

@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.utils.MessageEditor;
import com.bbn.hadder.utils.Request;
import com.bbn.hadder.utils.Http;
public class RandomPornCommand implements Command {
@ -27,7 +27,7 @@ public class RandomPornCommand implements Command {
public void executed(String[] args, CommandEvent e) {
if (e.getTextChannel().isNSFW()) {
String url = Request.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/all_tags/");
String url = Http.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/all_tags/");
e.getTextChannel()
.sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)

View file

@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.utils.MessageEditor;
import com.bbn.hadder.utils.Request;
import com.bbn.hadder.utils.Http;
public class SoloCommand implements Command {
@ -27,7 +27,7 @@ public class SoloCommand implements Command {
public void executed(String[] args, CommandEvent e) {
if (e.getTextChannel().isNSFW()) {
String url = Request.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/girls_solo/");
String url = Http.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/girls_solo/");
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)

View file

@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.utils.MessageEditor;
import com.bbn.hadder.utils.Request;
import com.bbn.hadder.utils.Http;
public class SpankCommand implements Command {
@ -27,7 +27,7 @@ public class SpankCommand implements Command {
public void executed(String[] args, CommandEvent e) {
if (e.getTextChannel().isNSFW()) {
String url = Request.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/spank/");
String url = Http.getNSFW("https://api.nekos.dev/api/v3/images/nsfw/gif/spank/");
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)

View file

@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.utils.MessageEditor;
import com.bbn.hadder.utils.Request;
import com.bbn.hadder.utils.Http;
public class TransCommand implements Command {
@ -27,7 +27,7 @@ public class TransCommand implements Command {
public void executed(String[] args, CommandEvent e) {
if (e.getTextChannel().isNSFW()) {
String url = Request.getNSFW("https://nekos.life/api/v2/img/trap/");
String url = Http.getNSFW("https://nekos.life/api/v2/img/trap/");
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)

View file

@ -40,7 +40,6 @@ public class BlacklistCommand implements Command {
switch (args[0].toLowerCase()) {
case "add":
if (args.length == 3) {
Member member = e.getMessage().getMentionedMembers().get(0);
String blacklisted = e.getRethinkUser().getBlacklisted();
List<String> commands = new ArrayList<>();
if (!"none".equals(blacklisted)) commands.addAll(Arrays.asList(blacklisted.split(",")));
@ -61,7 +60,6 @@ public class BlacklistCommand implements Command {
case "remove":
if (args.length == 3) {
Member member = e.getMessage().getMentionedMembers().get(0);
String blacklisted = e.getRethinkUser().getBlacklisted();
List<String> commands = new ArrayList<>();
if (!"none".equals(blacklisted)) commands.addAll(Arrays.asList(blacklisted.split(",")));

View file

@ -60,8 +60,7 @@ public class LanguageCommand implements Command {
e.getMessageEditor()
.getMessage(MessageEditor.MessageType.INFO, "commands.settings.language.success.title",
"", "commands.settings.language.success.description", language)
.build())
.queue();
.build()).queue();
e.getRethinkUser().push();
}

View file

@ -22,7 +22,7 @@ import org.json.JSONObject;
import java.io.IOException;
public class Request {
public class Http {
public static String getNSFW(String url) {