Package top.focess.qq
Class FocessQQ
- java.lang.Object
-
- top.focess.qq.FocessQQ
-
public class FocessQQ extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFocessQQ.CommandLineThe CommandLine Tool Class can be used to exec command with customize executor, arguments and receiver.static classFocessQQ.MainPluginThe MainPlugin Plugin is a core plugin in Bot.
-
Constructor Summary
Constructors Constructor Description FocessQQ()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidexit()Exit Botstatic net.mamoe.mirai.contact.FriendgetAdministrator()Get Administrator as a Friendstatic longgetAdministratorId()static net.mamoe.mirai.contact.FriendgetAuthor()Deprecated.static longgetAuthorId()Deprecated.static BotgetBot()static BotManagergetBotManager()static ClientReceivergetClientReceiver()static net.mamoe.mirai.contact.FriendgetFriend(long id)Get the Friend Mirai instance by its idstatic net.mamoe.mirai.contact.GroupgetGroup(long id)Get the Group Mirai instance by its idstatic LangConfiggetLangConfig()static FocessLoggergetLogger()static PlugingetMainPlugin()static PlugingetPlugin(Class<? extends Plugin> cls)Get the plugin by its classstatic PlugingetPlugin(String name)Get the plugin by its namestatic List<Plugin>getPlugins()Get all the loaded pluginsstatic ServerReceivergetServerReceiver()static SocketgetSocket()static ServerMultiReceivergetUdpServerMultiReceiver()static ServerReceivergetUdpServerReceiver()static SocketgetUdpSocket()static longgetUsername()static VersiongetVersion()static booleanisRunning()static voidmain(String[] args)
-
-
-
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()
-
getAuthorId
@Deprecated public static long getAuthorId()
Deprecated.
-
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
-
getAuthor
@Deprecated @NotNull public static net.mamoe.mirai.contact.Friend getAuthor()
Deprecated.get Author as a Friend- Returns:
- Author as a Friend
-
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()
-
-