Exemple #1
0
 public override void Attach(IRobot robo, CancellationToken token)
 {
     robo.Respond(new[] { "Hi", "Hello", "you there" }, m => robo.Say(String.Format(_his[_rand.Next(0, _his.Length - 1)], m.From), m.Room));
 }
Exemple #2
0
 public override void Attach(IRobot robo, CancellationToken token)
 {
     robo.Respond("troll me", m =>
         robo.Say(_trolls[_rand.Next(0, _trolls.Length - 1)], m.Room));
 }
Exemple #3
0
 public override void Attach(IRobot robo, CancellationToken token)
 {
     robo.Hear("bees", m => robo.Say("http://img37.imageshack.us/img37/7044/oprahbees.gif", m.Room));
 }
Exemple #4
0
 public override void Attach(IRobot robo, CancellationToken token)
 {
     robo.Respond("version", m => robo.Say(Version.ToString(), m.Room));
     robo.Respond("parts", m => robo.Say(FormatParts(robo), m.Room));
 }