Skip to content

Commit

Permalink
NicoNico account isn't necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
a9lim committed Mar 14, 2024
1 parent 1eef2a7 commit acbf197
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 32 deletions.
10 changes: 0 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
<repository>
<id>m2.duncte123.dev</id>
<name>m2-duncte123</name>
<url>https://m2.duncte123.dev/releases</url>
</repository>
</repositories>

<dependencies>
Expand All @@ -38,11 +33,6 @@
<artifactId>lavaplayer</artifactId>
<version>2.1.1</version>
</dependency>
<dependency>
<groupId>com.dunctebot</groupId>
<artifactId>sourcemanagers</artifactId>
<version>1.9.0</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
Expand Down
11 changes: 1 addition & 10 deletions src/main/java/a9lim/raiko/BotConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> prefixes;
private boolean stayInChannel, songInGame, npImages,
model, valid;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -300,11 +298,4 @@ public String getYTPW() {
return ytpw;
}

public String getNNDEmail() {
return nndemail;
}

public String getNNDPW() {
return nndpw;
}
}
6 changes: 0 additions & 6 deletions src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 0 additions & 6 deletions src/test/java/a9lim/raiko/BTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
// }
}

}
Expand Down

0 comments on commit acbf197

Please sign in to comment.