From 2a6ff7e0bd886591bf6ace60c6870498797fcf73 Mon Sep 17 00:00:00 2001 From: Sebastien Date: Sun, 16 Sep 2018 13:46:45 +0300 Subject: [PATCH] Change preference to setting and correct typo --- .../net/Broken/Commands/{Preference.java => Settings.java} | 4 ++-- src/main/java/net/Broken/Tools/EmbedMessageUtils.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/main/java/net/Broken/Commands/{Preference.java => Settings.java} (99%) diff --git a/src/main/java/net/Broken/Commands/Preference.java b/src/main/java/net/Broken/Commands/Settings.java similarity index 99% rename from src/main/java/net/Broken/Commands/Preference.java rename to src/main/java/net/Broken/Commands/Settings.java index 6a3233d..15968dc 100644 --- a/src/main/java/net/Broken/Commands/Preference.java +++ b/src/main/java/net/Broken/Commands/Settings.java @@ -22,13 +22,13 @@ import java.awt.*; import java.io.IOException; import java.util.List; -public class Preference implements Commande { +public class Settings implements Commande { private Logger logger = LogManager.getLogger(); private GuildPreferenceRepository guildPreferenceRepository; - public Preference() { + public Settings() { ApplicationContext context = SpringContext.getAppContext(); guildPreferenceRepository = (GuildPreferenceRepository) context.getBean("guildPreferenceRepository"); diff --git a/src/main/java/net/Broken/Tools/EmbedMessageUtils.java b/src/main/java/net/Broken/Tools/EmbedMessageUtils.java index d5e0938..1d8a385 100644 --- a/src/main/java/net/Broken/Tools/EmbedMessageUtils.java +++ b/src/main/java/net/Broken/Tools/EmbedMessageUtils.java @@ -118,7 +118,7 @@ public class EmbedMessageUtils { .addField("> Welcome", "Activate welcome message\n```java\n" + String.valueOf(guildPref.isWelcome()) + "```Edit: :unlock:\nKey: welcome", false) .addField("> Welcome chanel ID", "Chane id for welcome message\n```" + guildPref.getWelcomeChanelID() + "```Edit: :unlock:\nKey: welcome_chanel_id", false) .addField("> Welcome message", "Welcome message (@name for mention)\n```markdown\n" + guildPref.getWelcomeMessage() + "```Edit: :unlock:\nKey: welcome_message", false) - .addField("> Daily Madame", "Activate daily madame message\n```java\n" + String.valueOf(guildPref.isWelcome()) + "```Edit: :unlock:\nKey: daily_madame", false); + .addField("> Daily Madame", "Activate daily madame message\n```java\n" + String.valueOf(guildPref.isDailyMadame()) + "```Edit: :unlock:\nKey: daily_madame", false); return buildStandar(messageB); }