Package top.focess.qq

Class FocessQQ


  • public class FocessQQ
    extends Object
    • Constructor Detail

      • FocessQQ

        public FocessQQ()
    • Method Detail

      • getOptions

        public static top.focess.util.option.Options getOptions()
      • getFriend

        public static @Nullable Friend getFriend​(long id)
        Get the Friend Mirai instance by its id
        Parameters:
        id - the friend id
        Returns:
        the Friend Mirai instance
        See Also:
        getBot(), Bot.getFriend(long)
      • getGroup

        public static @Nullable Group getGroup​(long id)
        Get the Group Mirai instance by its id
        Parameters:
        id - the group id
        Returns:
        the Group Mirai instance
        See Also:
        getBot(), Bot.getGroup(long)
      • isRunning

        public static boolean isRunning()
      • getLogger

        public static @NonNull FocessLogger getLogger()
      • getBot

        public static @NonNull Bot getBot()
      • getUsername

        public static long getUsername()
      • getAdministratorId

        public static @Nullable Long getAdministratorId()
      • hasAdministratorId

        public static boolean hasAdministratorId()
      • getBotManager

        public static @NonNull BotManager getBotManager()
      • getSocket

        public static @Nullable Socket getSocket()
      • getServerReceiver

        public static @Nullable ServerReceiver getServerReceiver()
      • getClientReceiver

        public static @Nullable ClientReceiver getClientReceiver()
      • getUdpSocket

        public static @Nullable Socket getUdpSocket()
      • getUdpServerReceiver

        public static @Nullable ServerReceiver getUdpServerReceiver()
      • getUdpServerMultiReceiver

        public static @Nullable ServerMultiReceiver getUdpServerMultiReceiver()
      • getVersion

        public static @NonNull top.focess.util.version.Version getVersion()
      • getMainPlugin

        public static Plugin getMainPlugin()
      • getPlugins

        public static @NonNull @UnmodifiableView List<Plugin> getPlugins()
        Get all the loaded plugins
        Returns:
        all the loaded plugins
        See Also:
        Plugin.getPlugins()
      • getPlugin

        public static @Nullable Plugin getPlugin​(String name)
        Get the plugin by its name
        Parameters:
        name - the plugin name
        Returns:
        the plugin
        See Also:
        Plugin.getPlugin(String)
      • getPlugin

        public static @Nullable Plugin getPlugin​(Class<? extends Plugin> cls)
        Get the plugin by its class
        Parameters:
        cls - the plugin class
        Returns:
        the plugin
        See Also:
        Plugin.getPlugin(Class)
      • getAdministrator

        public static @Nullable Friend getAdministrator()
        Get Administrator as a Friend
        Returns:
        the Administrator as a Friend
      • main

        public static void main​(String[] args)
      • exit

        public static void exit()
        Exit FocessQQ Framework.
      • getLangConfig

        public static LangConfig getLangConfig()