Fixes to some pokemans, higher delay between questions

This commit is contained in:
Kwoth 2017-03-25 09:32:04 +01:00
parent 86105df59a
commit 77b6d42d93
4 changed files with 5 additions and 3249 deletions

View File

@ -136,7 +136,8 @@ namespace NadekoBot.Modules.Games.Trivia
{ {
await Channel.EmbedAsync(new EmbedBuilder().WithErrorColor() await Channel.EmbedAsync(new EmbedBuilder().WithErrorColor()
.WithTitle(GetText("trivia_game")) .WithTitle(GetText("trivia_game"))
.WithDescription(GetText("trivia_times_up", Format.Bold(CurrentQuestion.Answer)))) .WithDescription(GetText("trivia_times_up", Format.Bold(CurrentQuestion.Answer)))
.WithImageUrl(CurrentQuestion.AnswerImageUrl))
.ConfigureAwait(false); .ConfigureAwait(false);
} }
catch (Exception ex) catch (Exception ex)
@ -144,7 +145,7 @@ namespace NadekoBot.Modules.Games.Trivia
_log.Warn(ex); _log.Warn(ex);
} }
} }
await Task.Delay(2000).ConfigureAwait(false); await Task.Delay(5000).ConfigureAwait(false);
} }
} }

View File

@ -21,7 +21,7 @@ namespace NadekoBot.Modules.Games.Trivia
public static TriviaQuestionPool Instance { get; } = _instance ?? (_instance = new TriviaQuestionPool()); public static TriviaQuestionPool Instance { get; } = _instance ?? (_instance = new TriviaQuestionPool());
private const string questionsFile = "data/trivia_questions.json"; private const string questionsFile = "data/trivia_questions.json";
private const string pokemonMapPath = "data/pokemon/name-id_map2.json"; private const string pokemonMapPath = "data/pokemon/name-id_map3.json";
private readonly int maxPokemonId; private readonly int maxPokemonId;
private Random rng { get; } = new NadekoRandom(); private Random rng { get; } = new NadekoRandom();

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long