From acbf19762821798e88734cdd1841be03e30f18bd Mon Sep 17 00:00:00 2001 From: southernscreamer32 Date: Thu, 14 Mar 2024 01:19:29 -0700 Subject: [PATCH] NicoNico account isn't necessary --- pom.xml | 10 ---------- src/main/java/a9lim/raiko/BotConfig.java | 11 +---------- src/main/resources/reference.conf | 6 ------ src/test/java/a9lim/raiko/BTest.java | 6 ------ 4 files changed, 1 insertion(+), 32 deletions(-) diff --git a/pom.xml b/pom.xml index 35f1e9ce1..b1bb2200b 100644 --- a/pom.xml +++ b/pom.xml @@ -20,11 +20,6 @@ always - - m2.duncte123.dev - m2-duncte123 - https://m2.duncte123.dev/releases - @@ -38,11 +33,6 @@ lavaplayer 2.1.1 - - com.dunctebot - sourcemanagers - 1.9.0 - org.json json diff --git a/src/main/java/a9lim/raiko/BotConfig.java b/src/main/java/a9lim/raiko/BotConfig.java index 09fe8c95f..9f4f40807 100644 --- a/src/main/java/a9lim/raiko/BotConfig.java +++ b/src/main/java/a9lim/raiko/BotConfig.java @@ -43,7 +43,7 @@ public class BotConfig implements AliasSource { private Path path; private String token, playlistsFolder, successEmoji, warningEmoji, errorEmoji, loadingEmoji, searchingEmoji, - cgpttoken, preprompt, ytemail, ytpw, nndemail, nndpw; + cgpttoken, preprompt, ytemail, ytpw; private List prefixes; private boolean stayInChannel, songInGame, npImages, model, valid; @@ -93,8 +93,6 @@ public void load() { ytemail = noneblank(config.getString("ytemail")); ytpw = noneblank(config.getString("ytpw")); - nndemail = noneblank(config.getString("nndemail")); - nndpw = noneblank(config.getString("nndpw")); // we may need to write a new config file boolean write = false; @@ -300,11 +298,4 @@ public String getYTPW() { return ytpw; } - public String getNNDEmail() { - return nndemail; - } - - public String getNNDPW() { - return nndpw; - } } diff --git a/src/main/resources/reference.conf b/src/main/resources/reference.conf index 0c50f7c12..e23c0a922 100644 --- a/src/main/resources/reference.conf +++ b/src/main/resources/reference.conf @@ -48,12 +48,6 @@ ytemail = "NONE" ytpw = "NONE" -// This is the optional email and password used by the bot to sign in to niconico - -nndemail = "NONE" -nndpw = "NONE" - - // This is the bot's prefix used to signify commands // If you use !!, !!play will make it play // If left empty, the prefix will be a mention of the bot (@Botname play) diff --git a/src/test/java/a9lim/raiko/BTest.java b/src/test/java/a9lim/raiko/BTest.java index 08fa93560..41ac48432 100644 --- a/src/test/java/a9lim/raiko/BTest.java +++ b/src/test/java/a9lim/raiko/BTest.java @@ -55,12 +55,6 @@ public static void main(String[] args) throws IOException { System.out.println(new String(response.getEntity().getContent().readAllBytes())); - -// Header location = response.getFirstHeader("Location"); -// -// if (location == null || location.getValue().contains("message=")) { -// throw new FriendlyException("Login details for NicoNico are invalid.", COMMON, null); -// } } }