🤔
This commit is contained in:
parent
bd4fda3094
commit
fe965a5cf7
18 changed files with 32 additions and 35 deletions
|
|
@ -19,14 +19,14 @@ package com.bbn.hadder.commands.nsfw;
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
import com.bbn.hadder.utils.Request;
|
import com.bbn.hadder.utils.Http;
|
||||||
|
|
||||||
public class AnalCommand implements Command {
|
public class AnalCommand implements Command {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void executed(String[] args, CommandEvent e) {
|
public void executed(String[] args, CommandEvent e) {
|
||||||
if (e.getTextChannel().isNSFW()) {
|
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)
|
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
|
||||||
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
||||||
.setImage(url)
|
.setImage(url)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
import com.bbn.hadder.utils.Request;
|
import com.bbn.hadder.utils.Http;
|
||||||
|
|
||||||
public class BDSMCommand implements Command {
|
public class BDSMCommand implements Command {
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@ public class BDSMCommand implements Command {
|
||||||
public void executed(String[] args, CommandEvent e) {
|
public void executed(String[] args, CommandEvent e) {
|
||||||
if (e.getTextChannel().isNSFW()) {
|
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)
|
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
|
||||||
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
import com.bbn.hadder.utils.Request;
|
import com.bbn.hadder.utils.Http;
|
||||||
|
|
||||||
public class BlowjobCommand implements Command {
|
public class BlowjobCommand implements Command {
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@ public class BlowjobCommand implements Command {
|
||||||
public void executed(String[] args, CommandEvent e) {
|
public void executed(String[] args, CommandEvent e) {
|
||||||
if (e.getTextChannel().isNSFW()) {
|
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)
|
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
|
||||||
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
import com.bbn.hadder.utils.Request;
|
import com.bbn.hadder.utils.Http;
|
||||||
|
|
||||||
public class BoobsCommand implements Command {
|
public class BoobsCommand implements Command {
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@ public class BoobsCommand implements Command {
|
||||||
public void executed(String[] args, CommandEvent e) {
|
public void executed(String[] args, CommandEvent e) {
|
||||||
if (e.getTextChannel().isNSFW()) {
|
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)
|
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
|
||||||
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
import com.bbn.hadder.utils.Request;
|
import com.bbn.hadder.utils.Http;
|
||||||
|
|
||||||
public class CumCommand implements Command {
|
public class CumCommand implements Command {
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@ public class CumCommand implements Command {
|
||||||
public void executed(String[] args, CommandEvent e) {
|
public void executed(String[] args, CommandEvent e) {
|
||||||
if (e.getTextChannel().isNSFW()) {
|
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)
|
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
|
||||||
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
import com.bbn.hadder.utils.Request;
|
import com.bbn.hadder.utils.Http;
|
||||||
|
|
||||||
public class EroticCommand implements Command {
|
public class EroticCommand implements Command {
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@ public class EroticCommand implements Command {
|
||||||
public void executed(String[] args, CommandEvent e) {
|
public void executed(String[] args, CommandEvent e) {
|
||||||
if (e.getTextChannel().isNSFW()) {
|
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)
|
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
|
||||||
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
import com.bbn.hadder.utils.Request;
|
import com.bbn.hadder.utils.Http;
|
||||||
|
|
||||||
public class FeetCommand implements Command {
|
public class FeetCommand implements Command {
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@ public class FeetCommand implements Command {
|
||||||
public void executed(String[] args, CommandEvent e) {
|
public void executed(String[] args, CommandEvent e) {
|
||||||
if (e.getTextChannel().isNSFW()) {
|
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)
|
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
|
||||||
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
import com.bbn.hadder.utils.Request;
|
import com.bbn.hadder.utils.Http;
|
||||||
|
|
||||||
public class FingeringCommand implements Command {
|
public class FingeringCommand implements Command {
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@ public class FingeringCommand implements Command {
|
||||||
public void executed(String[] args, CommandEvent e) {
|
public void executed(String[] args, CommandEvent e) {
|
||||||
if (e.getTextChannel().isNSFW()) {
|
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)
|
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
|
||||||
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
import com.bbn.hadder.utils.Request;
|
import com.bbn.hadder.utils.Http;
|
||||||
|
|
||||||
public class LickingCommand implements Command {
|
public class LickingCommand implements Command {
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@ public class LickingCommand implements Command {
|
||||||
public void executed(String[] args, CommandEvent e) {
|
public void executed(String[] args, CommandEvent e) {
|
||||||
if (e.getTextChannel().isNSFW()) {
|
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)
|
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
|
||||||
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
import com.bbn.hadder.utils.Request;
|
import com.bbn.hadder.utils.Http;
|
||||||
|
|
||||||
public class PornCommand implements Command {
|
public class PornCommand implements Command {
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@ public class PornCommand implements Command {
|
||||||
public void executed(String[] args, CommandEvent e) {
|
public void executed(String[] args, CommandEvent e) {
|
||||||
if (e.getTextChannel().isNSFW()) {
|
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)
|
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
|
||||||
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
import com.bbn.hadder.utils.Request;
|
import com.bbn.hadder.utils.Http;
|
||||||
|
|
||||||
public class PussyCommand implements Command {
|
public class PussyCommand implements Command {
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@ public class PussyCommand implements Command {
|
||||||
public void executed(String[] args, CommandEvent e) {
|
public void executed(String[] args, CommandEvent e) {
|
||||||
if (e.getTextChannel().isNSFW()) {
|
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)
|
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
|
||||||
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
import com.bbn.hadder.utils.Request;
|
import com.bbn.hadder.utils.Http;
|
||||||
|
|
||||||
public class RandomPornCommand implements Command {
|
public class RandomPornCommand implements Command {
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@ public class RandomPornCommand implements Command {
|
||||||
public void executed(String[] args, CommandEvent e) {
|
public void executed(String[] args, CommandEvent e) {
|
||||||
if (e.getTextChannel().isNSFW()) {
|
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()
|
e.getTextChannel()
|
||||||
.sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
|
.sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
import com.bbn.hadder.utils.Request;
|
import com.bbn.hadder.utils.Http;
|
||||||
|
|
||||||
public class SoloCommand implements Command {
|
public class SoloCommand implements Command {
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@ public class SoloCommand implements Command {
|
||||||
public void executed(String[] args, CommandEvent e) {
|
public void executed(String[] args, CommandEvent e) {
|
||||||
if (e.getTextChannel().isNSFW()) {
|
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)
|
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
|
||||||
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
import com.bbn.hadder.utils.Request;
|
import com.bbn.hadder.utils.Http;
|
||||||
|
|
||||||
public class SpankCommand implements Command {
|
public class SpankCommand implements Command {
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@ public class SpankCommand implements Command {
|
||||||
public void executed(String[] args, CommandEvent e) {
|
public void executed(String[] args, CommandEvent e) {
|
||||||
if (e.getTextChannel().isNSFW()) {
|
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)
|
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
|
||||||
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ package com.bbn.hadder.commands.nsfw;
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
import com.bbn.hadder.utils.Request;
|
import com.bbn.hadder.utils.Http;
|
||||||
|
|
||||||
public class TransCommand implements Command {
|
public class TransCommand implements Command {
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@ public class TransCommand implements Command {
|
||||||
public void executed(String[] args, CommandEvent e) {
|
public void executed(String[] args, CommandEvent e) {
|
||||||
if (e.getTextChannel().isNSFW()) {
|
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)
|
e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO)
|
||||||
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
.setAuthor(e.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url)
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,6 @@ public class BlacklistCommand implements Command {
|
||||||
switch (args[0].toLowerCase()) {
|
switch (args[0].toLowerCase()) {
|
||||||
case "add":
|
case "add":
|
||||||
if (args.length == 3) {
|
if (args.length == 3) {
|
||||||
Member member = e.getMessage().getMentionedMembers().get(0);
|
|
||||||
String blacklisted = e.getRethinkUser().getBlacklisted();
|
String blacklisted = e.getRethinkUser().getBlacklisted();
|
||||||
List<String> commands = new ArrayList<>();
|
List<String> commands = new ArrayList<>();
|
||||||
if (!"none".equals(blacklisted)) commands.addAll(Arrays.asList(blacklisted.split(",")));
|
if (!"none".equals(blacklisted)) commands.addAll(Arrays.asList(blacklisted.split(",")));
|
||||||
|
|
@ -61,7 +60,6 @@ public class BlacklistCommand implements Command {
|
||||||
|
|
||||||
case "remove":
|
case "remove":
|
||||||
if (args.length == 3) {
|
if (args.length == 3) {
|
||||||
Member member = e.getMessage().getMentionedMembers().get(0);
|
|
||||||
String blacklisted = e.getRethinkUser().getBlacklisted();
|
String blacklisted = e.getRethinkUser().getBlacklisted();
|
||||||
List<String> commands = new ArrayList<>();
|
List<String> commands = new ArrayList<>();
|
||||||
if (!"none".equals(blacklisted)) commands.addAll(Arrays.asList(blacklisted.split(",")));
|
if (!"none".equals(blacklisted)) commands.addAll(Arrays.asList(blacklisted.split(",")));
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,7 @@ public class LanguageCommand implements Command {
|
||||||
e.getMessageEditor()
|
e.getMessageEditor()
|
||||||
.getMessage(MessageEditor.MessageType.INFO, "commands.settings.language.success.title",
|
.getMessage(MessageEditor.MessageType.INFO, "commands.settings.language.success.title",
|
||||||
"", "commands.settings.language.success.description", language)
|
"", "commands.settings.language.success.description", language)
|
||||||
.build())
|
.build()).queue();
|
||||||
.queue();
|
|
||||||
e.getRethinkUser().push();
|
e.getRethinkUser().push();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ import org.json.JSONObject;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
public class Request {
|
public class Http {
|
||||||
|
|
||||||
public static String getNSFW(String url) {
|
public static String getNSFW(String url) {
|
||||||
|
|
||||||
Loading…
Add table
Reference in a new issue