Skip to content

Commit

Permalink
mb fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KotMilkMeoWtwo committed Jul 10, 2022
1 parent e931433 commit 3503e03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/ru/meowland/discord/Bot.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ public class Bot extends ListenerAdapter {
}
}

JDABuilder builder = JDABuilder.createDefault(Config.get("bot_token")).addEventListeners(new Bot());
//JDABuilder builder = JDABuilder.createDefault(Config.get("bot_token")).addEventListeners(new Bot());

public void bot() throws LoginException {
if(Config.get("bot_enable").equals("true")){
Log.info("Meowland: bot started");

builder.setActivity(Activity.watching(String.valueOf( (Runtime.getRuntime().maxMemory() - Runtime.getRuntime().freeMemory())/1024/1024 + "Mb/" + Runtime.getRuntime().maxMemory()/1024/1024 + "Mb")));
builder.build();
//builder.setActivity(Activity.watching(String.valueOf( (Runtime.getRuntime().maxMemory() - Runtime.getRuntime().freeMemory())/1024/1024 + "Mb/" + Runtime.getRuntime().maxMemory()/1024/1024 + "Mb")));
//builder.build();
Events.on(EventType.PlayerConnect.class, event ->{
Player player = event.player;
GuildMessageChannel ch = jda.getChannelById(GuildMessageChannel.class, Config.get("channel_id"));
Expand Down

0 comments on commit 3503e03

Please sign in to comment.