-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from CriticalFlaw/2.2
Version 2.2
- Loading branch information
Showing
103 changed files
with
2,018 additions
and
1,263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/FlawBOT/Common/HelpFormatter.cs → src/FlawBOT.Core/Common/HelpFormatter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 3 additions & 10 deletions
13
src/FlawBOT/Common/SharedData.cs → src/FlawBOT.Core/Common/SharedData.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
using DSharpPlus.Entities; | ||
using FlawBOT.Models; | ||
using Steam.Models.TF2; | ||
using System; | ||
using System.Collections.Generic; | ||
using System; | ||
using System.Reflection; | ||
using DSharpPlus.Entities; | ||
|
||
namespace FlawBOT.Common | ||
{ | ||
public class SharedData | ||
{ | ||
public static string Name { get; } = Assembly.GetExecutingAssembly().GetName().Name; | ||
public static string Name { get; } = "FlawBOT"; | ||
public static string Version { get; } = Assembly.GetExecutingAssembly().GetName().Version.ToString(); | ||
public static string GitHubLink { get; set; } = "https://github.com/CriticalFlaw/FlawBOT/"; | ||
public static string InviteLink { get; } = "https://discordapp.com/oauth2/authorize?client_id=339833029013012483&scope=bot&permissions=66186303"; | ||
public static DiscordColor DefaultColor { get; set; } = new DiscordColor("#00FF7F"); | ||
public static DateTime ProcessStarted { get; set; } | ||
public static Dictionary<uint, string> SteamAppList { get; set; } = new Dictionary<uint, string>(); | ||
public static Dictionary<uint, SchemaItem> TF2ItemSchema { get; set; } = new Dictionary<uint, SchemaItem>(); | ||
public static List<string> PokemonList { get; set; } = new List<string>(); | ||
public static TokenData Tokens { get; set; } = new TokenData(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM mcr.microsoft.com/dotnet/core/runtime:2.2-stretch-slim AS base | ||
WORKDIR /app | ||
|
||
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-stretch AS build | ||
WORKDIR /src | ||
COPY ["FlawBOT.Core/FlawBOT.Core.csproj", "FlawBOT.Core/"] | ||
COPY ["FlawBOT.Core/NuGet.Config", "FlawBOT.Core/"] | ||
COPY ["FlawBOT.Framework/FlawBOT.Framework.csproj", "FlawBOT.Framework/"] | ||
RUN dotnet restore "FlawBOT.Core/FlawBOT.Core.csproj" | ||
COPY . . | ||
WORKDIR "/src/FlawBOT.Core" | ||
RUN dotnet build "FlawBOT.Core.csproj" -c Release -o /app | ||
|
||
FROM build AS publish | ||
RUN dotnet publish "FlawBOT.Core.csproj" -c Release -o /app | ||
|
||
FROM base AS final | ||
WORKDIR /app | ||
COPY --from=publish /app . | ||
ENTRYPOINT ["dotnet", "FlawBOT.Core.dll"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>netcoreapp2.2</TargetFramework> | ||
<ApplicationIcon>icon.ico</ApplicationIcon> | ||
<StartupObject>FlawBOT.Program</StartupObject> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<Version>2.2.0</Version> | ||
<Win32Resource /> | ||
<LangVersion>7.2</LangVersion> | ||
<AssemblyVersion>2.2.0</AssemblyVersion> | ||
<FileVersion>2.2.0</FileVersion> | ||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> | ||
<AssemblyName>FlawBOT.Core</AssemblyName> | ||
<RootNamespace>FlawBOT.Core</RootNamespace> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Remove="config.json" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Content Include="config.json"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</Content> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="DSharpPlus" Version="4.0.0-nightly-00623" /> | ||
<PackageReference Include="DSharpPlus.CommandsNext" Version="4.0.0-nightly-00623" /> | ||
<PackageReference Include="DSharpPlus.Interactivity" Version="4.0.0-nightly-00623" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\FlawBOT.Framework\FlawBOT.Framework.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Reference Include="PokemonTcgSdk"> | ||
<HintPath>..\FlawBOT.Framework\Resources\PokemonTcgSdk.dll</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.