Update EventsBot.cs

This commit is contained in:
Madpeterz 2021-03-24 02:25:58 +00:00
parent 5720c773b4
commit 4c7f7a76f4

View file

@ -143,6 +143,7 @@ namespace BetterSecondBot.bottypes
add { lock (_ChangeSimLock) { _ChangeSim += value; } }
remove { lock (_ChangeSimLock) { _ChangeSim -= value; } }
}
public event EventHandler<AlertMessageEventArgs> AlertMessage
{
add { lock (_AlertMessageLock) { _AlertMessage += value; } }
@ -378,6 +379,8 @@ namespace BetterSecondBot.bottypes
Client.Self.ScriptQuestion += PermissionsHandler;
Client.Friends.FriendshipResponse += FriendshipResponse;
Client.Friends.FriendNames += AvatarFriendNames;
Client.Self.AlertMessage += AlertEvent;
Client.Network.SimChanged += ChangeSim;
delay_group_fetch = helpers.UnixTimeNow() + 10;
}
base.AfterBotLoginHandler();