예제 #1
0
    void HandleUnaddressed(string channel, string nick, string[] message)
    {
        if (RandomRespond(channel))
        {
            EmitSentence(channel, message, nick);
        }

        if (Learning(channel) && !MarkovTools.FoulPlay(message, conf.MaxConsecutive, conf.MaxTotal))
        {
            AbsorbSentence(channel, nick, message);
        }
    }
예제 #2
0
 void HandleAddressed(string channel, string nick, string[] message)
 {
     if (!MarkovTools.FoulPlay(message, conf.MaxConsecutive, conf.MaxTotal))
     {
         EmitSentence(channel, message, nick);
         AbsorbSentence(channel, nick, message);
     }
     else
     {
         irc.SendMessage(channel, "Foul play detected! Stop trying to teach me stupid things, {0}", nick);
     }
 }