small changes
This commit is contained in:
		@@ -21,7 +21,7 @@ namespace NadekoBot.Modules.Gambling
 | 
			
		||||
            private readonly IBotConfigProvider _bc;
 | 
			
		||||
            private readonly CurrencyService _cs;
 | 
			
		||||
 | 
			
		||||
            private readonly NadekoRandom rng = new NadekoRandom();
 | 
			
		||||
            private static readonly NadekoRandom rng = new NadekoRandom();
 | 
			
		||||
 | 
			
		||||
            public FlipCoinCommands(IImagesService images, CurrencyService cs, IBotConfigProvider bc)
 | 
			
		||||
            {
 | 
			
		||||
 
 | 
			
		||||
@@ -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();
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
@@ -50,6 +50,7 @@ namespace NadekoBot.Modules.Games
 | 
			
		||||
                    game.OnEnded += (g) =>
 | 
			
		||||
                    {
 | 
			
		||||
                        _service.TicTacToeGames.Remove(channel.Id);
 | 
			
		||||
                        _sem.Dispose();
 | 
			
		||||
                    };
 | 
			
		||||
                }
 | 
			
		||||
                finally
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,8 @@ namespace NadekoBot.Modules.Searches
 | 
			
		||||
        [Group]
 | 
			
		||||
        public class PlaceCommands : NadekoSubmodule
 | 
			
		||||
        {
 | 
			
		||||
            private static string typesStr { get; } = string.Join(", ", Enum.GetNames(typeof(PlaceType)));
 | 
			
		||||
            private static readonly string _typesStr = 
 | 
			
		||||
                string.Join(", ", Enum.GetNames(typeof(PlaceType)));
 | 
			
		||||
 | 
			
		||||
            public enum PlaceType
 | 
			
		||||
            {
 | 
			
		||||
@@ -30,7 +31,7 @@ namespace NadekoBot.Modules.Searches
 | 
			
		||||
            public async Task Placelist()
 | 
			
		||||
            {
 | 
			
		||||
                await Context.Channel.SendConfirmAsync(GetText("list_of_place_tags", Prefix), 
 | 
			
		||||
                    typesStr)
 | 
			
		||||
                    _typesStr)
 | 
			
		||||
                             .ConfigureAwait(false);
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,23 +0,0 @@
 | 
			
		||||
<Project Sdk="Microsoft.NET.Sdk">
 | 
			
		||||
 | 
			
		||||
  <PropertyGroup>
 | 
			
		||||
    <TargetFramework>netcoreapp2.0</TargetFramework>
 | 
			
		||||
    <LangVersion>latest</LangVersion>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
 | 
			
		||||
  <PropertyGroup>
 | 
			
		||||
    <OutputPath>..\src\NadekoBot\bin\$(Configuration)\netcoreapp2.0\modules\$(AssemblyName)\</OutputPath>
 | 
			
		||||
    <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
 | 
			
		||||
    <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <PackageReference Include="AngleSharp" Version="0.9.9" />
 | 
			
		||||
    <PackageReference Include="Discord.Net" Version="2.0.0-alpha-build-00832" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <ProjectReference Include="..\NadekoBot.Core\NadekoBot.Core.csproj" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 | 
			
		||||
</Project>
 | 
			
		||||
		Reference in New Issue
	
	Block a user