protected override void CheckRouting(AUSPayload payload, bool isDirectMessage) { // if (payload.IsDirectMessage && !isDirectMessage) return; try { if (payload.IsLexiconTerm(LexiconTermEnum.programmer_hello_world)) { this.OnProgrammerHelloReceived(payload); } else if (payload.IsLexiconTerm(LexiconTermEnum.programmer_goodbye_world)) { this.OnProgrammerGoodbyeReceived(payload); } // And can also hear everything which : Programmer hears. if (payload.IsLexiconTerm(LexiconTermEnum.world_wassup_programmer)) { this.OnWorldWassupReceived(payload); } } catch (Exception ex) { payload.Exception = ex; } this.Reply(payload); }
protected override void CheckRouting(AUSPayload payload, bool isDirectMessage) { // if (payload.IsDirectMessage && !isDirectMessage) return; try { if (payload.IsLexiconTerm(LexiconTermEnum.world_wassup_programmer)) { this.OnWorldWassupReceived(payload); } } catch (Exception ex) { payload.Exception = ex; } this.Reply(payload); }