-
- All Implemented Interfaces:
-
love.forte.simbot.bot.BotDestroyer
,love.forte.simbot.bot.BotManager
,love.forte.simbot.bot.BotRegistrar
@ComponentBeans(value = "miraiBotManager") public final class MiraiBotManager implements BotManager
mirai组件下通过 Mirai-Bot 进行Bot管理的 BotManager.
-
-
Field Summary
Fields Modifier and Type Field Description private final Bot
defaultBot
private final List<Bot>
bots
-
Constructor Summary
Constructors Constructor Description MiraiBotManager(BotVerifier verifier, MsgSenderFactories msgSenderFactories, DefaultMsgSenderFactories defSenderFactories, HttpTemplate httpTemplate)
-
Method Summary
Modifier and Type Method Description Bot
getBot(String id)
Bot
getBotOrNull(String id)
Bot
registerBot(BotVerifyInfo botRegisterInfo)
Unit
destroyBot(String code)
刪除一个bot Bot
getDefaultBot()
List<Bot>
getBots()
-
Methods inherited from class love.forte.simbot.component.mirai.configuration.MiraiBotManager
getBot, getBot, getBotOrNull, getBotOrNull, isEmpty
-
Methods inherited from class love.forte.simbot.bot.BotRegistrar
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MiraiBotManager
MiraiBotManager(BotVerifier verifier, MsgSenderFactories msgSenderFactories, DefaultMsgSenderFactories defSenderFactories, HttpTemplate httpTemplate)
-
-
Method Detail
-
getBotOrNull
Bot getBotOrNull(String id)
-
registerBot
Bot registerBot(BotVerifyInfo botRegisterInfo)
-
destroyBot
Unit destroyBot(String code)
刪除一个bot
-
getDefaultBot
Bot getDefaultBot()
-
-
-
-