private void OnFriendAdded(SteamFriends.FriendAddedCallback callback) { // TODO: Does this only trigger once they have been added? var userID = callback.SteamID; if (GetPlayerLevel(userID) >= 10) { // Add user if level 10+ kraxbot.AddFriend(userID); kraxbot.InviteUserToGroup(userID, new SteamID(103582791438821937)); kraxbot.SendChatMessage(userID, "Hi, I'm KraxBot! Nice to meet you :3"); kraxbot.SendChatMessage(userID, "You should add my creator if you haven't already, https://steamcommunity.com/id/kraxarn"); kraxbot.SendChatMessage(userID, "You should also consider joining the Steam group if you want news and updates about me!"); kraxbot.SendKraxMessage($"{callback.PersonaName} is now my friend"); RegisterUserEvent(userID, UserEventType.Added); } else { // Othewise, ignore invite // TODO: Post comment kraxbot.RemoveFriend(userID); } }