Skip to content

Commit

Permalink
Made DiscordGitToolbox.Discord assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
Xymanek committed Mar 8, 2020
1 parent 4f80fad commit 8f0958d
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 10 deletions.
7 changes: 0 additions & 7 deletions DiscordGitToolbox.App/DiscordConfiguration.cs

This file was deleted.

2 changes: 1 addition & 1 deletion DiscordGitToolbox.App/DiscordGitToolbox.App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

<ItemGroup>
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="7.0.0" />
<PackageReference Include="Discord.Net" Version="2.1.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="3.1.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\DiscordGitToolbox.Core\DiscordGitToolbox.Core.csproj" />
<ProjectReference Include="..\DiscordGitToolbox.Discord\DiscordGitToolbox.Discord.csproj" />
<ProjectReference Include="..\DiscordGitToolbox.GitHub\DiscordGitToolbox.GitHub.csproj" />
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions DiscordGitToolbox.App/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using AutoMapper;
using Discord.WebSocket;
using DiscordGitToolbox.Core.ItemMention;
using DiscordGitToolbox.Discord;
using DiscordGitToolbox.GitHub;
using DiscordGitToolbox.GitHub.ItemMention;
using Microsoft.Extensions.Configuration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;

namespace DiscordGitToolbox.App
namespace DiscordGitToolbox.Discord
{
public class DiscordClientWorker : BackgroundService
{
Expand Down
7 changes: 7 additions & 0 deletions DiscordGitToolbox.Discord/DiscordConfiguration.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace DiscordGitToolbox.Discord
{
public class DiscordConfiguration
{
public string? Token { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Discord;
using Microsoft.Extensions.Logging;

namespace DiscordGitToolbox.App
namespace DiscordGitToolbox.Discord
{
public static class DiscordExtensions
{
Expand Down
18 changes: 18 additions & 0 deletions DiscordGitToolbox.Discord/DiscordGitToolbox.Discord.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Discord.Net" Version="2.1.1" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="3.1.2" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\DiscordGitToolbox.Core\DiscordGitToolbox.Core.csproj" />
</ItemGroup>

</Project>
6 changes: 6 additions & 0 deletions DiscordGitToolbox.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DiscordGitToolbox.GitHub.Te
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DiscordGitToolbox.App", "DiscordGitToolbox.App\DiscordGitToolbox.App.csproj", "{347C8431-FCF4-4397-A36A-2E7B7215EE0E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DiscordGitToolbox.Discord", "DiscordGitToolbox.Discord\DiscordGitToolbox.Discord.csproj", "{F97EE584-E591-4E18-9665-42238384A46E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -30,5 +32,9 @@ Global
{347C8431-FCF4-4397-A36A-2E7B7215EE0E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{347C8431-FCF4-4397-A36A-2E7B7215EE0E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{347C8431-FCF4-4397-A36A-2E7B7215EE0E}.Release|Any CPU.Build.0 = Release|Any CPU
{F97EE584-E591-4E18-9665-42238384A46E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F97EE584-E591-4E18-9665-42238384A46E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F97EE584-E591-4E18-9665-42238384A46E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F97EE584-E591-4E18-9665-42238384A46E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal

0 comments on commit 8f0958d

Please sign in to comment.