Add UnLoadBot to ChatBot API (#1164)

Add UnloadBot
Add BotList
Update VkMessager
Remove debug info
This commit is contained in:
Рома Данилов 2020-08-01 17:24:17 +05:00 committed by GitHub
parent 55f8988bbc
commit 712875251e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View file

@ -35,6 +35,8 @@ namespace MinecraftClient
public void SetHandler(McClient handler) { this._handler = handler; }
protected void SetMaster(ChatBot master) { this.master = master; }
protected void LoadBot(ChatBot bot) { Handler.BotUnLoad(bot); Handler.BotLoad(bot); }
protected List<ChatBot> GetLoadedChatBots() { return Handler.GetLoadedChatBots(); }
protected void UnLoadBot(ChatBot bot) { Handler.BotUnLoad(bot); }
private McClient _handler = null;
private ChatBot master = null;
private List<string> registeredPluginChannels = new List<String>();