Package top.focess.qq

Class FocessQQ


  • public class FocessQQ
    extends Object
    • Constructor Detail

      • FocessQQ

        public FocessQQ()
    • Method Detail

      • getFriend

        @Nullable
        public static net.mamoe.mirai.contact.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

        @Nullable
        public static net.mamoe.mirai.contact.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

        @NotNull
        public static FocessLogger getLogger()
      • getBot

        @NotNull
        public static Bot getBot()
      • getUsername

        public static long getUsername()
      • getAdministratorId

        public static long getAdministratorId()
      • getBotManager

        public static BotManager getBotManager()
      • getSocket

        @Nullable
        public static Socket getSocket()
      • getServerReceiver

        @Nullable
        public static ServerReceiver getServerReceiver()
      • getClientReceiver

        @Nullable
        public static ClientReceiver getClientReceiver()
      • getUdpSocket

        @Nullable
        public static Socket getUdpSocket()
      • getUdpServerReceiver

        @Nullable
        public static ServerReceiver getUdpServerReceiver()
      • getUdpServerMultiReceiver

        @Nullable
        public static ServerMultiReceiver getUdpServerMultiReceiver()
      • getVersion

        public static Version getVersion()
      • getMainPlugin

        public static Plugin getMainPlugin()
      • getPlugins

        public static List<Plugin> getPlugins()
        Get all the loaded plugins
        Returns:
        all the loaded plugins
      • getPlugin

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

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

        @Nullable
        public static net.mamoe.mirai.contact.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 Bot
      • getLangConfig

        public static LangConfig getLangConfig()