.gc and stream follows should properly persist restarts

This commit is contained in:
Master Kwoth
2017-06-25 02:35:37 +02:00
parent f11429b714
commit e1baa3942a
6 changed files with 15 additions and 19 deletions

View File

@ -14,6 +14,7 @@ using NadekoBot.Services.Database.Models;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Services.Administration;
using System.Diagnostics;
using NadekoBot.DataStructures;
namespace NadekoBot.Modules.Administration
{
@ -207,12 +208,11 @@ namespace NadekoBot.Modules.Administration
//todo 2 shard commands
//[NadekoCommand, Usage, Description, Aliases]
//[Shard0Precondition]
//[OwnerOnly]
//public async Task ConnectShard(int shardid)
//public async Task RestartShard(int shardid)
//{
// var shard = _client.GetShard(shardid);
// if (shard == null)
// if (shardid == 0 || shardid > b)
// {
// await ReplyErrorLocalized("no_shard_id").ConfigureAwait(false);
// return;

View File

@ -116,7 +116,7 @@ namespace NadekoBot.Modules.Games
bool enabled;
using (var uow = _db.UnitOfWork)
{
var guildConfig = uow.GuildConfigs.For(channel.Id, set => set.Include(gc => gc.GenerateCurrencyChannelIds));
var guildConfig = uow.GuildConfigs.For(channel.Guild.Id, set => set.Include(gc => gc.GenerateCurrencyChannelIds));
var toAdd = new GCChannelId() { ChannelId = channel.Id };
if (!guildConfig.GenerateCurrencyChannelIds.Contains(toAdd))

View File

@ -299,8 +299,6 @@ namespace NadekoBot.Modules.Utility
Format.Bold(x.ConnectionState.ToString()), Format.Bold(x.Guilds.ToString())))
.ToArray();
await Context.Channel.SendPaginatedConfirmAsync(_client, page, (curPage) =>
{