static void OnFriendAdded(SteamFriends.FriendAddedCallback callback) { if (steamFriends.GetFriendRelationship(callback.SteamID) == EFriendRelationship.Friend) { steamFriends.SendChatMessage(callback.SteamID, EChatEntryType.ChatMsg, ChatMessages.WelcomeMsg); } }
private void OnFriendAdded(SteamFriends.FriendAddedCallback callback) { Console.WriteLine($"{callback.PersonaName} is now a friend"); var sender = callback.SteamID; SteamFriends.SendChatMessage(sender, EChatEntryType.ChatMsg, "Witaj, jesteś teraz moim znajomym :)"); }
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); } }
static void OnFriendAdded(SteamFriends.FriendAddedCallback callback) { if (callback.Result == EResult.OK) { Console.WriteLine($"[SteamBot] {0} added friend.", callback.PersonaName); steamFriends.SendChatMessage(callback.SteamID, EChatEntryType.ChatMsg, "Thank you for adding me friend."); } }
static void OnFriendAdded(SteamFriends.FriendAddedCallback callback) { string personaName = callback.PersonaName; SteamID steamID = callback.SteamID; loggingmsg = String.Format("{0} is now a friend of {1}'s", personaName, user); SimpleLogger.SimpleLog.Info(loggingmsg); Console.WriteLine(loggingmsg); string Greetings = string.Format( "Hello {0}. Thank you for adding the bot.\nUse !info to request gather information or wait for the automated responses.", personaName ); steamFriends.SendChatMessage( steamID, EChatEntryType.ChatMsg, Greetings ); }
static void OnFriendAdded(SteamFriends.FriendAddedCallback callback) { // someone accepted our friend request, or we accepted one Console.WriteLine("{0} is now a friend", callback.PersonaName); }
public void OnFriendAdded(SteamFriends.FriendAddedCallback callback) { SteamID = Convert.ToString(callback.SteamID); Console.WriteLine($"{callback.PersonaName}, {callback.SteamID} is now our friend."); setup.steamFriends.SendChatMessage(callback.SteamID, EChatEntryType.ChatMsg, $"Hello, I am a bot, {callback.PersonaName}. As of yet i have no functionality! :'("); }
static void OnFriendAdded(SteamFriends.FriendAddedCallback callback) { Console.WriteLine("[i] {0} is now a friend", callback.PersonaName); }
} // Wird gecalled wenn Steam durch die Freundesliste crawled. static void OnFriendAdded(SteamFriends.FriendAddedCallback callback) { Console.WriteLine($"(INFORMATION) {callback.PersonaName} is now a friend", Color.SkyBlue); } // Weiß noch nicht ganz für was das ist, Steam ist gerade down (23.12.16 19:18)
void OnFriendAdded(SteamFriends.FriendAddedCallback callback) { // someone accepted our friend request, or we accepted one Console.WriteLine("{0} is now a friend", callback.PersonaName); lstLog.Items.Add(String.Format("{0}님이 당신과 친구가 되었습니다.", callback.PersonaName)); }
private void OnFriendAdded(SteamFriends.FriendAddedCallback callback) { OnFriendRequestAccepted?.Invoke(this, callback.PersonaName); }
static void onFriendAdded(SteamFriends.FriendAddedCallback callback) { Console.WriteLine("{0} was added as a friend", callback.PersonaName); }
static void OnFriendAdded(SteamFriends.FriendAddedCallback callback) { friendList.Add(callback.SteamID); Console.WriteLine("{0} is now a friend", callback.PersonaName); }