Skip to content

Commit

Permalink
Merge branch 'development' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
GospelBG authored Jul 28, 2024
2 parents 5bad3f6 + be9b194 commit 30c7dc0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions core/src/main/java/me/gosdev/chatpointsttv/ChatPointsTTV.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,12 @@ public String getConnectedUsername() {
return accountConnected ? user.getLogin() : "Not Linked";
}
public String getListenedChannel() {
if (config.getString("CHANNEL_USERNAME") == null | config.getString("CHANNEL_USERNAME").startsWith("MemorySection[path=")) return null; // Invalid string (probably left default "{YOUR CHANNEL}")) return null;
return config.getString("CHANNEL_USERNAME");
if (plugin != null) {
return client.getChat().getChannels().iterator().next(); // UNTESTED
} else {
if (plugin.config.getString("TWITCH_CHANNEL_USERNAME") == null | plugin.config.getString("TWITCH_CHANNEL_USERNAME").startsWith("MemorySection[path=")) return null; // Invalid string (probably left default "{YOUR CHANNEL}")) return null;
return plugin.config.getString("TWITCH_CHANNEL_USERNAME");
}
}

private static Utils utils;
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ STRINGS:
FOLLOWED_STRING: "has started following"
CHEERED_STRING: "cheered" #..."100 bits"
SUB_STRING: "has subscribed with" #..."Tier 1/2/3/Prime"
GIFT_STRING: "gifted" #..."5 subs"
GIFT_STRING: "gifted" #..."5 subs"

0 comments on commit 30c7dc0

Please sign in to comment.