public interface BotManager
| 限定符和类型 | 方法和说明 |
|---|---|
@Nullable Bot |
getBot(long id)
Get the bot with special id
|
List<Bot> |
getBots()
Get the list of bots
|
boolean |
login(Bot bot)
Login the bot
|
@NotNull Future<Bot> |
login(long id,
String password)
Login and get the bot with id and password
|
@NotNull Bot |
loginDirectly(long id,
String password)
Login and get the bot with id and password
This is a blocking method
|
boolean |
logout(@NotNull Bot bot)
Logout the bot
|
boolean |
relogin(@NotNull Bot bot)
Relogin the bot
|
Bot |
remove(long id)
Remove the bot
|
@NotNull @NotNull Future<Bot> login(long id, String password)
id - the id of the botpassword - the password of the bot@NotNull @NotNull Bot loginDirectly(long id, String password)
id - the id of the botpassword - the password of the botBotLoginException - if the bot login failedboolean login(Bot bot)
bot - the bot need to log inboolean logout(@NotNull
@NotNull Bot bot)
bot - the bot need to log out@Nullable @Nullable Bot getBot(long id)
id - the id of the botboolean relogin(@NotNull
@NotNull Bot bot)
bot - the bot need to reloginBot remove(long id)
id - the bot idCopyright © 2022. All rights reserved.