Skip to content

Commit

Permalink
Merge pull request #570 from beanbeanjuice/554-commands-run-after-res…
Browse files Browse the repository at this point in the history
…tart

Fixed Commands Run After Restart
  • Loading branch information
beanbeanjuice committed May 5, 2023
2 parents 75b6e51 + f3554bb commit 80aaf07
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private MessageEmbed messageEmbed(@NotNull Long botPing, @NotNull Long gatewayPi
.append("**OS Memory Usage** - `").append(systemMemoryUsage).append("` mb / `").append(systemMemoryTotal).append("` mb\n")
.append("**Bot Memory Usage** - `").append(dedicatedMemoryUsage).append("` mb / `").append(dedicatedMemoryTotal).append("` mb\n")
.append("**Bot Uptime** - `").append(Helper.millisToDays(ManagementFactory.getRuntimeMXBean().getUptime())).append("`\n")
.append("**Commands Run** - `").append(Bot.commandsRun).append("`\n")
.append("**Commands Run (After Restart)** - `").append(Bot.commandsRun).append("`\n")
.append("Hello there! How are you? Would you like to order some coffee?");

embedBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private MessageEmbed statsEmbed() {
.setAuthor("Bot Statistics", null, Bot.getBot().getSelfUser().getAvatarUrl())
.addField("<a:cafeBot:841945919926173707> Total Text Channels", "```" + Helper.getTotalChannels() + "```", true)
.addField("<:smartPeepo:1000248538376196280> Total Servers", "```" + Helper.getTotalServers() + "```", true)
.addField("⚙ Total Commands Run", "```" + Bot.commandsRun + "```", true)
.addField("⚙ Commands Run (After Restart)", "```" + Bot.commandsRun + "```", true)
.addField("<a:catpats:950514533875720232> Total Users", "```" + Helper.getTotalUsers() + "```", true)
.setFooter("If you are enjoying this bot, please consider using /bot-upvote!")
.build();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/beanbeanjuice/utility/helper/Helper.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private static MessageEmbed getUpdateEmbed(@NotNull Long botPing, @NotNull Long
.append("**__OS Memory Usage__** - `").append(systemMemoryUsage).append("` mb / `").append(systemMemoryTotal).append("` mb\n")
.append("**__Bot Memory Usage__** - `").append(dedicatedMemoryUsage).append("` mb / `").append(dedicatedMemoryTotal).append("` mb\n")
.append("**__Bot Uptime__** - `").append(formatTimeDays(ManagementFactory.getRuntimeMXBean().getUptime())).append("`\n")
.append("**__Commands Run__** - `").append(Bot.commandsRun).append("`\n");
.append("**__Commands Run (After Restart)__** - `").append(Bot.commandsRun).append("`\n");

embedBuilder.setDescription(descriptionBuilder.toString());
embedBuilder.setThumbnail(Bot.DISCORD_AVATAR_URL);
Expand Down

0 comments on commit 80aaf07

Please sign in to comment.