示例#1
0
文件: Lists.cs 项目: mashiro/tig-bind
 /// <summary>
 /// メッセージ受信時の処理
 /// </summary>
 public override void OnMessageReceived(BindPrivMessageReceivedEventArgs e)
 {
     // そのまま Twitter に流す。
 }
示例#2
0
文件: Feed.cs 项目: mashiro/tig-bind
 /// <summary>
 /// メッセージ受信時の処理
 /// </summary>
 public override void OnMessageReceived(BindPrivMessageReceivedEventArgs e)
 {
     // とりあえず殺す
     e.Cancel = true;
 }
示例#3
0
        /// <summary>
        /// メッセージ受信時の処理
        /// </summary>
        public override void OnMessageReceived(BindPrivMessageReceivedEventArgs e)
        {
            e.Cancel = true;

            try
            {
                if (IsValid())
                {
                    Api.AddVoice(e.Message.Content);
                }
            }
            catch (Exception)
            {
                SendMessage(BindAddIn.DefaultSenderNick, "メッセージの送信に失敗しました。", true);
            }
        }