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)); }
public override void Attach(IRobot robo, CancellationToken token) { robo.Respond("troll me", m => robo.Say(_trolls[_rand.Next(0, _trolls.Length - 1)], m.Room)); }
public override void Attach(IRobot robo, CancellationToken token) { robo.Hear("bees", m => robo.Say("http://img37.imageshack.us/img37/7044/oprahbees.gif", m.Room)); }
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)); }