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 booleanCheck if the bot should be able to send the recordings in chat.static StringGet the configured Advertisement.static StringGet the configured Discord Bot name.static StringGet the configured Discord Bot owner.static StringGet the configured default language.static StringGet the configured default prefix.static longGet the configured Discord Bot Feedback channel id.static StringGet the configured Github repository.static StringGet the configured Discord Bot invite.static StringGet the configured Recording Url.static StringGet the configured Discord Bot status.static StringGet the configured Discord Bot support server.static StringGet the configured Font for the text.static StringGet the configured Twitch Auth Url.static StringGet the configured Webinterface Url.static StringGet the configured Discord Bot Website.static booleanisDebug()Check if the bot should run in debug mode.static booleanisModuleActive(String moduleName) Check if a module is activated in the config.static booleanCheck if the module notification should be hidden.static booleanCheck 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.
-