private static void SocketConnected(object sender, SocketConnectedArgs e) { Common.AppData.CQLog.Info("Bilibili Live Danmaku", $"[Room {e.RoomID}] 已连接"); LuaStates.Run("Bilibili Live Danmaku", "SocketConnected", new { e.RoomID }); }
private void MySockOnConnected(SocketConnectedArgs args) { WriteToBox("Connected to Server!"); _mySock.Send(Encoding.ASCII.GetBytes("NICK u24something\r\n")); _mySock.Send(Encoding.ASCII.GetBytes("USER u24something u24something bla :u24something\r\n")); _mySock.Send(Encoding.ASCII.GetBytes("MODE u24something +B-x\r\n")); Task.Run(() => ParseLoop()); }
private void OnConnected(SocketConnectedArgs args, int index) { Debug.info("DataLine[" + index + "] OnConnected to FTNN."); }
private void SocketOnConnected(SocketConnectedArgs args) { Bot.OnInfoMessage("Connected to server"); ClientPlayer.SendHandshake(); }