Skip to content

Commit

Permalink
Fixing Version!!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
yaansz committed Oct 14, 2024
1 parent cf7fad8 commit 17db33f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/com/softawii/capivara/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ public class Main {
public static void main(String[] args) {
ConfigurableApplicationContext context = SpringApplication.run(Main.class, args);
JDA jda = context.getBean(JDA.class);
// BuildProperties buildProperties = context.getBean(BuildProperties.class);
String version = "unknown";
jda.getPresence().setPresence(Activity.of(Activity.ActivityType.PLAYING, version), true);
LOGGER.info(version + " Bot is ready as " + jda.getSelfUser().getName());
BuildProperties buildProperties = context.getBean(BuildProperties.class);
jda.getPresence().setPresence(Activity.of(Activity.ActivityType.PLAYING, buildProperties.getVersion()), true);
LOGGER.info(buildProperties.getVersion() + " Bot is ready as " + jda.getSelfUser().getName());
}
}

0 comments on commit 17db33f

Please sign in to comment.