Exemple #1
0
 public HangmanCommand(HangmanGame hangmanGame)
 {
     _hangmanGame = hangmanGame;
     CommandText  = "Hangman";
     RoleRequired = UserRole.Everyone;
     HelpText     = "Use \"!hangman\" to start a game. Use \"!hangman x\" to guess a letter. Use \"!hangman word\" to guess a word.";
 }
Exemple #2
0
 public HangmanCommand(IRepository repository, HangmanGame hangmanGame)
     : base(repository, UserRole.Everyone)
 {
     _hangmanGame = hangmanGame;
     HelpText     =
         "Use \"!hangman\" to start a game. Use \"!hangman x\" to guess a letter. Use \"!hangman word\" to guess a word.";
 }
Exemple #3
0
        public HangmanCommand(IRepository repository, HangmanGame hangmanGame)
            : base(repository, UserRole.Everyone)
        {
            Cooldown = TimeSpan.FromMinutes(10);

            _hangmanGame = hangmanGame;
            HelpText     =
                "Use \"!hangman\" to start a game. Use \"!hangman x\" to guess a letter. Use \"!hangman word\" to guess a word.";
        }
 public HangmanCommand(IRepository repository, ISettingsFactory settingsFactory, HangmanGame hangmanGame)
     : base(repository)
 {
     _hangmanSettings = settingsFactory.GetSettings <HangmanSettings>();
     _hangmanGame     = hangmanGame;
 }
 public HangmanCommand(IRepository repository, HangmanGame hangmanGame)
     : base(repository)
 {
     _hangmanGame = hangmanGame;
 }