Update AVstorageBot.cs
This commit is contained in:
parent
e33fbeda6c
commit
88b822fc6f
1 changed files with 34 additions and 29 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using BetterSecondBotShared.Static;
|
||||
using BetterSecondBotShared.logs;
|
||||
using BetterSecondBotShared.Static;
|
||||
using Newtonsoft.Json;
|
||||
using OpenMetaverse;
|
||||
using RestSharp;
|
||||
|
|
@ -102,6 +103,8 @@ namespace BetterSecondBot.bottypes
|
|||
}
|
||||
|
||||
protected void ReTriggerUUIDtoName()
|
||||
{
|
||||
lock (PendingAvatarFinds_viauuid)
|
||||
{
|
||||
long now = helpers.UnixTimeNow();
|
||||
List<UUID> retrigger_key2name = new List<UUID>();
|
||||
|
|
@ -121,7 +124,7 @@ namespace BetterSecondBot.bottypes
|
|||
}
|
||||
}
|
||||
}
|
||||
if(retrigger_key2name.Count > 0)
|
||||
if (retrigger_key2name.Count > 0)
|
||||
{
|
||||
foreach (UUID avuuid in retrigger_key2name)
|
||||
{
|
||||
|
|
@ -134,6 +137,7 @@ namespace BetterSecondBot.bottypes
|
|||
PendingAvatarFinds_viauuid.Remove(avuuid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void ReTriggerNameToUUID()
|
||||
{
|
||||
|
|
@ -363,6 +367,7 @@ namespace BetterSecondBot.bottypes
|
|||
{
|
||||
if (PendingAvatarFinds_viauuid.ContainsKey(avatar_uuid) == false)
|
||||
{
|
||||
LogFormater.Info("Looking up: " + avatar_uuid);
|
||||
PendingAvatarFinds_viauuid.Add(avatar_uuid, new KeyValuePair<long, int>(helpers.UnixTimeNow(), 0));
|
||||
Client.Avatars.RequestAvatarName(avatar_uuid);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue