Merge branch 'TheGreatSplit' into 'master'

The Great Split

See merge request dbgit/open/geekbot!17
This commit is contained in:
Daan Boerlage 2020-08-13 15:59:58 +00:00
commit c893e45004
200 changed files with 547 additions and 503 deletions

14
.gitignore vendored
View file

@ -1,12 +1,10 @@
*/bin/ /*/**/bin
*/obj/ /*/**/obj
Geekbot.net/tmp/ src/Bot/tmp/
src/Bot/Logs/*
!/src/Bot/Logs/.keep
.vs/ .vs/
UpgradeLog.htm
.idea .idea
.vscode .vscode
Geekbot.net/Logs/*
!/Geekbot.net/Logs/.keep
Geekbot.net.sln.DotSettings.user Geekbot.net.sln.DotSettings.user
Geekbot.net/temp/ app
app

View file

@ -5,7 +5,7 @@ stages:
- ops - ops
variables: variables:
VERSION: 4.2.0-$CI_COMMIT_SHORT_SHA VERSION: 4.3.0-$CI_COMMIT_SHORT_SHA
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
Build: Build:
@ -17,8 +17,8 @@ Build:
- app - app
script: script:
- dotnet restore - dotnet restore
- dotnet test Tests - dotnet test tests
- dotnet publish --version-suffix $VERSION -r linux-x64 -c Release -o ./app ./Geekbot.net/ - dotnet publish --version-suffix $VERSION -r linux-x64 -c Release -o ./app ./src/Bot/
Package: Package:
stage: docker stage: docker

View file

@ -4,4 +4,4 @@ COPY ./app /app/
EXPOSE 12995/tcp EXPOSE 12995/tcp
WORKDIR /app WORKDIR /app
ENTRYPOINT ./Geekbot.net ENTRYPOINT ./Geekbot

View file

@ -3,9 +3,13 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013 # Visual Studio 2013
VisualStudioVersion = 12.0.0.0 VisualStudioVersion = 12.0.0.0
MinimumVisualStudioVersion = 10.0.0.1 MinimumVisualStudioVersion = 10.0.0.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Geekbot.net", "Geekbot.net/Geekbot.net.csproj", "{FDCB3D92-E7B5-47BB-A9B5-CFAEFA57CDB4}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "tests\Tests.csproj", "{4CAF5F02-EFFE-4FDA-BD44-EEADDBA9600E}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests\Tests.csproj", "{4CAF5F02-EFFE-4FDA-BD44-EEADDBA9600E}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core", "src\Core\Core.csproj", "{47671723-52A9-4668-BBC5-2BA76AE3B288}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Web", "src\Web\Web.csproj", "{0A63D5DC-6325-4F53-8ED2-9843239B76CC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bot", "src\Bot\Bot.csproj", "{DBF79896-9F7F-443D-B336-155E276DFF16}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -13,14 +17,22 @@ Global
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FDCB3D92-E7B5-47BB-A9B5-CFAEFA57CDB4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FDCB3D92-E7B5-47BB-A9B5-CFAEFA57CDB4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FDCB3D92-E7B5-47BB-A9B5-CFAEFA57CDB4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FDCB3D92-E7B5-47BB-A9B5-CFAEFA57CDB4}.Release|Any CPU.Build.0 = Release|Any CPU
{4CAF5F02-EFFE-4FDA-BD44-EEADDBA9600E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {4CAF5F02-EFFE-4FDA-BD44-EEADDBA9600E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4CAF5F02-EFFE-4FDA-BD44-EEADDBA9600E}.Debug|Any CPU.Build.0 = Debug|Any CPU {4CAF5F02-EFFE-4FDA-BD44-EEADDBA9600E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4CAF5F02-EFFE-4FDA-BD44-EEADDBA9600E}.Release|Any CPU.ActiveCfg = Release|Any CPU {4CAF5F02-EFFE-4FDA-BD44-EEADDBA9600E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4CAF5F02-EFFE-4FDA-BD44-EEADDBA9600E}.Release|Any CPU.Build.0 = Release|Any CPU {4CAF5F02-EFFE-4FDA-BD44-EEADDBA9600E}.Release|Any CPU.Build.0 = Release|Any CPU
{47671723-52A9-4668-BBC5-2BA76AE3B288}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{47671723-52A9-4668-BBC5-2BA76AE3B288}.Debug|Any CPU.Build.0 = Debug|Any CPU
{47671723-52A9-4668-BBC5-2BA76AE3B288}.Release|Any CPU.ActiveCfg = Release|Any CPU
{47671723-52A9-4668-BBC5-2BA76AE3B288}.Release|Any CPU.Build.0 = Release|Any CPU
{0A63D5DC-6325-4F53-8ED2-9843239B76CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0A63D5DC-6325-4F53-8ED2-9843239B76CC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0A63D5DC-6325-4F53-8ED2-9843239B76CC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0A63D5DC-6325-4F53-8ED2-9843239B76CC}.Release|Any CPU.Build.0 = Release|Any CPU
{DBF79896-9F7F-443D-B336-155E276DFF16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DBF79896-9F7F-443D-B336-155E276DFF16}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DBF79896-9F7F-443D-B336-155E276DFF16}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DBF79896-9F7F-443D-B336-155E276DFF16}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE

View file

@ -1,64 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<RuntimeIdentifiers>win-x64;linux-x64</RuntimeIdentifiers>
<ApplicationIcon>derp.ico</ApplicationIcon>
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionSuffix)</Version>
<Version Condition=" '$(VersionSuffix)' == '' ">0.0.0-DEV</Version>
<Company>Pizza and Coffee Studios</Company>
<Authors>Pizza and Coffee Studios</Authors>
<Description>A Discord bot</Description>
<RepositoryUrl>https://github.com/pizzaandcoffee/Geekbot.net</RepositoryUrl>
<NoWarn>NU1701</NoWarn>
<RepositoryType>git</RepositoryType>
<PackageProjectUrl>https://geekbot.pizzaandcoffee.rocks</PackageProjectUrl>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<Optimize>true</Optimize>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.8.0" />
<PackageReference Include="Discord.Net" Version="2.2.0" />
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.45.0.1929" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.24" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Hosting" Version="2.2.7" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Cors" Version="2.2.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.0-preview.7.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.0-preview.7.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="5.0.0-preview.7.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="5.0.0-preview.7.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.0-preview.7.*" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0-preview.7.*" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0-preview.7.*" />
<PackageReference Include="Microsoft.Extensions.Options" Version="5.0.0-preview.7.*" />
<PackageReference Include="MtgApiManager.Lib" Version="1.2.2" />
<PackageReference Include="MyAnimeListSharp" Version="1.3.4" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="NLog" Version="4.7.2" />
<PackageReference Include="NLog.Config" Version="4.7.2" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="5.0.0-preview6" />
<PackageReference Include="PokeApi.NET" Version="1.1.2" />
<PackageReference Include="SharpRaven" Version="2.4.0" />
<PackageReference Include="SumoLogic.Logging.NLog" Version="1.0.1.3" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.Runtime.Serialization.Formatters" Version="4.3.0" />
<PackageReference Include="System.Runtime.Serialization.Json" Version="4.3.0" />
<PackageReference Include="System.Runtime.Serialization.Primitives" Version="4.3.0" />
<PackageReference Include="YamlDotNet" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<None Update="Storage\*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Lib\Localization\Translations.yml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\WikipediaApi\WikipediaApi.csproj" />
</ItemGroup>
</Project>

43
src/Bot/Bot.csproj Normal file
View file

@ -0,0 +1,43 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<RuntimeIdentifiers>win-x64;linux-x64</RuntimeIdentifiers>
<ApplicationIcon>derp.ico</ApplicationIcon>
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
<RootNamespace>Geekbot.Bot</RootNamespace>
<AssemblyName>Geekbot</AssemblyName>
<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionSuffix)</Version>
<Version Condition=" '$(VersionSuffix)' == '' ">0.0.0-DEV</Version>
<Company>Pizza and Coffee Studios</Company>
<Authors>Pizza and Coffee Studios</Authors>
<Description>A Discord bot</Description>
<RepositoryUrl>https://github.com/pizzaandcoffee/Geekbot.net</RepositoryUrl>
<NoWarn>NU1701</NoWarn>
<RepositoryType>git</RepositoryType>
<PackageProjectUrl>https://geekbot.pizzaandcoffee.rocks</PackageProjectUrl>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<Optimize>true</Optimize>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.8.0" />
<PackageReference Include="Discord.Net" Version="2.2.0" />
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.45.0.1929" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.24" />
<PackageReference Include="MtgApiManager.Lib" Version="1.2.2" />
<PackageReference Include="MyAnimeListSharp" Version="1.3.4" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="PokeApi.NET" Version="1.1.2" />
<PackageReference Include="SharpRaven" Version="2.4.0" />
</ItemGroup>
<ItemGroup>
<Content Include="Storage\*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Core\Core.csproj" />
<ProjectReference Include="..\Web\Web.csproj" />
</ItemGroup>
</Project>

View file

@ -4,13 +4,13 @@ using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Discord.WebSocket; using Discord.WebSocket;
using Geekbot.net.Lib.CommandPreconditions; using Geekbot.Core.CommandPreconditions;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
using Geekbot.net.Lib.GuildSettingsManager; using Geekbot.Core.GuildSettingsManager;
using Geekbot.net.Lib.Localization; using Geekbot.Core.Localization;
namespace Geekbot.net.Commands.Admin namespace Geekbot.Bot.Commands.Admin
{ {
[Group("admin")] [Group("admin")]
[RequireUserPermission(GuildPermission.Administrator)] [RequireUserPermission(GuildPermission.Administrator)]

View file

@ -2,10 +2,10 @@
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib.CommandPreconditions; using Geekbot.Core.CommandPreconditions;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
namespace Geekbot.net.Commands.Admin namespace Geekbot.Bot.Commands.Admin
{ {
[Group("mod")] [Group("mod")]
[RequireUserPermission(GuildPermission.KickMembers)] [RequireUserPermission(GuildPermission.KickMembers)]

View file

@ -3,12 +3,12 @@ using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Discord.WebSocket; using Discord.WebSocket;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.GlobalSettings; using Geekbot.Core.GlobalSettings;
using Geekbot.net.Lib.Logger; using Geekbot.Core.Logger;
using Geekbot.net.Lib.UserRepository; using Geekbot.Core.UserRepository;
namespace Geekbot.net.Commands.Admin.Owner namespace Geekbot.Bot.Commands.Admin.Owner
{ {
[Group("owner")] [Group("owner")]
[RequireOwner] [RequireOwner]

View file

@ -5,15 +5,15 @@ using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Discord.Net; using Discord.Net;
using Geekbot.net.Database; using Geekbot.Core.CommandPreconditions;
using Geekbot.net.Database.Models; using Geekbot.Core.Database;
using Geekbot.net.Lib.CommandPreconditions; using Geekbot.Core.Database.Models;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
using Geekbot.net.Lib.Localization; using Geekbot.Core.Localization;
using Geekbot.net.Lib.ReactionListener; using Geekbot.Core.ReactionListener;
namespace Geekbot.net.Commands.Admin namespace Geekbot.Bot.Commands.Admin
{ {
[Group("role")] [Group("role")]
[DisableInDirectMessage] [DisableInDirectMessage]

View file

@ -3,11 +3,11 @@ using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
using PokeAPI; using PokeAPI;
namespace Geekbot.net.Commands.Games namespace Geekbot.Bot.Commands.Games
{ {
public class Pokedex : ModuleBase public class Pokedex : ModuleBase
{ {

View file

@ -2,15 +2,15 @@
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Database; using Geekbot.Core.Database;
using Geekbot.net.Database.Models; using Geekbot.Core.Database.Models;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
using Geekbot.net.Lib.KvInMemoryStore; using Geekbot.Core.KvInMemoryStore;
using Geekbot.net.Lib.Localization; using Geekbot.Core.Localization;
using Geekbot.net.Lib.RandomNumberGenerator; using Geekbot.Core.RandomNumberGenerator;
namespace Geekbot.net.Commands.Games.Roll namespace Geekbot.Bot.Commands.Games.Roll
{ {
public class Roll : ModuleBase public class Roll : ModuleBase
{ {

View file

@ -1,6 +1,6 @@
using System; using System;
namespace Geekbot.net.Commands.Games.Roll namespace Geekbot.Bot.Commands.Games.Roll
{ {
public class RollTimeout public class RollTimeout
{ {

View file

@ -5,10 +5,10 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Web; using System.Web;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib; using Geekbot.Core;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
namespace Geekbot.net.Commands.Integrations.LolMmr namespace Geekbot.Bot.Commands.Integrations.LolMmr
{ {
public class LolMmr : ModuleBase public class LolMmr : ModuleBase
{ {

View file

@ -1,4 +1,4 @@
namespace Geekbot.net.Commands.Integrations.LolMmr namespace Geekbot.Bot.Commands.Integrations.LolMmr
{ {
public class LolMmrDto public class LolMmrDto
{ {

View file

@ -1,7 +1,6 @@
using System;
using Newtonsoft.Json; using Newtonsoft.Json;
namespace Geekbot.net.Commands.Integrations.LolMmr namespace Geekbot.Bot.Commands.Integrations.LolMmr
{ {
public class LolMrrInfoDto public class LolMrrInfoDto
{ {

View file

@ -4,12 +4,12 @@ using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib.Converters; using Geekbot.Core.Converters;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
using MtgApiManager.Lib.Service; using MtgApiManager.Lib.Service;
namespace Geekbot.net.Commands.Integrations namespace Geekbot.Bot.Commands.Integrations
{ {
public class MagicTheGathering : ModuleBase public class MagicTheGathering : ModuleBase
{ {

View file

@ -4,11 +4,11 @@ using System.Web;
using System.Xml; using System.Xml;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
using Geekbot.net.Lib.MalClient; using Geekbot.Core.MalClient;
namespace Geekbot.net.Commands.Integrations namespace Geekbot.Bot.Commands.Integrations
{ {
public class Mal : ModuleBase public class Mal : ModuleBase
{ {

View file

@ -1,4 +1,4 @@
namespace Geekbot.net.Commands.Integrations.UbranDictionary namespace Geekbot.Bot.Commands.Integrations.UbranDictionary
{ {
internal class UrbanListItemDto internal class UrbanListItemDto
{ {

View file

@ -1,6 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace Geekbot.net.Commands.Integrations.UbranDictionary namespace Geekbot.Bot.Commands.Integrations.UbranDictionary
{ {
internal class UrbanResponseDto internal class UrbanResponseDto
{ {

View file

@ -3,11 +3,11 @@ using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib; using Geekbot.Core;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
namespace Geekbot.net.Commands.Integrations.UbranDictionary namespace Geekbot.Bot.Commands.Integrations.UbranDictionary
{ {
public class UrbanDictionary : ModuleBase public class UrbanDictionary : ModuleBase
{ {

View file

@ -5,14 +5,14 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Database; using Geekbot.Core.Database;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
using Geekbot.net.Lib.WikipediaClient; using Geekbot.Core.WikipediaClient;
using Geekbot.net.Lib.WikipediaClient.Page; using Geekbot.Core.WikipediaClient.Page;
using HtmlAgilityPack; using HtmlAgilityPack;
namespace Geekbot.net.Commands.Integrations namespace Geekbot.Bot.Commands.Integrations
{ {
public class Wikipedia : ModuleBase public class Wikipedia : ModuleBase
{ {

View file

@ -1,12 +1,12 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.GlobalSettings; using Geekbot.Core.GlobalSettings;
using Google.Apis.Services; using Google.Apis.Services;
using Google.Apis.YouTube.v3; using Google.Apis.YouTube.v3;
namespace Geekbot.net.Commands.Integrations namespace Geekbot.Bot.Commands.Integrations
{ {
public class Youtube : ModuleBase public class Youtube : ModuleBase
{ {

View file

@ -2,10 +2,10 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.RandomNumberGenerator; using Geekbot.Core.RandomNumberGenerator;
namespace Geekbot.net.Commands.Randomness namespace Geekbot.Bot.Commands.Randomness
{ {
public class BenedictCumberbatchNameGenerator : ModuleBase public class BenedictCumberbatchNameGenerator : ModuleBase
{ {

View file

@ -2,10 +2,10 @@
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib; using Geekbot.Core;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
namespace Geekbot.net.Commands.Randomness.Cat namespace Geekbot.Bot.Commands.Randomness.Cat
{ {
public class Cat : ModuleBase public class Cat : ModuleBase
{ {

View file

@ -1,4 +1,4 @@
namespace Geekbot.net.Commands.Randomness.Cat namespace Geekbot.Bot.Commands.Randomness.Cat
{ {
internal class CatResponseDto internal class CatResponseDto
{ {

View file

@ -1,4 +1,4 @@
namespace Geekbot.net.Commands.Randomness.Chuck namespace Geekbot.Bot.Commands.Randomness.Chuck
{ {
internal class ChuckNorrisJokeResponseDto internal class ChuckNorrisJokeResponseDto
{ {

View file

@ -2,10 +2,10 @@
using System.Net.Http; using System.Net.Http;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib; using Geekbot.Core;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
namespace Geekbot.net.Commands.Randomness.Chuck namespace Geekbot.Bot.Commands.Randomness.Chuck
{ {
public class ChuckNorrisJokes : ModuleBase public class ChuckNorrisJokes : ModuleBase
{ {

View file

@ -1,4 +1,4 @@
namespace Geekbot.net.Commands.Randomness.Dad namespace Geekbot.Bot.Commands.Randomness.Dad
{ {
internal class DadJokeResponseDto internal class DadJokeResponseDto
{ {

View file

@ -1,10 +1,10 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib; using Geekbot.Core;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
namespace Geekbot.net.Commands.Randomness.Dad namespace Geekbot.Bot.Commands.Randomness.Dad
{ {
public class DadJokes : ModuleBase public class DadJokes : ModuleBase
{ {

View file

@ -2,10 +2,10 @@
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib; using Geekbot.Core;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
namespace Geekbot.net.Commands.Randomness.Dog namespace Geekbot.Bot.Commands.Randomness.Dog
{ {
public class Dog : ModuleBase public class Dog : ModuleBase
{ {

View file

@ -1,4 +1,4 @@
namespace Geekbot.net.Commands.Randomness.Dog namespace Geekbot.Bot.Commands.Randomness.Dog
{ {
internal class DogResponseDto internal class DogResponseDto
{ {

View file

@ -2,9 +2,9 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
namespace Geekbot.net.Commands.Randomness namespace Geekbot.Bot.Commands.Randomness
{ {
public class EightBall : ModuleBase public class EightBall : ModuleBase
{ {

View file

@ -1,8 +1,8 @@
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib.Media; using Geekbot.Core.Media;
namespace Geekbot.net.Commands.Randomness namespace Geekbot.Bot.Commands.Randomness
{ {
public class Fortune : ModuleBase public class Fortune : ModuleBase
{ {

View file

@ -2,9 +2,9 @@
using System.Net; using System.Net;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
namespace Geekbot.net.Commands.Randomness namespace Geekbot.Bot.Commands.Randomness
{ {
public class Gdq : ModuleBase public class Gdq : ModuleBase
{ {

View file

@ -1,4 +1,4 @@
namespace Geekbot.net.Commands.Randomness.Greetings namespace Geekbot.Bot.Commands.Randomness.Greetings
{ {
public class GreetingBaseDto public class GreetingBaseDto
{ {

View file

@ -1,4 +1,4 @@
namespace Geekbot.net.Commands.Randomness.Greetings namespace Geekbot.Bot.Commands.Randomness.Greetings
{ {
public class GreetingDto public class GreetingDto
{ {

View file

@ -2,11 +2,11 @@ using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib; using Geekbot.Core;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
namespace Geekbot.net.Commands.Randomness.Greetings namespace Geekbot.Bot.Commands.Randomness.Greetings
{ {
public class Greetings : ModuleBase public class Greetings : ModuleBase
{ {

View file

@ -1,10 +1,10 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib; using Geekbot.Core;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
namespace Geekbot.net.Commands.Randomness.Kanye namespace Geekbot.Bot.Commands.Randomness.Kanye
{ {
public class Kanye : ModuleBase public class Kanye : ModuleBase
{ {

View file

@ -1,4 +1,4 @@
namespace Geekbot.net.Commands.Randomness.Kanye namespace Geekbot.Bot.Commands.Randomness.Kanye
{ {
public class KanyeResponseDto public class KanyeResponseDto
{ {

View file

@ -1,9 +1,9 @@
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib.Media; using Geekbot.Core.Media;
namespace Geekbot.net.Commands.Randomness namespace Geekbot.Bot.Commands.Randomness
{ {
public class RandomAnimals : ModuleBase public class RandomAnimals : ModuleBase
{ {

View file

@ -3,14 +3,14 @@ using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Database; using Geekbot.Core.Database;
using Geekbot.net.Database.Models; using Geekbot.Core.Database.Models;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
using Geekbot.net.Lib.Localization; using Geekbot.Core.Localization;
using Geekbot.net.Lib.RandomNumberGenerator; using Geekbot.Core.RandomNumberGenerator;
namespace Geekbot.net.Commands.Randomness namespace Geekbot.Bot.Commands.Randomness
{ {
public class Ship : ModuleBase public class Ship : ModuleBase
{ {

View file

@ -4,12 +4,12 @@ using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Database; using Geekbot.Core.Database;
using Geekbot.net.Database.Models; using Geekbot.Core.Database.Models;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
namespace Geekbot.net.Commands.Randomness namespace Geekbot.Bot.Commands.Randomness
{ {
public class Slap : ModuleBase public class Slap : ModuleBase
{ {

View file

@ -3,15 +3,15 @@ using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Database; using Geekbot.Core.CommandPreconditions;
using Geekbot.net.Database.Models; using Geekbot.Core.Database;
using Geekbot.net.Lib.CommandPreconditions; using Geekbot.Core.Database.Models;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
using Geekbot.net.Lib.Localization; using Geekbot.Core.Localization;
using Geekbot.net.Lib.RandomNumberGenerator; using Geekbot.Core.RandomNumberGenerator;
namespace Geekbot.net.Commands.Rpg namespace Geekbot.Bot.Commands.Rpg
{ {
[DisableInDirectMessage] [DisableInDirectMessage]
[Group("cookies")] [Group("cookies")]

View file

@ -3,13 +3,13 @@ using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Database; using Geekbot.Core.CommandPreconditions;
using Geekbot.net.Lib.CommandPreconditions; using Geekbot.Core.Database;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
using Geekbot.net.Lib.Levels; using Geekbot.Core.Levels;
namespace Geekbot.net.Commands.User namespace Geekbot.Bot.Commands.User
{ {
public class GuildInfo : ModuleBase public class GuildInfo : ModuleBase
{ {

View file

@ -3,14 +3,14 @@ using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Database; using Geekbot.Core.CommandPreconditions;
using Geekbot.net.Database.Models; using Geekbot.Core.Database;
using Geekbot.net.Lib.CommandPreconditions; using Geekbot.Core.Database.Models;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
using Geekbot.net.Lib.Localization; using Geekbot.Core.Localization;
namespace Geekbot.net.Commands.User namespace Geekbot.Bot.Commands.User
{ {
[DisableInDirectMessage] [DisableInDirectMessage]
public class Karma : ModuleBase public class Karma : ModuleBase

View file

@ -4,16 +4,16 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Database; using Geekbot.Core.CommandPreconditions;
using Geekbot.net.Lib.CommandPreconditions; using Geekbot.Core.Converters;
using Geekbot.net.Lib.Converters; using Geekbot.Core.Database;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
using Geekbot.net.Lib.Highscores; using Geekbot.Core.Highscores;
using Geekbot.net.Lib.Localization; using Geekbot.Core.Localization;
using Geekbot.net.Lib.UserRepository; using Geekbot.Core.UserRepository;
namespace Geekbot.net.Commands.User.Ranking namespace Geekbot.Bot.Commands.User.Ranking
{ {
public class Rank : ModuleBase public class Rank : ModuleBase
{ {

View file

@ -3,13 +3,13 @@ using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Database; using Geekbot.Core.CommandPreconditions;
using Geekbot.net.Lib.CommandPreconditions; using Geekbot.Core.Database;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
using Geekbot.net.Lib.Levels; using Geekbot.Core.Levels;
namespace Geekbot.net.Commands.User namespace Geekbot.Bot.Commands.User
{ {
public class Stats : ModuleBase public class Stats : ModuleBase
{ {

View file

@ -2,9 +2,9 @@
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
namespace Geekbot.net.Commands.Utils namespace Geekbot.Bot.Commands.Utils
{ {
public class AvatarGetter : ModuleBase public class AvatarGetter : ModuleBase
{ {

View file

@ -6,10 +6,10 @@ using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Discord.WebSocket; using Discord.WebSocket;
using Geekbot.net.Lib; using Geekbot.Core;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
namespace Geekbot.net.Commands.Utils.Changelog namespace Geekbot.Bot.Commands.Utils.Changelog
{ {
public class Changelog : ModuleBase public class Changelog : ModuleBase
{ {

View file

@ -1,6 +1,6 @@
using System; using System;
namespace Geekbot.net.Commands.Utils.Changelog namespace Geekbot.Bot.Commands.Utils.Changelog
{ {
public class CommitAuthorDto public class CommitAuthorDto
{ {

View file

@ -1,4 +1,4 @@
namespace Geekbot.net.Commands.Utils.Changelog namespace Geekbot.Bot.Commands.Utils.Changelog
{ {
public class CommitDto public class CommitDto
{ {

View file

@ -1,4 +1,4 @@
namespace Geekbot.net.Commands.Utils.Changelog namespace Geekbot.Bot.Commands.Utils.Changelog
{ {
public class CommitInfoDto public class CommitInfoDto
{ {

View file

@ -1,10 +1,10 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Localization; using Geekbot.Core.Localization;
namespace Geekbot.net.Commands.Utils namespace Geekbot.Bot.Commands.Utils
{ {
public class Choose : ModuleBase public class Choose : ModuleBase
{ {

View file

@ -1,13 +1,12 @@
using System; using System;
using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib; using Geekbot.Core;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
namespace Geekbot.net.Commands.Utils.Corona namespace Geekbot.Bot.Commands.Utils.Corona
{ {
public class CoronaStats : ModuleBase public class CoronaStats : ModuleBase
{ {

View file

@ -1,4 +1,4 @@
namespace Geekbot.net.Commands.Utils.Corona namespace Geekbot.Bot.Commands.Utils.Corona
{ {
public class CoronaSummaryDto public class CoronaSummaryDto
{ {

View file

@ -3,10 +3,10 @@ using System.Collections.Generic;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib.DiceParser; using Geekbot.Core.DiceParser;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
namespace Geekbot.net.Commands.Utils namespace Geekbot.Bot.Commands.Utils
{ {
public class Dice : ModuleBase public class Dice : ModuleBase
{ {

View file

@ -1,10 +1,10 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib.Converters; using Geekbot.Core.Converters;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
namespace Geekbot.net.Commands.Utils namespace Geekbot.Bot.Commands.Utils
{ {
public class Emojify : ModuleBase public class Emojify : ModuleBase
{ {

View file

@ -3,9 +3,9 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
namespace Geekbot.net.Commands.Utils namespace Geekbot.Bot.Commands.Utils
{ {
public class Help : ModuleBase public class Help : ModuleBase
{ {

View file

@ -5,11 +5,11 @@ using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Discord.WebSocket; using Discord.WebSocket;
using Geekbot.net.Lib; using Geekbot.Core;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
namespace Geekbot.net.Commands.Utils namespace Geekbot.Bot.Commands.Utils
{ {
public class Info : ModuleBase public class Info : ModuleBase
{ {

View file

@ -2,9 +2,9 @@ using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Web; using System.Web;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
namespace Geekbot.net.Commands.Utils namespace Geekbot.Bot.Commands.Utils
{ {
public class Lmgtfy : ModuleBase public class Lmgtfy : ModuleBase
{ {

View file

@ -1,7 +1,7 @@
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
namespace Geekbot.net.Commands.Utils namespace Geekbot.Bot.Commands.Utils
{ {
public class Ping : ModuleBase public class Ping : ModuleBase
{ {

View file

@ -3,16 +3,16 @@ using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Geekbot.net.Database; using Geekbot.Core.CommandPreconditions;
using Geekbot.net.Database.Models; using Geekbot.Core.Database;
using Geekbot.net.Lib.CommandPreconditions; using Geekbot.Core.Database.Models;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
using Geekbot.net.Lib.Localization; using Geekbot.Core.Localization;
using Geekbot.net.Lib.Polyfills; using Geekbot.Core.Polyfills;
using Geekbot.net.Lib.RandomNumberGenerator; using Geekbot.Core.RandomNumberGenerator;
namespace Geekbot.net.Commands.Utils.Quote namespace Geekbot.Bot.Commands.Utils.Quote
{ {
[Group("quote")] [Group("quote")]
[DisableInDirectMessage] [DisableInDirectMessage]

View file

@ -1,6 +1,6 @@
using System; using System;
namespace Geekbot.net.Commands.Utils.Quote namespace Geekbot.Bot.Commands.Utils.Quote
{ {
internal class QuoteObjectDto internal class QuoteObjectDto
{ {

View file

@ -5,12 +5,12 @@ using Discord;
using Discord.Commands; using Discord.Commands;
using Discord.Rest; using Discord.Rest;
using Discord.WebSocket; using Discord.WebSocket;
using Geekbot.net.Database; using Geekbot.Core.Database;
using Geekbot.net.Database.Models; using Geekbot.Core.Database.Models;
using Geekbot.net.Lib.GuildSettingsManager; using Geekbot.Core.GuildSettingsManager;
using Geekbot.net.Lib.Logger; using Geekbot.Core.Logger;
namespace Geekbot.net.Handlers namespace Geekbot.Bot.Handlers
{ {
public class CommandHandler public class CommandHandler
{ {

View file

@ -4,11 +4,11 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.WebSocket; using Discord.WebSocket;
using Geekbot.net.Database; using Geekbot.Core.Database;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
using Geekbot.net.Lib.Logger; using Geekbot.Core.Logger;
namespace Geekbot.net.Handlers namespace Geekbot.Bot.Handlers
{ {
public class MessageDeletedHandler public class MessageDeletedHandler
{ {

View file

@ -1,9 +1,9 @@
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord; using Discord;
using Discord.WebSocket; using Discord.WebSocket;
using Geekbot.net.Lib.ReactionListener; using Geekbot.Core.ReactionListener;
namespace Geekbot.net.Handlers namespace Geekbot.Bot.Handlers
{ {
public class ReactionHandler public class ReactionHandler
{ {

View file

@ -1,13 +1,13 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.WebSocket; using Discord.WebSocket;
using Geekbot.net.Database; using Geekbot.Core.Database;
using Geekbot.net.Database.Models; using Geekbot.Core.Database.Models;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
using Geekbot.net.Lib.Logger; using Geekbot.Core.Logger;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
namespace Geekbot.net.Handlers namespace Geekbot.Bot.Handlers
{ {
public class StatsHandler public class StatsHandler
{ {

View file

@ -4,12 +4,12 @@ using System.Threading.Tasks;
using Discord; using Discord;
using Discord.Rest; using Discord.Rest;
using Discord.WebSocket; using Discord.WebSocket;
using Geekbot.net.Database; using Geekbot.Core.Database;
using Geekbot.net.Lib.Extensions; using Geekbot.Core.Extensions;
using Geekbot.net.Lib.Logger; using Geekbot.Core.Logger;
using Geekbot.net.Lib.UserRepository; using Geekbot.Core.UserRepository;
namespace Geekbot.net.Handlers namespace Geekbot.Bot.Handlers
{ {
public class UserHandler public class UserHandler
{ {

0
Geekbot.net/Logs/.keep → src/Bot/Logs/.keep Executable file → Normal file
View file

42
Geekbot.net/Program.cs → src/Bot/Program.cs Executable file → Normal file
View file

@ -6,30 +6,30 @@ using CommandLine;
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using Discord.WebSocket; using Discord.WebSocket;
using Geekbot.net.Database; using Geekbot.Bot.Handlers;
using Geekbot.net.Handlers; using Geekbot.Core;
using Geekbot.net.Lib; using Geekbot.Core.Converters;
using Geekbot.net.Lib.Converters; using Geekbot.Core.Database;
using Geekbot.net.Lib.DiceParser; using Geekbot.Core.DiceParser;
using Geekbot.net.Lib.ErrorHandling; using Geekbot.Core.ErrorHandling;
using Geekbot.net.Lib.GlobalSettings; using Geekbot.Core.GlobalSettings;
using Geekbot.net.Lib.GuildSettingsManager; using Geekbot.Core.GuildSettingsManager;
using Geekbot.net.Lib.Highscores; using Geekbot.Core.Highscores;
using Geekbot.net.Lib.KvInMemoryStore; using Geekbot.Core.KvInMemoryStore;
using Geekbot.net.Lib.Levels; using Geekbot.Core.Levels;
using Geekbot.net.Lib.Localization; using Geekbot.Core.Localization;
using Geekbot.net.Lib.Logger; using Geekbot.Core.Logger;
using Geekbot.net.Lib.MalClient; using Geekbot.Core.MalClient;
using Geekbot.net.Lib.Media; using Geekbot.Core.Media;
using Geekbot.net.Lib.RandomNumberGenerator; using Geekbot.Core.RandomNumberGenerator;
using Geekbot.net.Lib.ReactionListener; using Geekbot.Core.ReactionListener;
using Geekbot.net.Lib.UserRepository; using Geekbot.Core.UserRepository;
using Geekbot.net.Lib.WikipediaClient; using Geekbot.Core.WikipediaClient;
using Geekbot.net.WebApi; using Geekbot.Web;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
namespace Geekbot.net namespace Geekbot.Bot
{ {
internal class Program internal class Program
{ {

View file

Before

Width:  |  Height:  |  Size: 361 KiB

After

Width:  |  Height:  |  Size: 361 KiB

View file

@ -2,7 +2,7 @@ using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
namespace Geekbot.net.Lib.CommandPreconditions namespace Geekbot.Core.CommandPreconditions
{ {
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]
public class DisableInDirectMessageAttribute : PreconditionAttribute public class DisableInDirectMessageAttribute : PreconditionAttribute

View file

@ -1,6 +1,6 @@
using System.Reflection; using System.Reflection;
namespace Geekbot.net.Lib namespace Geekbot.Core
{ {
public static class Constants public static class Constants
{ {
@ -8,7 +8,7 @@ namespace Geekbot.net.Lib
public static string BotVersion() public static string BotVersion()
{ {
return typeof(Program).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion; return typeof(Constants).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
} }
public static string LibraryVersion() public static string LibraryVersion()

View file

@ -1,7 +1,7 @@
using System.Collections; using System.Collections;
using System.Text; using System.Text;
namespace Geekbot.net.Lib.Converters namespace Geekbot.Core.Converters
{ {
public class EmojiConverter : IEmojiConverter public class EmojiConverter : IEmojiConverter
{ {

View file

@ -1,4 +1,4 @@
namespace Geekbot.net.Lib.Converters namespace Geekbot.Core.Converters
{ {
public interface IEmojiConverter public interface IEmojiConverter
{ {

View file

@ -1,4 +1,4 @@
namespace Geekbot.net.Lib.Converters namespace Geekbot.Core.Converters
{ {
public interface IMtgManaConverter public interface IMtgManaConverter
{ {

View file

@ -1,7 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
namespace Geekbot.net.Lib.Converters namespace Geekbot.Core.Converters
{ {
public class MtgManaConverter : IMtgManaConverter public class MtgManaConverter : IMtgManaConverter
{ {

40
src/Core/Core.csproj Normal file
View file

@ -0,0 +1,40 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionSuffix)</Version>
<Version Condition=" '$(VersionSuffix)' == '' ">0.0.0-DEV</Version>
<RootNamespace>Geekbot.Core</RootNamespace>
<AssemblyName>Geekbot.Core</AssemblyName>
<NoWarn>NU1701</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.8.0" />
<PackageReference Include="Discord.Net" Version="2.2.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.0-preview.7.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.0-preview.7.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="5.0.0-preview.7.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="5.0.0-preview.7.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.0-preview.7.*" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0-preview.7.*" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0-preview.7.*" />
<PackageReference Include="Microsoft.Extensions.Options" Version="5.0.0-preview.7.*" />
<PackageReference Include="MyAnimeListSharp" Version="1.3.4" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="NLog" Version="4.7.2" />
<PackageReference Include="NLog.Config" Version="4.7.2" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="5.0.0-preview6" />
<PackageReference Include="SharpRaven" Version="2.4.0" />
<PackageReference Include="SumoLogic.Logging.NLog" Version="1.0.1.3" />
<PackageReference Include="YamlDotNet" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<Content Include="Localization\Translations.yml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>

View file

@ -1,7 +1,7 @@
using Geekbot.net.Database.Models; using Geekbot.Core.Database.Models;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
namespace Geekbot.net.Database namespace Geekbot.Core.Database
{ {
public class DatabaseContext : DbContext public class DatabaseContext : DbContext
{ {

View file

@ -1,10 +1,9 @@
using System; using System;
using Geekbot.net.Database.LoggingAdapter; using Geekbot.Core.Database.LoggingAdapter;
using Geekbot.net.Lib; using Geekbot.Core.Logger;
using Geekbot.net.Lib.Logger;
using Npgsql.Logging; using Npgsql.Logging;
namespace Geekbot.net.Database namespace Geekbot.Core.Database
{ {
public class DatabaseInitializer public class DatabaseInitializer
{ {

View file

@ -1,6 +1,6 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
namespace Geekbot.net.Database namespace Geekbot.Core.Database
{ {
public class InMemoryDatabase : DatabaseContext public class InMemoryDatabase : DatabaseContext
{ {

View file

@ -1,10 +1,9 @@
using System; using System;
using Geekbot.net.Lib; using Geekbot.Core.Logger;
using Geekbot.net.Lib.Logger;
using Npgsql.Logging; using Npgsql.Logging;
using LogLevel = NLog.LogLevel; using LogLevel = NLog.LogLevel;
namespace Geekbot.net.Database.LoggingAdapter namespace Geekbot.Core.Database.LoggingAdapter
{ {
public class NpgsqlLoggingAdapter : NpgsqlLogger public class NpgsqlLoggingAdapter : NpgsqlLogger
{ {

View file

@ -1,8 +1,7 @@
using Geekbot.net.Lib; using Geekbot.Core.Logger;
using Geekbot.net.Lib.Logger;
using Npgsql.Logging; using Npgsql.Logging;
namespace Geekbot.net.Database.LoggingAdapter namespace Geekbot.Core.Database.LoggingAdapter
{ {
public class NpgsqlLoggingProviderAdapter : INpgsqlLoggingProvider public class NpgsqlLoggingProviderAdapter : INpgsqlLoggingProvider
{ {

View file

@ -1,7 +1,7 @@
using System; using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Geekbot.net.Database.Models namespace Geekbot.Core.Database.Models
{ {
public class CookiesModel public class CookiesModel
{ {

View file

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Geekbot.net.Database.Models namespace Geekbot.Core.Database.Models
{ {
public class GlobalsModel public class GlobalsModel
{ {

View file

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Geekbot.net.Database.Models namespace Geekbot.Core.Database.Models
{ {
public class GuildSettingsModel public class GuildSettingsModel
{ {

View file

@ -1,7 +1,7 @@
using System; using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Geekbot.net.Database.Models namespace Geekbot.Core.Database.Models
{ {
public class KarmaModel public class KarmaModel
{ {

View file

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Geekbot.net.Database.Models namespace Geekbot.Core.Database.Models
{ {
public class MessagesModel public class MessagesModel
{ {

View file

@ -1,7 +1,7 @@
using System; using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Geekbot.net.Database.Models namespace Geekbot.Core.Database.Models
{ {
public class QuoteModel public class QuoteModel
{ {

View file

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Geekbot.net.Database.Models namespace Geekbot.Core.Database.Models
{ {
public class ReactionListenerModel public class ReactionListenerModel
{ {

Some files were not shown because too many files have changed in this diff Show more