Class Main

java.lang.Object
org.prithvidiamond1.Main

@SpringBootApplication public class Main extends Object
The main class of the Discord bot
  • Field Details

    • botAccentColor

      public static Color botAccentColor
      The bot's accent color (currently a shade of cyan)
    • defaultGuildPrefix

      public static String defaultGuildPrefix
      The default guild prefix for bot guild commands
    • botIconURL

      public static String botIconURL
      String containing a URL to the bot's icon image
    • audioSources

      public static String[] audioSources
      Supported Audio Sources for voice channel audio playback
    • youtubeApiKey

      public static String youtubeApiKey
      The YouTube API key
    • logger

      public static org.slf4j.Logger logger
      The main logger object
    • discordServerRepository

      public static DiscordServerRepository discordServerRepository
      The backend repository object for storing server preferences
  • Constructor Details

    • Main

      public Main(DiscordServerRepository discordServerRepo)
      Constructor for the Main class
      Parameters:
      discordServerRepo - the backend MongoDB repository used for storing Discord server preferences
  • Method Details

    • discordApi

      @Bean @ConfigurationProperties("discord-api") public org.javacord.api.DiscordApi discordApi()
      Method that runs the Discord bot instance
      Returns:
      the Discord API instance used by the bot which is then dependency injected using SpringBoot
    • main

      public static void main(String[] args)
      The start point for the Discord bot application
      Parameters:
      args - command line arguments