static void Reciever_OnRecieveMessage(GaduPacketRecieveMessage msg) { String msgs; DateTime minus; Console.WriteLine(msg.Sender + ":" + msg.Message); minus = new DateTime(DateTime.Now.ToBinary() - start.ToBinary()); msgs = "Witam\nJestem botem napisanym w\nDotGadu - http://dotgadu.sf.net\n"; msgs += "Dzialam juz " + (minus.DayOfYear - 1) + " dni " + minus.Hour + " godzin " + minus.Minute + " minut " + minus.Second + " sec"; gadu.sendMessage(msg.Sender, msgs); }
public static void loginok() { Console.WriteLine("Logowanie OK :)"); gadu.sendMessage(3837462, "Witam, wlasnie testuje DotGadu :-)"); }