Package de.presti.ree6.utils.data
Class Data
java.lang.Object
de.presti.ree6.utils.data.Data
Utility class to save long term used Data.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Check if the bot should be able to send the recordings in chat.static String
Get the configured Advertisement.static String
Get the configured Discord Bot name.static String
Get the configured Discord Bot owner.static String
Get the configured default language.static String
Get the configured default prefix.static long
Get the configured Discord Bot Feedback channel id.static String
Get the configured Github repository.static String
Get the configured Discord Bot invite.static String
Get the configured Recording Url.static String
Get the configured Discord Bot status.static String
Get the configured Discord Bot support server.static String
Get the configured Font for the text.static String
Get the configured Twitch Auth Url.static String
Get the configured Webinterface Url.static String
Get the configured Discord Bot Website.static boolean
isDebug()
Check if the bot should run in debug mode.static boolean
isModuleActive
(String moduleName) Check if a module is activated in the config.static boolean
Check if the module notification should be hidden.static boolean
Check if the bot should use LavaLink.
-
Method Details
-
getStatus
Get the configured Discord Bot status.- Returns:
- the Discord Bot status from the config.
-
getWebsite
Get the configured Discord Bot Website.- Returns:
- the Discord Bot Website from the config.
-
getGithub
Get the configured Github repository.- Returns:
- the Github repository from the config.
-
getInvite
Get the configured Discord Bot invite.- Returns:
- the Discord Bot invite from the config.
-
getSupport
Get the configured Discord Bot support server.- Returns:
- the Discord Bot support server from the config.
-
getFeedbackChannel
public static long getFeedbackChannel()Get the configured Discord Bot Feedback channel id.- Returns:
- the Discord Bot Feedback channel id from the config.
-
getAdvertisement
Get the configured Advertisement.- Returns:
- the Advertisement from the config.
-
getBotOwner
Get the configured Discord Bot owner.- Returns:
- the Discord Bot owner from the config.
-
getBotName
Get the configured Discord Bot name.- Returns:
- the Discord Bot name from the config.
-
isModuleActive
Check if a module is activated in the config.- Parameters:
moduleName
- Name of the module.- Returns:
- if the module is activated.
-
shouldHideModuleNotification
public static boolean shouldHideModuleNotification()Check if the module notification should be hidden.- Returns:
- if the module notification should be hidden.
-
allowRecordingInChat
public static boolean allowRecordingInChat()Check if the bot should be able to send the recordings in chat.- Returns:
- if the bot is allowed to send the recordings in chat.
-
getDefaultLanguage
Get the configured default language.- Returns:
- the default language from the config.
-
getTwitchAuth
Get the configured Twitch Auth Url.- Returns:
- the Twitch Auth Url from the config.
-
getRecordingUrl
Get the configured Recording Url.- Returns:
- the Recording Url from the config.
-
getWebinterface
Get the configured Webinterface Url.- Returns:
- the Webinterface Url from the config.
-
getDefaultPrefix
Get the configured default prefix.- Returns:
- the default prefix from the config.
-
getTextFont
Get the configured Font for the text.- Returns:
- the Font for the text from the config.
-
isDebug
public static boolean isDebug()Check if the bot should run in debug mode.- Returns:
- if the bot should run in debug mode.
-
shouldUseLavaLink
public static boolean shouldUseLavaLink()Check if the bot should use LavaLink.- Returns:
- if the bot should use LavaLink.
-