Пример #1
0
 public static void Main(object _BotStuff)
 {
     Botstuff = (OnyLib.BotStuff)_BotStuff;
     unprivSteamToys = new SteamToys(Botstuff);
     addfunctions();
     Botstuff.OnyEvents.InComingMessage += new BotStuff.BotEvents.IncomingMessageHook(OnyEvents_InComingMessage);
     Botstuff.OnyVariables.logger.log("Hello from SteamInteraction!", Logging.Priority.Notice);
 }
Пример #2
0
 public static void Main(object _BotStuff)
 {
     Botstuff        = (OnyLib.BotStuff)_BotStuff;
     unprivSteamToys = new SteamToys(Botstuff);
     addfunctions();
     Botstuff.OnyEvents.InComingMessage += new BotStuff.BotEvents.IncomingMessageHook(OnyEvents_InComingMessage);
     Botstuff.OnyVariables.logger.log("Hello from SteamInteraction!", Logging.Priority.Notice);
 }
Пример #3
0
 public static void Main(object _BotStuff)
 {
     Botstuff = (OnyLib.BotStuff)_BotStuff;
     unprivSteamToys = new SteamToys(Botstuff);
     addfunctions();
     Botstuff.OnyEvents.InComingMessage += new BotStuff.BotEvents.IncomingMessageHook(OnyEvents_InComingMessage);
     Botstuff.OnyVariables.logger.log("Hello from SteamInteraction!", Logging.Priority.Notice);
     sclient = new SteamKit2.SteamClient(System.Net.Sockets.ProtocolType.Tcp);
     SteamKit2.SteamFriends steamFriends = sclient.GetHandler<SteamKit2.SteamFriends>();
     SteamKit2.SteamUser sUser = sclient.GetHandler<SteamKit2.SteamUser>();
     sclient.Connect();
     sUser.LogOn(new SteamKit2.SteamUser.LogOnDetails() { Username = "******", Password = "******" });
     steamFriends.SendChatMessage(new SteamKit2.SteamID("STEAM_0:1:16516144"), SteamKit2.EChatEntryType.ChatMsg, "Hai dar");
 }
Пример #4
0
 public static void Main(object _BotStuff)
 {
     Botstuff        = (OnyLib.BotStuff)_BotStuff;
     unprivSteamToys = new SteamToys(Botstuff);
     addfunctions();
     Botstuff.OnyEvents.InComingMessage += new BotStuff.BotEvents.IncomingMessageHook(OnyEvents_InComingMessage);
     Botstuff.OnyVariables.logger.log("Hello from SteamInteraction!", Logging.Priority.Notice);
     sclient = new SteamKit2.SteamClient(System.Net.Sockets.ProtocolType.Tcp);
     SteamKit2.SteamFriends steamFriends = sclient.GetHandler <SteamKit2.SteamFriends>();
     SteamKit2.SteamUser    sUser        = sclient.GetHandler <SteamKit2.SteamUser>();
     sclient.Connect();
     sUser.LogOn(new SteamKit2.SteamUser.LogOnDetails()
     {
         Username = "******", Password = "******"
     });
     steamFriends.SendChatMessage(new SteamKit2.SteamID("STEAM_0:1:16516144"), SteamKit2.EChatEntryType.ChatMsg, "Hai dar");
 }