Class Main

java.lang.Object
com.github.mafelp.Main

public class Main
extends java.lang.Object
The main class that is being called on startup.
  • Field Summary

    Fields
    Modifier and Type Field Description
    static org.javacord.api.DiscordApi discordApi
    The main discord API that connects to the discord servers and initialises callbacks.
    private static org.apache.logging.log4j.Logger logger
    The logger used to log statements to the console and the log file.
  • Constructor Summary

    Constructors
    Constructor Description
    Main()  
  • Method Summary

    Modifier and Type Method Description
    static void logIn()
    The method that handles logging in of the discord bot.
    static void main​(java.lang.String[] args)
    The main Method called on startup.
    static void postStartup()
    The method that handles all the tasks that should be done after the bot has been logged in.
    static void preStartup()
    The method that handles all the tasks that should be executed before the bot is being logged in.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • logger

      private static final org.apache.logging.log4j.Logger logger
      The logger used to log statements to the console and the log file.
    • discordApi

      public static org.javacord.api.DiscordApi discordApi
      The main discord API that connects to the discord servers and initialises callbacks.
  • Constructor Details

    • Main

      public Main()
  • Method Details

    • main

      public static void main​(java.lang.String[] args)
      The main Method called on startup.
      Parameters:
      args - The additional arguments given to this program.
    • preStartup

      public static void preStartup()
      The method that handles all the tasks that should be executed before the bot is being logged in.
    • logIn

      public static void logIn()
      The method that handles logging in of the discord bot.
    • postStartup

      public static void postStartup()
      The method that handles all the tasks that should be done after the bot has been logged in.