/// <summary>
 /// Called when a new user handler is created.
 /// </summary>
 /// <param name="bot">Bot assigned to</param>
 /// <param name="sid">SteamID of the other user</param>
 public KeybankHandler(Bot bot, SteamID sid)
     : base(bot, sid)
 {
     chatterBot              = clsFunctions.factory.Create(ChatterBotType.PANDORABOTS, "b0dafd24ee35a477");
     chatterBotsession       = chatterBot.CreateSession();
     this.FriendAddedHandler = new SteamBot.FriendAddedHandler(bot, bot.BotControlClass.Substring(9), OtherSID);
     bot.GetInventory();
 }//KeybankHandler()
Пример #2
0
 public DonationBotUserHandler(Bot bot, SteamID sid) : base(bot, sid)
 {
     this.FriendAddedHandler  = new FriendAddedHandler(bot, bot.BotControlClass.Substring(9), OtherSID);//Initialize
     this.FriendRemoveHandler = new FriendRemoveHandler(this.Bot, this.OtherSID);
 }