Fixed hangman bug? Fixed current time in logs
This commit is contained in:
parent
4dc4ab00d8
commit
cdad149b0d
@ -29,7 +29,7 @@ namespace NadekoBot.Modules.Administration
|
||||
private static Logger _log { get; }
|
||||
|
||||
private static string prettyCurrentTime => $"【{DateTime.Now:HH:mm:ss}】";
|
||||
private static string currentTime = $"{DateTime.Now:HH:mm:ss}";
|
||||
private static string currentTime => $"{DateTime.Now:HH:mm:ss}";
|
||||
|
||||
public static ConcurrentDictionary<ulong, LogSetting> GuildLogSettings { get; }
|
||||
|
||||
|
@ -45,7 +45,7 @@ namespace NadekoBot.Modules.Games.Commands.Hangman
|
||||
HangmanObject[] termTypes;
|
||||
data.TryGetValue(type, out termTypes);
|
||||
|
||||
if (termTypes.Length == 0)
|
||||
if (termTypes == null || termTypes.Length == 0)
|
||||
return null;
|
||||
|
||||
return termTypes[rng.Next(0, termTypes.Length)];
|
||||
|
Loading…
Reference in New Issue
Block a user