Ejemplo n.º 1
0
 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
     });
 }
Ejemplo n.º 2
0
        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());
        }
Ejemplo n.º 3
0
 private void OnConnected(SocketConnectedArgs args, int index)
 {
     Debug.info("DataLine[" + index + "] OnConnected to FTNN.");
 }
Ejemplo n.º 4
0
 private void SocketOnConnected(SocketConnectedArgs args)
 {
     Bot.OnInfoMessage("Connected to server");
     ClientPlayer.SendHandshake();
 }