public GamesProcessor(IKeyValueStore persistence, IAliasList aliasList) { m_Persistence = persistence; m_AliasList = aliasList; m_Underlying = new RegexCommandMessageProcessor(Commands); }
public static IFeature Create(ICommandParser commandParser, IKeyValueStore persistence, IAliasList aliasList) { var processor = new GamesProcessor(persistence, aliasList); return(new BasicFeature("games", "record games and track rankings", "Use `record <league> game 1st <player1> 2nd <player2> [...]` to record a game.\n" + "eg: `record worms game 1st James 2nd Luke 3rd MarkJ`\n" + "Use `get <league> leaderboard to see overall ratings", new HandlesCommands(commandParser, processor))); }