diff --git a/src/NadekoBot/Common/AsyncLazy.cs b/NadekoBot.Core/Common/AsyncLazy.cs
similarity index 100%
rename from src/NadekoBot/Common/AsyncLazy.cs
rename to NadekoBot.Core/Common/AsyncLazy.cs
diff --git a/src/NadekoBot/Common/Attributes/Aliases.cs b/NadekoBot.Core/Common/Attributes/Aliases.cs
similarity index 91%
rename from src/NadekoBot/Common/Attributes/Aliases.cs
rename to NadekoBot.Core/Common/Attributes/Aliases.cs
index e6c95f67..c57b89a3 100644
--- a/src/NadekoBot/Common/Attributes/Aliases.cs
+++ b/NadekoBot.Core/Common/Attributes/Aliases.cs
@@ -1,7 +1,7 @@
using System.Linq;
using System.Runtime.CompilerServices;
using Discord.Commands;
-using NadekoBot.Services.Impl;
+using NadekoBot.Core.Services.Impl;
namespace NadekoBot.Common.Attributes
{
public class Aliases : AliasAttribute
diff --git a/src/NadekoBot/Common/Attributes/Description.cs b/NadekoBot.Core/Common/Attributes/Description.cs
similarity index 90%
rename from src/NadekoBot/Common/Attributes/Description.cs
rename to NadekoBot.Core/Common/Attributes/Description.cs
index 7ebbac47..efb7705e 100644
--- a/src/NadekoBot/Common/Attributes/Description.cs
+++ b/NadekoBot.Core/Common/Attributes/Description.cs
@@ -1,6 +1,6 @@
using System.Runtime.CompilerServices;
using Discord.Commands;
-using NadekoBot.Services.Impl;
+using NadekoBot.Core.Services.Impl;
namespace NadekoBot.Common.Attributes
{
diff --git a/src/NadekoBot/Common/Attributes/NadekoCommand.cs b/NadekoBot.Core/Common/Attributes/NadekoCommand.cs
similarity index 90%
rename from src/NadekoBot/Common/Attributes/NadekoCommand.cs
rename to NadekoBot.Core/Common/Attributes/NadekoCommand.cs
index ee8b9d58..7cca5519 100644
--- a/src/NadekoBot/Common/Attributes/NadekoCommand.cs
+++ b/NadekoBot.Core/Common/Attributes/NadekoCommand.cs
@@ -1,6 +1,6 @@
using System.Runtime.CompilerServices;
using Discord.Commands;
-using NadekoBot.Services.Impl;
+using NadekoBot.Core.Services.Impl;
namespace NadekoBot.Common.Attributes
{
diff --git a/src/NadekoBot/Common/Attributes/NadekoModuleAttribute.cs b/NadekoBot.Core/Common/Attributes/NadekoModuleAttribute.cs
similarity index 100%
rename from src/NadekoBot/Common/Attributes/NadekoModuleAttribute.cs
rename to NadekoBot.Core/Common/Attributes/NadekoModuleAttribute.cs
diff --git a/src/NadekoBot/Common/Attributes/OwnerOnlyAttribute.cs b/NadekoBot.Core/Common/Attributes/OwnerOnlyAttribute.cs
similarity index 95%
rename from src/NadekoBot/Common/Attributes/OwnerOnlyAttribute.cs
rename to NadekoBot.Core/Common/Attributes/OwnerOnlyAttribute.cs
index c5227daa..25bbe17d 100644
--- a/src/NadekoBot/Common/Attributes/OwnerOnlyAttribute.cs
+++ b/NadekoBot.Core/Common/Attributes/OwnerOnlyAttribute.cs
@@ -1,7 +1,7 @@
using System;
using System.Threading.Tasks;
using Discord.Commands;
-using NadekoBot.Services;
+using NadekoBot.Core.Services;
namespace NadekoBot.Common.Attributes
{
diff --git a/src/NadekoBot/Common/Attributes/Usage.cs b/NadekoBot.Core/Common/Attributes/Usage.cs
similarity index 94%
rename from src/NadekoBot/Common/Attributes/Usage.cs
rename to NadekoBot.Core/Common/Attributes/Usage.cs
index 391de638..223f0840 100644
--- a/src/NadekoBot/Common/Attributes/Usage.cs
+++ b/NadekoBot.Core/Common/Attributes/Usage.cs
@@ -1,6 +1,6 @@
using System.Runtime.CompilerServices;
using Discord.Commands;
-using NadekoBot.Services.Impl;
+using NadekoBot.Core.Services.Impl;
using System.Linq;
using Discord;
@@ -18,7 +18,6 @@ namespace NadekoBot.Common.Attributes
var usage = Localization.LoadCommand(memberName.ToLowerInvariant()).Usage;
return string.Join(" or ", usage
.Select(x => Format.Code(x)));
-
}
}
}
diff --git a/src/NadekoBot/Common/BotConfigEditType.cs b/NadekoBot.Core/Common/BotConfigEditType.cs
similarity index 100%
rename from src/NadekoBot/Common/BotConfigEditType.cs
rename to NadekoBot.Core/Common/BotConfigEditType.cs
diff --git a/src/NadekoBot/Common/CREmbed.cs b/NadekoBot.Core/Common/CREmbed.cs
similarity index 94%
rename from src/NadekoBot/Common/CREmbed.cs
rename to NadekoBot.Core/Common/CREmbed.cs
index 8ef9d30d..b790a12a 100644
--- a/src/NadekoBot/Common/CREmbed.cs
+++ b/NadekoBot.Core/Common/CREmbed.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using Discord;
using NadekoBot.Extensions;
using Newtonsoft.Json;
@@ -12,6 +12,7 @@ namespace NadekoBot.Common
public string PlainText { get; set; }
public string Title { get; set; }
public string Description { get; set; }
+ public string Url { get; set; }
public CREmbedFooter Footer { get; set; }
public string Thumbnail { get; set; }
public string Image { get; set; }
@@ -26,6 +27,7 @@ namespace NadekoBot.Common
public bool IsValid =>
!string.IsNullOrWhiteSpace(Title) ||
!string.IsNullOrWhiteSpace(Description) ||
+ !string.IsNullOrWhiteSpace(Url) ||
!string.IsNullOrWhiteSpace(Thumbnail) ||
!string.IsNullOrWhiteSpace(Image) ||
(Footer != null && (!string.IsNullOrWhiteSpace(Footer.Text) || !string.IsNullOrWhiteSpace(Footer.IconUrl))) ||
@@ -39,6 +41,8 @@ namespace NadekoBot.Common
embed.WithTitle(Title);
if (!string.IsNullOrWhiteSpace(Description))
embed.WithDescription(Description);
+ if (Url != null && Uri.IsWellFormedUriString(Url, UriKind.Absolute))
+ embed.WithUrl(Url);
embed.WithColor(new Discord.Color(Color));
if (Footer != null)
embed.WithFooter(efb =>
diff --git a/NadekoBot.Core/Common/Caching/FactoryCache.cs b/NadekoBot.Core/Common/Caching/FactoryCache.cs
new file mode 100644
index 00000000..3d7bfbe4
--- /dev/null
+++ b/NadekoBot.Core/Common/Caching/FactoryCache.cs
@@ -0,0 +1,49 @@
+using System;
+
+namespace NadekoBot.Core.Common.Caching
+{
+ ///
+ /// A caching object which loads its value with a factory method when it expires.
+ ///
+ /// Type of the value which is cached.
+ public class FactoryCache : IFactoryCache
+ {
+ public DateTime LastUpdate { get; set; } = DateTime.MinValue;
+ private readonly object _locker = new object();
+ private TimeSpan _expireAfter;
+ private readonly Func _factory;
+ private T Value;
+
+ ///
+ /// Creates a new factory cache object.
+ ///
+ /// Method which loads the value when it expires or if it's not loaded the first time.
+ /// Time after which the value will be reloaded.
+ /// Should the value be loaded right away. If set to false, value will load when it's first retrieved.
+ public FactoryCache(Func factory, TimeSpan expireAfter,
+ bool loadImmediately = false)
+ {
+ _expireAfter = expireAfter;
+ _factory = factory;
+ if (loadImmediately)
+ {
+ Value = _factory();
+ LastUpdate = DateTime.UtcNow;
+ }
+ }
+
+ public T GetValue()
+ {
+ lock (_locker)
+ {
+ if (DateTime.UtcNow - LastUpdate > _expireAfter)
+ {
+ LastUpdate = DateTime.UtcNow;
+ return Value = _factory();
+ }
+
+ return Value;
+ }
+ }
+ }
+}
diff --git a/NadekoBot.Core/Common/Caching/IFactoryCache.cs b/NadekoBot.Core/Common/Caching/IFactoryCache.cs
new file mode 100644
index 00000000..439152d4
--- /dev/null
+++ b/NadekoBot.Core/Common/Caching/IFactoryCache.cs
@@ -0,0 +1,13 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace NadekoBot.Core.Common.Caching
+{
+ public interface IFactoryCache
+ {
+
+ }
+}
diff --git a/src/NadekoBot/Common/Collections/ConcurrentHashSet.cs b/NadekoBot.Core/Common/Collections/ConcurrentHashSet.cs
similarity index 100%
rename from src/NadekoBot/Common/Collections/ConcurrentHashSet.cs
rename to NadekoBot.Core/Common/Collections/ConcurrentHashSet.cs
diff --git a/src/NadekoBot/Common/Collections/DisposableImutableList.cs b/NadekoBot.Core/Common/Collections/DisposableImutableList.cs
similarity index 100%
rename from src/NadekoBot/Common/Collections/DisposableImutableList.cs
rename to NadekoBot.Core/Common/Collections/DisposableImutableList.cs
diff --git a/src/NadekoBot/Common/Collections/IndexedCollection.cs b/NadekoBot.Core/Common/Collections/IndexedCollection.cs
similarity index 96%
rename from src/NadekoBot/Common/Collections/IndexedCollection.cs
rename to NadekoBot.Core/Common/Collections/IndexedCollection.cs
index 6ef057c8..64948970 100644
--- a/src/NadekoBot/Common/Collections/IndexedCollection.cs
+++ b/NadekoBot.Core/Common/Collections/IndexedCollection.cs
@@ -1,7 +1,7 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using NadekoBot.Services.Database.Models;
+using NadekoBot.Core.Services.Database.Models;
namespace NadekoBot.Common.Collections
{
@@ -10,6 +10,10 @@ namespace NadekoBot.Common.Collections
public List Source { get; }
private readonly object _locker = new object();
+ public IndexedCollection()
+ {
+ Source = new List();
+ }
public IndexedCollection(IEnumerable source)
{
lock (_locker)
diff --git a/src/NadekoBot/Common/Collections/PoopyRingBuffer.cs b/NadekoBot.Core/Common/Collections/PoopyRingBuffer.cs
similarity index 100%
rename from src/NadekoBot/Common/Collections/PoopyRingBuffer.cs
rename to NadekoBot.Core/Common/Collections/PoopyRingBuffer.cs
diff --git a/src/NadekoBot/Common/CommandData.cs b/NadekoBot.Core/Common/CommandData.cs
similarity index 100%
rename from src/NadekoBot/Common/CommandData.cs
rename to NadekoBot.Core/Common/CommandData.cs
diff --git a/src/NadekoBot/Common/ModuleBehaviors/IEarlyBlocker.cs b/NadekoBot.Core/Common/ModuleBehaviors/IEarlyBlocker.cs
similarity index 100%
rename from src/NadekoBot/Common/ModuleBehaviors/IEarlyBlocker.cs
rename to NadekoBot.Core/Common/ModuleBehaviors/IEarlyBlocker.cs
diff --git a/src/NadekoBot/Common/ModuleBehaviors/IEarlyBlockingExecutor.cs b/NadekoBot.Core/Common/ModuleBehaviors/IEarlyBlockingExecutor.cs
similarity index 100%
rename from src/NadekoBot/Common/ModuleBehaviors/IEarlyBlockingExecutor.cs
rename to NadekoBot.Core/Common/ModuleBehaviors/IEarlyBlockingExecutor.cs
diff --git a/src/NadekoBot/Common/ModuleBehaviors/IEarlyExecutor.cs b/NadekoBot.Core/Common/ModuleBehaviors/IEarlyExecutor.cs
similarity index 100%
rename from src/NadekoBot/Common/ModuleBehaviors/IEarlyExecutor.cs
rename to NadekoBot.Core/Common/ModuleBehaviors/IEarlyExecutor.cs
diff --git a/src/NadekoBot/Common/ModuleBehaviors/IINputTransformer.cs b/NadekoBot.Core/Common/ModuleBehaviors/IINputTransformer.cs
similarity index 100%
rename from src/NadekoBot/Common/ModuleBehaviors/IINputTransformer.cs
rename to NadekoBot.Core/Common/ModuleBehaviors/IINputTransformer.cs
diff --git a/src/NadekoBot/Common/ModuleBehaviors/ILateBlocker.cs b/NadekoBot.Core/Common/ModuleBehaviors/ILateBlocker.cs
similarity index 100%
rename from src/NadekoBot/Common/ModuleBehaviors/ILateBlocker.cs
rename to NadekoBot.Core/Common/ModuleBehaviors/ILateBlocker.cs
diff --git a/src/NadekoBot/Common/ModuleBehaviors/ILateBlockingExecutor.cs b/NadekoBot.Core/Common/ModuleBehaviors/ILateBlockingExecutor.cs
similarity index 100%
rename from src/NadekoBot/Common/ModuleBehaviors/ILateBlockingExecutor.cs
rename to NadekoBot.Core/Common/ModuleBehaviors/ILateBlockingExecutor.cs
diff --git a/src/NadekoBot/Common/ModuleBehaviors/ILateExecutor.cs b/NadekoBot.Core/Common/ModuleBehaviors/ILateExecutor.cs
similarity index 100%
rename from src/NadekoBot/Common/ModuleBehaviors/ILateExecutor.cs
rename to NadekoBot.Core/Common/ModuleBehaviors/ILateExecutor.cs
diff --git a/src/NadekoBot/Modules/NadekoModule.cs b/NadekoBot.Core/Common/NadekoModule.cs
similarity index 98%
rename from src/NadekoBot/Modules/NadekoModule.cs
rename to NadekoBot.Core/Common/NadekoModule.cs
index f6f06afd..5a563ba6 100644
--- a/src/NadekoBot/Modules/NadekoModule.cs
+++ b/NadekoBot.Core/Common/NadekoModule.cs
@@ -1,12 +1,12 @@
using Discord;
using Discord.Commands;
using NadekoBot.Extensions;
-using NadekoBot.Services;
+using NadekoBot.Core.Services;
using NLog;
using System.Globalization;
using System.Threading.Tasks;
using Discord.WebSocket;
-using NadekoBot.Services.Impl;
+using NadekoBot.Core.Services.Impl;
namespace NadekoBot.Modules
{
diff --git a/src/NadekoBot/Modules/NadekoModuleExtensions.cs b/NadekoBot.Core/Common/NadekoModuleExtensions.cs
similarity index 100%
rename from src/NadekoBot/Modules/NadekoModuleExtensions.cs
rename to NadekoBot.Core/Common/NadekoModuleExtensions.cs
diff --git a/src/NadekoBot/Common/NadekoRandom.cs b/NadekoBot.Core/Common/NadekoRandom.cs
similarity index 100%
rename from src/NadekoBot/Common/NadekoRandom.cs
rename to NadekoBot.Core/Common/NadekoRandom.cs
diff --git a/src/NadekoBot/Common/NoPublicBotPrecondition.cs b/NadekoBot.Core/Common/NoPublicBotPrecondition.cs
similarity index 100%
rename from src/NadekoBot/Common/NoPublicBotPrecondition.cs
rename to NadekoBot.Core/Common/NoPublicBotPrecondition.cs
diff --git a/src/NadekoBot/Common/PlatformHelper.cs b/NadekoBot.Core/Common/PlatformHelper.cs
similarity index 100%
rename from src/NadekoBot/Common/PlatformHelper.cs
rename to NadekoBot.Core/Common/PlatformHelper.cs
diff --git a/NadekoBot.Core/Common/Pokemon/PokemonNameId.cs b/NadekoBot.Core/Common/Pokemon/PokemonNameId.cs
new file mode 100644
index 00000000..628b56d6
--- /dev/null
+++ b/NadekoBot.Core/Common/Pokemon/PokemonNameId.cs
@@ -0,0 +1,8 @@
+namespace NadekoBot.Core.Common.Pokemon
+{
+ public class PokemonNameId
+ {
+ public int Id { get; set; }
+ public string Name { get; set; }
+ }
+}
diff --git a/src/NadekoBot/Modules/Searches/Common/SearchPokemon.cs b/NadekoBot.Core/Common/Pokemon/SearchPokemon.cs
similarity index 66%
rename from src/NadekoBot/Modules/Searches/Common/SearchPokemon.cs
rename to NadekoBot.Core/Common/Pokemon/SearchPokemon.cs
index 29de4e00..fa541f8c 100644
--- a/src/NadekoBot/Modules/Searches/Common/SearchPokemon.cs
+++ b/NadekoBot.Core/Common/Pokemon/SearchPokemon.cs
@@ -1,6 +1,6 @@
using System.Collections.Generic;
-namespace NadekoBot.Modules.Searches.Common
+namespace NadekoBot.Core.Common.Pokemon
{
public class SearchPokemon
{
@@ -9,6 +9,7 @@ namespace NadekoBot.Modules.Searches.Common
public float M { get; set; }
public float F { get; set; }
}
+
public class BaseStatsClass
{
public int HP { get; set; }
@@ -21,6 +22,7 @@ namespace NadekoBot.Modules.Searches.Common
public override string ToString() => $@"**HP:** {HP,-4} **ATK:** {ATK,-4} **DEF:** {DEF,-4}
**SPA:** {SPA,-4} **SPD:** {SPD,-4} **SPE:** {SPE,-4}";
}
+
public int Id { get; set; }
public string Species { get; set; }
public string[] Types { get; set; }
@@ -32,24 +34,5 @@ namespace NadekoBot.Modules.Searches.Common
public string Color { get; set; }
public string[] Evos { get; set; }
public string[] EggGroups { get; set; }
-
-// public override string ToString() => $@"`Name:` {Species}
-//`Types:` {string.Join(", ", Types)}
-//`Stats:` {BaseStats}
-//`Height:` {HeightM,4}m `Weight:` {WeightKg}kg
-//`Abilities:` {string.Join(", ", Abilities.Values)}";
-
- }
-
- public class SearchPokemonAbility
- {
- public string Desc { get; set; }
- public string ShortDesc { get; set; }
- public string Name { get; set; }
- public float Rating { get; set; }
-
-// public override string ToString() => $@"`Name:` : {Name}
-//`Rating:` {Rating}
-//`Description:` {Desc}";
}
}
diff --git a/NadekoBot.Core/Common/Pokemon/SearchPokemonAbility.cs b/NadekoBot.Core/Common/Pokemon/SearchPokemonAbility.cs
new file mode 100644
index 00000000..0173749d
--- /dev/null
+++ b/NadekoBot.Core/Common/Pokemon/SearchPokemonAbility.cs
@@ -0,0 +1,10 @@
+namespace NadekoBot.Core.Common.Pokemon
+{
+ public class SearchPokemonAbility
+ {
+ public string Desc { get; set; }
+ public string ShortDesc { get; set; }
+ public string Name { get; set; }
+ public float Rating { get; set; }
+ }
+}
diff --git a/src/NadekoBot/Common/Replacements/ReplacementBuilder.cs b/NadekoBot.Core/Common/Replacements/ReplacementBuilder.cs
similarity index 98%
rename from src/NadekoBot/Common/Replacements/ReplacementBuilder.cs
rename to NadekoBot.Core/Common/Replacements/ReplacementBuilder.cs
index 4df63980..ad6a2710 100644
--- a/src/NadekoBot/Common/Replacements/ReplacementBuilder.cs
+++ b/NadekoBot.Core/Common/Replacements/ReplacementBuilder.cs
@@ -6,8 +6,8 @@ using Discord;
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Extensions;
-using NadekoBot.Modules.Administration.Services;
using NadekoBot.Modules.Music.Services;
+using NadekoBot.Modules.Administration.Services;
namespace NadekoBot.Common.Replacements
{
@@ -97,7 +97,7 @@ namespace NadekoBot.Common.Replacements
try
{
var mp = ms.MusicPlayers.FirstOrDefault();
- var title = mp.Value?.Current.Current?.Title;
+ var title = mp.Value?.Current.Current?.Title;
return title ?? "No songs";
}
catch
diff --git a/src/NadekoBot/Common/Replacements/Replacer.cs b/NadekoBot.Core/Common/Replacements/Replacer.cs
similarity index 100%
rename from src/NadekoBot/Common/Replacements/Replacer.cs
rename to NadekoBot.Core/Common/Replacements/Replacer.cs
diff --git a/src/NadekoBot/Common/ShardCom/IShardComMessage.cs b/NadekoBot.Core/Common/ShardCom/ShardComMessage.cs
similarity index 54%
rename from src/NadekoBot/Common/ShardCom/IShardComMessage.cs
rename to NadekoBot.Core/Common/ShardCom/ShardComMessage.cs
index 1ea37c67..2baf9f0e 100644
--- a/src/NadekoBot/Common/ShardCom/IShardComMessage.cs
+++ b/NadekoBot.Core/Common/ShardCom/ShardComMessage.cs
@@ -9,5 +9,14 @@ namespace NadekoBot.Common.ShardCom
public ConnectionState ConnectionState { get; set; }
public int Guilds { get; set; }
public DateTime Time { get; set; }
+
+ public ShardComMessage Clone() =>
+ new ShardComMessage
+ {
+ ShardId = ShardId,
+ ConnectionState = ConnectionState,
+ Guilds = Guilds,
+ Time = Time,
+ };
}
}
diff --git a/NadekoBot.Core/Common/ShardCom/ShardComServer.cs b/NadekoBot.Core/Common/ShardCom/ShardComServer.cs
new file mode 100644
index 00000000..cc612ec9
--- /dev/null
+++ b/NadekoBot.Core/Common/ShardCom/ShardComServer.cs
@@ -0,0 +1,31 @@
+using System;
+using System.Net;
+using System.Net.Sockets;
+using System.Text;
+using System.Threading.Tasks;
+using Newtonsoft.Json;
+using NadekoBot.Core.Services;
+
+namespace NadekoBot.Common.ShardCom
+{
+ public class ShardComServer
+ {
+ private readonly IDataCache _cache;
+
+ public ShardComServer(IDataCache cache)
+ {
+ _cache = cache;
+ }
+
+ public void Start()
+ {
+ var sub = _cache.Redis.GetSubscriber();
+ sub.SubscribeAsync("shardcoord_send", (ch, data) =>
+ {
+ var _ = OnDataReceived(JsonConvert.DeserializeObject(data));
+ }, StackExchange.Redis.CommandFlags.FireAndForget);
+ }
+
+ public event Func OnDataReceived = delegate { return Task.CompletedTask; };
+ }
+}
diff --git a/src/NadekoBot/Services/Discord/SocketMessageEventWrapper.cs b/NadekoBot.Core/Common/SocketMessageEventWrapper.cs
similarity index 98%
rename from src/NadekoBot/Services/Discord/SocketMessageEventWrapper.cs
rename to NadekoBot.Core/Common/SocketMessageEventWrapper.cs
index 3c3aabf9..05e94025 100644
--- a/src/NadekoBot/Services/Discord/SocketMessageEventWrapper.cs
+++ b/NadekoBot.Core/Common/SocketMessageEventWrapper.cs
@@ -3,7 +3,7 @@ using Discord.WebSocket;
using System;
using System.Threading.Tasks;
-namespace NadekoBot.Services.Discord
+namespace NadekoBot.Common
{
public class ReactionEventWrapper : IDisposable
{
diff --git a/src/NadekoBot/Common/TypeReaders/AddRemove.cs b/NadekoBot.Core/Common/TypeReaders/AddRemove.cs
similarity index 100%
rename from src/NadekoBot/Common/TypeReaders/AddRemove.cs
rename to NadekoBot.Core/Common/TypeReaders/AddRemove.cs
diff --git a/src/NadekoBot/Common/TypeReaders/BotCommandTypeReader.cs b/NadekoBot.Core/Common/TypeReaders/BotCommandTypeReader.cs
similarity index 77%
rename from src/NadekoBot/Common/TypeReaders/BotCommandTypeReader.cs
rename to NadekoBot.Core/Common/TypeReaders/BotCommandTypeReader.cs
index d80fbd52..32e4ee6b 100644
--- a/src/NadekoBot/Common/TypeReaders/BotCommandTypeReader.cs
+++ b/NadekoBot.Core/Common/TypeReaders/BotCommandTypeReader.cs
@@ -2,13 +2,19 @@
using System.Linq;
using System.Threading.Tasks;
using Discord.Commands;
+using NadekoBot.Core.Services;
using NadekoBot.Modules.CustomReactions.Services;
-using NadekoBot.Services;
+using NadekoBot.Core.Common.TypeReaders;
+using Discord.WebSocket;
namespace NadekoBot.Common.TypeReaders
{
- public class CommandTypeReader : TypeReader
+ public class CommandTypeReader : NadekoTypeReader
{
+ public CommandTypeReader(DiscordSocketClient client, CommandService cmds) : base(client, cmds)
+ {
+ }
+
public override Task Read(ICommandContext context, string input, IServiceProvider services)
{
var _cmds = ((INServiceProvider)services).GetService();
@@ -29,8 +35,16 @@ namespace NadekoBot.Common.TypeReaders
}
}
- public class CommandOrCrTypeReader : CommandTypeReader
+ public class CommandOrCrTypeReader : NadekoTypeReader
{
+ private readonly DiscordSocketClient _client;
+ private readonly CommandService _cmds;
+ public CommandOrCrTypeReader(DiscordSocketClient client, CommandService cmds) : base(client, cmds)
+ {
+ _client = client;
+ _cmds = cmds;
+ }
+
public override async Task Read(ICommandContext context, string input, IServiceProvider services)
{
input = input.ToUpperInvariant();
@@ -53,7 +67,7 @@ namespace NadekoBot.Common.TypeReaders
}
}
- var cmd = await base.Read(context, input, services);
+ var cmd = await new CommandTypeReader(_client, _cmds).Read(context, input, services);
if (cmd.IsSuccess)
{
return TypeReaderResult.FromSuccess(new CommandOrCrInfo(((CommandInfo)cmd.Values.First().Value).Name));
diff --git a/src/NadekoBot/Common/TypeReaders/GuildDateTimeTypeReader.cs b/NadekoBot.Core/Common/TypeReaders/GuildDateTimeTypeReader.cs
similarity index 83%
rename from src/NadekoBot/Common/TypeReaders/GuildDateTimeTypeReader.cs
rename to NadekoBot.Core/Common/TypeReaders/GuildDateTimeTypeReader.cs
index b1fa1f00..3103cbf3 100644
--- a/src/NadekoBot/Common/TypeReaders/GuildDateTimeTypeReader.cs
+++ b/NadekoBot.Core/Common/TypeReaders/GuildDateTimeTypeReader.cs
@@ -2,11 +2,17 @@
using System.Threading.Tasks;
using Discord.Commands;
using NadekoBot.Modules.Administration.Services;
+using NadekoBot.Core.Common.TypeReaders;
+using Discord.WebSocket;
namespace NadekoBot.Common.TypeReaders
{
- public class GuildDateTimeTypeReader : TypeReader
+ public class GuildDateTimeTypeReader : NadekoTypeReader
{
+ public GuildDateTimeTypeReader(DiscordSocketClient client, CommandService cmds) : base(client, cmds)
+ {
+ }
+
public override Task Read(ICommandContext context, string input, IServiceProvider services)
{
var _gts = (GuildTimezoneService)services.GetService(typeof(GuildTimezoneService));
diff --git a/src/NadekoBot/Common/TypeReaders/GuildTypeReader.cs b/NadekoBot.Core/Common/TypeReaders/GuildTypeReader.cs
similarity index 81%
rename from src/NadekoBot/Common/TypeReaders/GuildTypeReader.cs
rename to NadekoBot.Core/Common/TypeReaders/GuildTypeReader.cs
index 132e1f0f..cad1a8e4 100644
--- a/src/NadekoBot/Common/TypeReaders/GuildTypeReader.cs
+++ b/NadekoBot.Core/Common/TypeReaders/GuildTypeReader.cs
@@ -3,17 +3,20 @@ using System.Linq;
using System.Threading.Tasks;
using Discord.Commands;
using Discord.WebSocket;
+using NadekoBot.Core.Common.TypeReaders;
+using Discord;
namespace NadekoBot.Common.TypeReaders
{
- public class GuildTypeReader : TypeReader
+ public class GuildTypeReader : NadekoTypeReader
{
private readonly DiscordSocketClient _client;
- public GuildTypeReader(DiscordSocketClient client)
+ public GuildTypeReader(DiscordSocketClient client, CommandService cmds) : base(client, cmds)
{
_client = client;
}
+
public override Task Read(ICommandContext context, string input, IServiceProvider _)
{
input = input.Trim().ToLowerInvariant();
diff --git a/src/NadekoBot/Common/TypeReaders/Models/PermissionAction.cs b/NadekoBot.Core/Common/TypeReaders/Models/PermissionAction.cs
similarity index 100%
rename from src/NadekoBot/Common/TypeReaders/Models/PermissionAction.cs
rename to NadekoBot.Core/Common/TypeReaders/Models/PermissionAction.cs
diff --git a/src/NadekoBot/Common/TypeReaders/ModuleTypeReader.cs b/NadekoBot.Core/Common/TypeReaders/ModuleTypeReader.cs
similarity index 80%
rename from src/NadekoBot/Common/TypeReaders/ModuleTypeReader.cs
rename to NadekoBot.Core/Common/TypeReaders/ModuleTypeReader.cs
index 1978732d..e7f49ec7 100644
--- a/src/NadekoBot/Common/TypeReaders/ModuleTypeReader.cs
+++ b/NadekoBot.Core/Common/TypeReaders/ModuleTypeReader.cs
@@ -3,14 +3,16 @@ using System.Linq;
using System.Threading.Tasks;
using Discord.Commands;
using NadekoBot.Extensions;
+using NadekoBot.Core.Common.TypeReaders;
+using Discord.WebSocket;
namespace NadekoBot.Common.TypeReaders
{
- public class ModuleTypeReader : TypeReader
+ public class ModuleTypeReader : NadekoTypeReader
{
private readonly CommandService _cmds;
- public ModuleTypeReader(CommandService cmds)
+ public ModuleTypeReader(DiscordSocketClient client, CommandService cmds) : base(client, cmds)
{
_cmds = cmds;
}
@@ -26,11 +28,11 @@ namespace NadekoBot.Common.TypeReaders
}
}
- public class ModuleOrCrTypeReader : TypeReader
+ public class ModuleOrCrTypeReader : NadekoTypeReader
{
private readonly CommandService _cmds;
- public ModuleOrCrTypeReader(CommandService cmds)
+ public ModuleOrCrTypeReader(DiscordSocketClient client, CommandService cmds) : base(client, cmds)
{
_cmds = cmds;
}
diff --git a/NadekoBot.Core/Common/TypeReaders/NadekoTypeReader.cs b/NadekoBot.Core/Common/TypeReaders/NadekoTypeReader.cs
new file mode 100644
index 00000000..062b4537
--- /dev/null
+++ b/NadekoBot.Core/Common/TypeReaders/NadekoTypeReader.cs
@@ -0,0 +1,19 @@
+using Discord.Commands;
+using Discord.WebSocket;
+
+namespace NadekoBot.Core.Common.TypeReaders
+{
+ public abstract class NadekoTypeReader : TypeReader where
+ T : class
+ {
+ private readonly DiscordSocketClient _client;
+ private readonly CommandService _cmds;
+
+ private NadekoTypeReader() { }
+ public NadekoTypeReader(DiscordSocketClient client, CommandService cmds)
+ {
+ _client = client;
+ _cmds = cmds;
+ }
+ }
+}
diff --git a/src/NadekoBot/Common/TypeReaders/PermissionActionTypeReader.cs b/NadekoBot.Core/Common/TypeReaders/PermissionActionTypeReader.cs
similarity index 83%
rename from src/NadekoBot/Common/TypeReaders/PermissionActionTypeReader.cs
rename to NadekoBot.Core/Common/TypeReaders/PermissionActionTypeReader.cs
index 82e16e16..c9455b98 100644
--- a/src/NadekoBot/Common/TypeReaders/PermissionActionTypeReader.cs
+++ b/NadekoBot.Core/Common/TypeReaders/PermissionActionTypeReader.cs
@@ -1,15 +1,21 @@
using System;
using System.Threading.Tasks;
using Discord.Commands;
+using Discord.WebSocket;
using NadekoBot.Common.TypeReaders.Models;
+using NadekoBot.Core.Common.TypeReaders;
namespace NadekoBot.Common.TypeReaders
{
///
/// Used instead of bool for more flexible keywords for true/false only in the permission module
///
- public class PermissionActionTypeReader : TypeReader
+ public class PermissionActionTypeReader : NadekoTypeReader
{
+ public PermissionActionTypeReader(DiscordSocketClient client, CommandService cmds) : base(client, cmds)
+ {
+ }
+
public override Task Read(ICommandContext context, string input, IServiceProvider _)
{
input = input.ToUpperInvariant();
diff --git a/src/NadekoBot/Migrations/20161011200458_first.Designer.cs b/NadekoBot.Core/Migrations/20161011200458_first.Designer.cs
similarity index 75%
rename from src/NadekoBot/Migrations/20161011200458_first.Designer.cs
rename to NadekoBot.Core/Migrations/20161011200458_first.Designer.cs
index 3f80251a..6abdaa2a 100644
--- a/src/NadekoBot/Migrations/20161011200458_first.Designer.cs
+++ b/NadekoBot.Core/Migrations/20161011200458_first.Designer.cs
@@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
-using NadekoBot.Services.Database;
+using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations
{
@@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder
.HasAnnotation("ProductVersion", "1.0.0-rtm-21431");
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -92,7 +92,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -114,7 +114,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -132,7 +132,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -148,7 +148,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -165,7 +165,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -185,7 +185,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -204,7 +204,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -220,7 +220,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -240,7 +240,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -256,7 +256,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -278,7 +278,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -294,7 +294,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -359,7 +359,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -375,7 +375,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -391,7 +391,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -433,7 +433,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -451,7 +451,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -467,7 +467,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -492,7 +492,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -508,7 +508,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -532,7 +532,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -555,7 +555,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -573,7 +573,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -595,7 +595,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Repeater", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Repeater", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -616,7 +616,7 @@ namespace NadekoBot.Migrations
b.ToTable("Repeaters");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -633,124 +633,124 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases")
.HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade);
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId");
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany()
.HasForeignKey("LogSettingId");
- b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany()
.HasForeignKey("RootPermissionId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous")
- .HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId");
+ .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs")
.HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade);
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals")
.HasForeignKey("BotConfigId");
});
diff --git a/src/NadekoBot/Migrations/20161011200458_first.cs b/NadekoBot.Core/Migrations/20161011200458_first.cs
similarity index 100%
rename from src/NadekoBot/Migrations/20161011200458_first.cs
rename to NadekoBot.Core/Migrations/20161011200458_first.cs
diff --git a/src/NadekoBot/Migrations/20161015005020_CurrencyTransaction.Designer.cs b/NadekoBot.Core/Migrations/20161015005020_CurrencyTransaction.Designer.cs
similarity index 76%
rename from src/NadekoBot/Migrations/20161015005020_CurrencyTransaction.Designer.cs
rename to NadekoBot.Core/Migrations/20161015005020_CurrencyTransaction.Designer.cs
index 52db3bf9..36187eec 100644
--- a/src/NadekoBot/Migrations/20161015005020_CurrencyTransaction.Designer.cs
+++ b/NadekoBot.Core/Migrations/20161015005020_CurrencyTransaction.Designer.cs
@@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
-using NadekoBot.Services.Database;
+using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations
{
@@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder
.HasAnnotation("ProductVersion", "1.0.0-rtm-21431");
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -92,7 +92,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -114,7 +114,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -132,7 +132,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -148,7 +148,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -165,7 +165,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -181,7 +181,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -201,7 +201,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -220,7 +220,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -236,7 +236,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -256,7 +256,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -272,7 +272,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -294,7 +294,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -310,7 +310,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -375,7 +375,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -391,7 +391,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -407,7 +407,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -449,7 +449,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -467,7 +467,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -483,7 +483,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -508,7 +508,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -524,7 +524,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -548,7 +548,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -571,7 +571,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -589,7 +589,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -611,7 +611,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Repeater", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Repeater", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -632,7 +632,7 @@ namespace NadekoBot.Migrations
b.ToTable("Repeaters");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -649,124 +649,124 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases")
.HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade);
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId");
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany()
.HasForeignKey("LogSettingId");
- b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany()
.HasForeignKey("RootPermissionId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous")
- .HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId");
+ .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs")
.HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade);
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals")
.HasForeignKey("BotConfigId");
});
diff --git a/src/NadekoBot/Migrations/20161015005020_CurrencyTransaction.cs b/NadekoBot.Core/Migrations/20161015005020_CurrencyTransaction.cs
similarity index 100%
rename from src/NadekoBot/Migrations/20161015005020_CurrencyTransaction.cs
rename to NadekoBot.Core/Migrations/20161015005020_CurrencyTransaction.cs
diff --git a/src/NadekoBot/Migrations/20161015102407_coc.Designer.cs b/NadekoBot.Core/Migrations/20161015102407_coc.Designer.cs
similarity index 76%
rename from src/NadekoBot/Migrations/20161015102407_coc.Designer.cs
rename to NadekoBot.Core/Migrations/20161015102407_coc.Designer.cs
index fd104e1a..3b22fd98 100644
--- a/src/NadekoBot/Migrations/20161015102407_coc.Designer.cs
+++ b/NadekoBot.Core/Migrations/20161015102407_coc.Designer.cs
@@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
-using NadekoBot.Services.Database;
+using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations
{
@@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder
.HasAnnotation("ProductVersion", "1.0.0-rtm-21431");
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -94,7 +94,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -116,7 +116,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -134,7 +134,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -150,7 +150,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -167,7 +167,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -183,7 +183,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -203,7 +203,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -222,7 +222,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -238,7 +238,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -258,7 +258,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -274,7 +274,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -296,7 +296,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -312,7 +312,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -377,7 +377,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -393,7 +393,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -409,7 +409,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -451,7 +451,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -469,7 +469,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -485,7 +485,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -510,7 +510,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -526,7 +526,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -550,7 +550,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -573,7 +573,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -591,7 +591,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -613,7 +613,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Repeater", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Repeater", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -634,7 +634,7 @@ namespace NadekoBot.Migrations
b.ToTable("Repeaters");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -651,124 +651,124 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases")
.HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade);
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId");
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany()
.HasForeignKey("LogSettingId");
- b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany()
.HasForeignKey("RootPermissionId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous")
- .HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId");
+ .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs")
.HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade);
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals")
.HasForeignKey("BotConfigId");
});
diff --git a/src/NadekoBot/Migrations/20161015102407_coc.cs b/NadekoBot.Core/Migrations/20161015102407_coc.cs
similarity index 100%
rename from src/NadekoBot/Migrations/20161015102407_coc.cs
rename to NadekoBot.Core/Migrations/20161015102407_coc.cs
diff --git a/src/NadekoBot/Migrations/20161019055137_MuteRoleName.Designer.cs b/NadekoBot.Core/Migrations/20161019055137_MuteRoleName.Designer.cs
similarity index 76%
rename from src/NadekoBot/Migrations/20161019055137_MuteRoleName.Designer.cs
rename to NadekoBot.Core/Migrations/20161019055137_MuteRoleName.Designer.cs
index f86d532c..8f4db4e6 100644
--- a/src/NadekoBot/Migrations/20161019055137_MuteRoleName.Designer.cs
+++ b/NadekoBot.Core/Migrations/20161019055137_MuteRoleName.Designer.cs
@@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
-using NadekoBot.Services.Database;
+using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations
{
@@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder
.HasAnnotation("ProductVersion", "1.0.0-rtm-21431");
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -94,7 +94,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -116,7 +116,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -134,7 +134,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -150,7 +150,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -167,7 +167,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -183,7 +183,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -203,7 +203,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -222,7 +222,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -238,7 +238,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -258,7 +258,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -274,7 +274,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -296,7 +296,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -312,7 +312,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -379,7 +379,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -395,7 +395,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -411,7 +411,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -453,7 +453,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -471,7 +471,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -487,7 +487,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -512,7 +512,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -528,7 +528,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -552,7 +552,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -575,7 +575,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -593,7 +593,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -615,7 +615,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Repeater", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Repeater", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -636,7 +636,7 @@ namespace NadekoBot.Migrations
b.ToTable("Repeaters");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -653,124 +653,124 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases")
.HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade);
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId");
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany()
.HasForeignKey("LogSettingId");
- b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany()
.HasForeignKey("RootPermissionId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous")
- .HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId");
+ .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs")
.HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade);
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals")
.HasForeignKey("BotConfigId");
});
diff --git a/src/NadekoBot/Migrations/20161019055137_MuteRoleName.cs b/NadekoBot.Core/Migrations/20161019055137_MuteRoleName.cs
similarity index 100%
rename from src/NadekoBot/Migrations/20161019055137_MuteRoleName.cs
rename to NadekoBot.Core/Migrations/20161019055137_MuteRoleName.cs
diff --git a/src/NadekoBot/Migrations/20161107213222_Cleverbot.Designer.cs b/NadekoBot.Core/Migrations/20161107213222_Cleverbot.Designer.cs
similarity index 76%
rename from src/NadekoBot/Migrations/20161107213222_Cleverbot.Designer.cs
rename to NadekoBot.Core/Migrations/20161107213222_Cleverbot.Designer.cs
index 50ac3309..6de7b38d 100644
--- a/src/NadekoBot/Migrations/20161107213222_Cleverbot.Designer.cs
+++ b/NadekoBot.Core/Migrations/20161107213222_Cleverbot.Designer.cs
@@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
-using NadekoBot.Services.Database;
+using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations
{
@@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder
.HasAnnotation("ProductVersion", "1.0.0-rtm-21431");
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -94,7 +94,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -116,7 +116,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -134,7 +134,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -150,7 +150,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -167,7 +167,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -183,7 +183,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -203,7 +203,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -222,7 +222,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -238,7 +238,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -258,7 +258,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -274,7 +274,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -296,7 +296,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -312,7 +312,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -381,7 +381,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -397,7 +397,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -413,7 +413,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -455,7 +455,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -473,7 +473,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -489,7 +489,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -514,7 +514,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -530,7 +530,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -554,7 +554,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -577,7 +577,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -595,7 +595,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -617,7 +617,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Repeater", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Repeater", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -638,7 +638,7 @@ namespace NadekoBot.Migrations
b.ToTable("Repeaters");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -655,124 +655,124 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases")
.HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade);
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId");
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany()
.HasForeignKey("LogSettingId");
- b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany()
.HasForeignKey("RootPermissionId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous")
- .HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId");
+ .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs")
.HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade);
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals")
.HasForeignKey("BotConfigId");
});
diff --git a/src/NadekoBot/Migrations/20161107213222_Cleverbot.cs b/NadekoBot.Core/Migrations/20161107213222_Cleverbot.cs
similarity index 100%
rename from src/NadekoBot/Migrations/20161107213222_Cleverbot.cs
rename to NadekoBot.Core/Migrations/20161107213222_Cleverbot.cs
diff --git a/src/NadekoBot/Migrations/20161122100602_Greet and bye improved.Designer.cs b/NadekoBot.Core/Migrations/20161122100602_Greet and bye improved.Designer.cs
similarity index 76%
rename from src/NadekoBot/Migrations/20161122100602_Greet and bye improved.Designer.cs
rename to NadekoBot.Core/Migrations/20161122100602_Greet and bye improved.Designer.cs
index 8a9f83eb..81a967e6 100644
--- a/src/NadekoBot/Migrations/20161122100602_Greet and bye improved.Designer.cs
+++ b/NadekoBot.Core/Migrations/20161122100602_Greet and bye improved.Designer.cs
@@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
-using NadekoBot.Services.Database;
+using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations
{
@@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -94,7 +94,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -116,7 +116,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -134,7 +134,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -150,7 +150,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -167,7 +167,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -183,7 +183,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -203,7 +203,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -222,7 +222,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -238,7 +238,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -258,7 +258,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -274,7 +274,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -296,7 +296,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -312,7 +312,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -383,7 +383,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -399,7 +399,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -415,7 +415,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -457,7 +457,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -475,7 +475,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -491,7 +491,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -516,7 +516,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -532,7 +532,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -556,7 +556,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -579,7 +579,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -597,7 +597,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -619,7 +619,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Repeater", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Repeater", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -640,7 +640,7 @@ namespace NadekoBot.Migrations
b.ToTable("Repeaters");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -657,124 +657,124 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases")
.HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade);
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId");
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany()
.HasForeignKey("LogSettingId");
- b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany()
.HasForeignKey("RootPermissionId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous")
- .HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId");
+ .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs")
.HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade);
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals")
.HasForeignKey("BotConfigId");
});
diff --git a/src/NadekoBot/Migrations/20161122100602_Greet and bye improved.cs b/NadekoBot.Core/Migrations/20161122100602_Greet and bye improved.cs
similarity index 100%
rename from src/NadekoBot/Migrations/20161122100602_Greet and bye improved.cs
rename to NadekoBot.Core/Migrations/20161122100602_Greet and bye improved.cs
diff --git a/src/NadekoBot/Migrations/20161127233843_PokeGame.Designer.cs b/NadekoBot.Core/Migrations/20161127233843_PokeGame.Designer.cs
similarity index 76%
rename from src/NadekoBot/Migrations/20161127233843_PokeGame.Designer.cs
rename to NadekoBot.Core/Migrations/20161127233843_PokeGame.Designer.cs
index b1856225..b8ecfa48 100644
--- a/src/NadekoBot/Migrations/20161127233843_PokeGame.Designer.cs
+++ b/NadekoBot.Core/Migrations/20161127233843_PokeGame.Designer.cs
@@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
-using NadekoBot.Services.Database;
+using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations
{
@@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -94,7 +94,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -116,7 +116,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -134,7 +134,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -150,7 +150,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -167,7 +167,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -183,7 +183,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -203,7 +203,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -222,7 +222,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -238,7 +238,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -258,7 +258,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -274,7 +274,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -296,7 +296,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -312,7 +312,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -383,7 +383,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -399,7 +399,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -415,7 +415,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -457,7 +457,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -475,7 +475,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -491,7 +491,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -516,7 +516,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -532,7 +532,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -556,7 +556,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -579,7 +579,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -597,7 +597,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -619,7 +619,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Repeater", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Repeater", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -640,7 +640,7 @@ namespace NadekoBot.Migrations
b.ToTable("Repeaters");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -657,7 +657,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -674,124 +674,124 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases")
.HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade);
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId");
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.GuildConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany()
.HasForeignKey("LogSettingId");
- b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany()
.HasForeignKey("RootPermissionId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous")
- .HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId");
+ .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs")
.HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade);
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{
- b.HasOne("NadekoBot.Services.Database.Models.BotConfig")
+ b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals")
.HasForeignKey("BotConfigId");
});
diff --git a/src/NadekoBot/Migrations/20161127233843_PokeGame.cs b/NadekoBot.Core/Migrations/20161127233843_PokeGame.cs
similarity index 100%
rename from src/NadekoBot/Migrations/20161127233843_PokeGame.cs
rename to NadekoBot.Core/Migrations/20161127233843_PokeGame.cs
diff --git a/src/NadekoBot/Migrations/20161213025624_mutedusers.Designer.cs b/NadekoBot.Core/Migrations/20161213025624_mutedusers.Designer.cs
similarity index 76%
rename from src/NadekoBot/Migrations/20161213025624_mutedusers.Designer.cs
rename to NadekoBot.Core/Migrations/20161213025624_mutedusers.Designer.cs
index f142b4fc..69660b6d 100644
--- a/src/NadekoBot/Migrations/20161213025624_mutedusers.Designer.cs
+++ b/NadekoBot.Core/Migrations/20161213025624_mutedusers.Designer.cs
@@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
-using NadekoBot.Services.Database;
+using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations
{
@@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -94,7 +94,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -116,7 +116,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -134,7 +134,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -150,7 +150,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -167,7 +167,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -183,7 +183,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -203,7 +203,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -222,7 +222,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -238,7 +238,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -258,7 +258,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -274,7 +274,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -296,7 +296,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -312,7 +312,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -383,7 +383,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -399,7 +399,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -415,7 +415,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -457,7 +457,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -475,7 +475,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -491,7 +491,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -507,7 +507,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -532,7 +532,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -548,7 +548,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -572,7 +572,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -595,7 +595,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -613,7 +613,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -635,7 +635,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.Repeater", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Repeater", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
@@ -656,7 +656,7 @@ namespace NadekoBot.Migrations
b.ToTable("Repeaters");
});
- modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b =>
+ modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{
b.Property