Esempio n. 1
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));
 }
Esempio n. 2
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));
 }
Esempio n. 3
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));
 }