예제 #1
0
파일: TrollPart.cs 프로젝트: anurse/NuBot
 public override void Attach(IRobot robo, CancellationToken token)
 {
     robo.Respond("troll me", m =>
         robo.Say(_trolls[_rand.Next(0, _trolls.Length - 1)], m.Room));
 }
예제 #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));
 }
예제 #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));
 }