Update EventsBot.cs
This commit is contained in:
parent
5720c773b4
commit
4c7f7a76f4
1 changed files with 514 additions and 511 deletions
|
|
@ -143,6 +143,7 @@ namespace BetterSecondBot.bottypes
|
||||||
add { lock (_ChangeSimLock) { _ChangeSim += value; } }
|
add { lock (_ChangeSimLock) { _ChangeSim += value; } }
|
||||||
remove { lock (_ChangeSimLock) { _ChangeSim -= value; } }
|
remove { lock (_ChangeSimLock) { _ChangeSim -= value; } }
|
||||||
}
|
}
|
||||||
|
|
||||||
public event EventHandler<AlertMessageEventArgs> AlertMessage
|
public event EventHandler<AlertMessageEventArgs> AlertMessage
|
||||||
{
|
{
|
||||||
add { lock (_AlertMessageLock) { _AlertMessage += value; } }
|
add { lock (_AlertMessageLock) { _AlertMessage += value; } }
|
||||||
|
|
@ -378,6 +379,8 @@ namespace BetterSecondBot.bottypes
|
||||||
Client.Self.ScriptQuestion += PermissionsHandler;
|
Client.Self.ScriptQuestion += PermissionsHandler;
|
||||||
Client.Friends.FriendshipResponse += FriendshipResponse;
|
Client.Friends.FriendshipResponse += FriendshipResponse;
|
||||||
Client.Friends.FriendNames += AvatarFriendNames;
|
Client.Friends.FriendNames += AvatarFriendNames;
|
||||||
|
Client.Self.AlertMessage += AlertEvent;
|
||||||
|
Client.Network.SimChanged += ChangeSim;
|
||||||
delay_group_fetch = helpers.UnixTimeNow() + 10;
|
delay_group_fetch = helpers.UnixTimeNow() + 10;
|
||||||
}
|
}
|
||||||
base.AfterBotLoginHandler();
|
base.AfterBotLoginHandler();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue