Exemplo n.º 1
0
        void RequestToken()
        {
            WsCommand cmd = new WsCommand()
            {
                Command = REQ_TOKEN
            };

            if (web_socket.IsAlive)
            {
                messageBuffer.Enqueue(new Message
                {
                    type      = MessageType.Command,
                    wsCommand = cmd,
                });
                return;
            }

            SendCommand(cmd);
            //SendMessage(new IRCMessage(Target_User_Name.ToString(), "[OsuBotTransferClient]Sync wants to request other services that the Token uses to access the Bot. Reply \"!assign_token\" to generate and send a token to Sync."));
        }
Exemplo n.º 2
0
 void SendCommand(WsCommand cmd)
 {
     web_socket.Send(getBytes(cmd));
 }