Skip to content

Commit

Permalink
Fixed command aliases not working
Browse files Browse the repository at this point in the history
  • Loading branch information
raynichc committed Apr 5, 2020
1 parent 9b7f8af commit 33aa807
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/ibdiscord/IBai.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@ public static void main(String[] args) throws JavaVersionException {
*/
private void init() {
config = new LocalConfig();
commandRegistry = new CommandRegistry();
for(CommandRegistrar registrar : CommandRegistrar.KNOWN) {
registrar.register(commandRegistry);
}
DataContainer.INSTANCE.connect();
try {
LocaliserHandler.INSTANCE.initialize(new File(config.getLangBase()));
} catch(IOException | LocaleException exception) {
exception.printStackTrace();
return;
}
commandRegistry = new CommandRegistry();
for(CommandRegistrar registrar : CommandRegistrar.KNOWN) {
registrar.register(commandRegistry);
}
try {
jda = new JDABuilder()
.setToken(config.getBotToken())
Expand Down

0 comments on commit 33aa807

Please sign in to comment.