Skip to content

Commit 1d3108d

Browse files
committed
Fix OwlBotToken not being properly detected,
1 parent 315661f commit 1d3108d

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

src/commander/java/com/mcmoddev/mmdbot/commander/config/Configuration.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,15 @@ public String guild() {
9595
public List<String> getPrefixes() {
9696
return prefixes;
9797
}
98+
99+
@Required
100+
@Setting("forge_commands_guild_only")
101+
@Comment("If true, commands will be forced to register to the main guild.")
102+
private boolean forceCommandsGuildOnly;
103+
104+
public boolean areCommandsForcedGuildOnly() {
105+
return forceCommandsGuildOnly;
106+
}
98107
}
99108

100109
@ConfigSerializable

src/core/java/com/mcmoddev/mmdbot/core/util/dictionary/DictionaryUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private static void assignLastCode(HttpResponse<String> response) {
138138
}
139139

140140
public static boolean hasToken() {
141-
return token.isBlank();
141+
return !token.isBlank();
142142
}
143143

144144
public static final class DictionaryException extends Exception {

0 commit comments

Comments
 (0)