Пример #1
0
 public override void processAnswer(String nick, String from, String input, int size)
 {
     char[] charSeparator = { ' ' };
     string[] split = input.Split(charSeparator, 5);
     if (split[3] == _bot.config.Nickname)
     {
         DelayedSend ds = new DelayedSend(_bot, 2000, "JOIN " + split[2]);
         Thread dst = new Thread(ds.sendRaw);
         dst.Start();
     }
 }
Пример #2
0
        public void TriggerResponse(String nick, String channel, String fullmessage, String[] smessage, int size)
        {
            if (size == 4)
            {
                _bot.sendPrivateMsg(channel, getPic());
            }
            else if (size == 5)
            {

            }
            else if (size == 6)
            {
                if (smessage[4] == "list")
                {
                    DelayedSend ds = new DelayedSend(_bot, channel, sendToDropbox(nick, smessage[5], getUserPics(smessage[5]), ".txt"), 10000);
                    Thread dsT = new Thread(ds.send);
                    dsT.Start();
                    _bot.sendAction(channel, "is now uploading the list. Please wait 10 seconds.");
                }
                else if (smessage[4] == "html")
                {
                    DelayedSend ds = new DelayedSend(_bot, channel, sendToDropbox(nick, smessage[5], getUserPicsHtml(smessage[5]), ".html"), 10000);
                    Thread dsT = new Thread(ds.send);
                    dsT.Start();
                    _bot.sendAction(channel, "is now uploading the list. Please wait 10 seconds.");
                }
            }
        }