Ejemplo n.º 1
0
 /// <summary>
 /// Sends a message to the current channel's chat
 /// </summary>
 /// <param name="msg">The message to send</param>
 public void SendChannelMessage(string msg)
 {
     logger.Info("Sending text message: {0}", msg);
     var command = new Command("sendtextmessage targetmode=2");
     command.AddParameter("msg", msg);
     logger.Info("Command: {0}", command.ToString());
     this.TsConnection.SendCommand(command);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Sends a message to the current channel's chat
 /// </summary>
 /// <param name="msg">The message to send</param>
 public void SendChannelMessage(string msg)
 {
     if (this.CommandQueryRunner != null)
     {
         logger.Info("Sending text message: {0}", msg);
         var command = new Command("sendtextmessage targetmode=2");
         command.AddParameter("msg", msg);
         logger.Info("Command: {0}", command.ToString());
         this.CommandQueryRunner.SendCommand(command);
     }
 }