add reload cache
This commit is contained in:
parent
c6704bd0cc
commit
167b4da229
1 changed files with 5 additions and 1 deletions
|
@ -268,6 +268,11 @@ namespace Bot
|
||||||
|
|
||||||
prompter.Start();
|
prompter.Start();
|
||||||
CM = new CommandManager(BotSession.Instance.Logger, client, MH.callbacks);
|
CM = new CommandManager(BotSession.Instance.Logger, client, MH.callbacks);
|
||||||
|
|
||||||
|
GroupsCache = new Dictionary<UUID, Group>();
|
||||||
|
ReloadGroupsCache();
|
||||||
|
|
||||||
|
|
||||||
while (g_iIsRunning)
|
while (g_iIsRunning)
|
||||||
{
|
{
|
||||||
string consoleCmd = "N/A";
|
string consoleCmd = "N/A";
|
||||||
|
@ -814,7 +819,6 @@ namespace Bot
|
||||||
}
|
}
|
||||||
private static void ReloadGroupsCache()
|
private static void ReloadGroupsCache()
|
||||||
{
|
{
|
||||||
GroupsCache = new Dictionary<UUID, Group>();
|
|
||||||
client.Groups.CurrentGroups += Groups_CurrentGroups;
|
client.Groups.CurrentGroups += Groups_CurrentGroups;
|
||||||
client.Groups.RequestCurrentGroups();
|
client.Groups.RequestCurrentGroups();
|
||||||
GroupsEvent.WaitOne(10000, false);
|
GroupsEvent.WaitOne(10000, false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue