small changes

This commit is contained in:
Master Kwoth
2017-11-01 04:39:07 +01:00
parent 7beee8df70
commit e2d4576bff
8 changed files with 10 additions and 35 deletions

View File

@ -18,7 +18,7 @@ namespace NadekoBot.Modules.Games
{
private readonly DiscordSocketClient _client;
private readonly string[] numbers = new string[] { ":one:", ":two:", ":three:", ":four:", ":five:", ":six:", ":seven:", ":eight:"};
private static readonly string[] numbers = new string[] { ":one:", ":two:", ":three:", ":four:", ":five:", ":six:", ":seven:", ":eight:"};
public Connect4Commands(DiscordSocketClient client)
{
@ -174,7 +174,7 @@ namespace NadekoBot.Modules.Games
for (int i = 0; i < Connect4Game.NumberOfColumns; i++)
{
sb.Append(/*new string(' ', 1 + ((i + 1) / 2)) + */numbers[i]);
sb.Append(numbers[i]);
}
return sb.ToString();
}

View File

@ -50,6 +50,7 @@ namespace NadekoBot.Modules.Games
game.OnEnded += (g) =>
{
_service.TicTacToeGames.Remove(channel.Id);
_sem.Dispose();
};
}
finally