| 限定符和类型 | 方法和说明 |
|---|---|
static @NotNull Bot |
Main.getBot() |
| 限定符和类型 | 方法和说明 |
|---|---|
@Nullable Bot |
BotManager.getBot(long id)
Get the bot with special id
|
@NotNull Bot |
BotManager.loginDirectly(long id,
String password)
Login and get the bot with id and password
This is a blocking method
|
Bot |
BotManager.remove(long id)
Remove the bot
|
| 限定符和类型 | 方法和说明 |
|---|---|
List<Bot> |
BotManager.getBots()
Get the list of bots
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
BotManager.login(Bot bot)
Login the bot
|
boolean |
BotManager.logout(@NotNull Bot bot)
Logout the bot
|
boolean |
BotManager.relogin(@NotNull Bot bot)
Relogin the bot
|
| 限定符和类型 | 方法和说明 |
|---|---|
@Nullable Bot |
CommandSender.getBot()
Get the bot
|
| 限定符和类型 | 方法和说明 |
|---|---|
Bot |
BotEvent.getBot() |
| 构造器和说明 |
|---|
BotEvent(Bot bot)
Constructs a BotEvent
|
BotLoginEvent(Bot bot)
Constructs a BotLoginEvent
|
BotLogoutEvent(Bot bot)
Constructs a BotLogoutEvent
|
BotReloginEvent(Bot bot)
Constructs a BotReloginEvent
|
FriendInputStatusEvent(Bot bot,
net.mamoe.mirai.contact.Friend friend,
boolean input)
Constructs a FriendInputStatusEvent
|
| 构造器和说明 |
|---|
ChatEvent(Bot bot,
net.mamoe.mirai.message.data.MessageChain message)
Constructs a ChatEvent
|
FriendChatEvent(Bot bot,
net.mamoe.mirai.contact.Friend friend,
net.mamoe.mirai.message.data.MessageChain message,
net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromFriend source)
Constructs a FriendChatEvent
|
GroupChatEvent(Bot bot,
net.mamoe.mirai.contact.Member member,
net.mamoe.mirai.message.data.MessageChain message,
net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromGroup source)
Constructs a GroupChatEvent
|
StrangerChatEvent(Bot bot,
net.mamoe.mirai.message.data.MessageChain message,
net.mamoe.mirai.contact.Stranger stranger,
net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromStranger source)
Constructs a ChatEvent
|
| 构造器和说明 |
|---|
FriendMessageEvent(Bot bot,
net.mamoe.mirai.contact.Friend friend,
net.mamoe.mirai.message.data.MessageChain message)
Constructs a FriendMessageEvent
|
GroupMessageEvent(Bot bot,
net.mamoe.mirai.contact.Member member,
net.mamoe.mirai.message.data.MessageChain message,
net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromGroup source)
Constructs a GroupMessageEvent
|
MessageEvent(Bot bot,
net.mamoe.mirai.message.data.MessageChain message)
Constructs a MessageEvent
|
StrangerMessageEvent(Bot bot,
net.mamoe.mirai.message.data.MessageChain message,
net.mamoe.mirai.contact.Stranger stranger)
Constructs a StrangerMessageEvent
|
| 构造器和说明 |
|---|
FriendRecallEvent(Bot bot,
net.mamoe.mirai.contact.Friend friend,
int[] messageIds)
Constructs a FriendRecallEvent
|
GroupRecallEvent(Bot bot,
net.mamoe.mirai.contact.Member member,
int[] messageIds,
net.mamoe.mirai.contact.Member operator)
Constructs a GroupRecallEvent
|
| 构造器和说明 |
|---|
FriendRequestEvent(Bot bot,
long id,
String nick,
net.mamoe.mirai.contact.Group group,
String message)
Constructs a FriendRequestEvent
|
GroupRequestEvent(Bot bot,
long id,
String name,
net.mamoe.mirai.contact.Friend invitor)
Constructs a GroupRecallEvent
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
SimpleBot |
| 限定符和类型 | 方法和说明 |
|---|---|
@Nullable Bot |
SimpleBotManager.getBot(long username) |
@NotNull Bot |
SimpleBotManager.loginDirectly(long id,
String password) |
Bot |
SimpleBotManager.remove(long id) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Bot> |
SimpleBotManager.getBots() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
SimpleBotManager.login(Bot bot) |
boolean |
SimpleBotManager.logout(@NotNull Bot bot) |
boolean |
SimpleBotManager.relogin(@NotNull Bot bot) |
Copyright © 2022. All rights reserved.