From e8e6854959413ce0fdabb8d3b66f9864dea51e94 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Wed, 18 Oct 2017 04:32:05 +0200 Subject: [PATCH] now even runs --- .../Services/PackagesService.cs | 56 +++++++++---------- .../_Extensions/IMessageChannelExtensions.cs | 1 - 2 files changed, 28 insertions(+), 29 deletions(-) diff --git a/NadekoBot.Core/Modules/Administration/Services/PackagesService.cs b/NadekoBot.Core/Modules/Administration/Services/PackagesService.cs index 26f6bef0..2cfdf377 100644 --- a/NadekoBot.Core/Modules/Administration/Services/PackagesService.cs +++ b/NadekoBot.Core/Modules/Administration/Services/PackagesService.cs @@ -1,31 +1,31 @@ -using NadekoBot.Core.Services; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text.RegularExpressions; +//using NadekoBot.Core.Services; +//using System; +//using System.Collections.Generic; +//using System.IO; +//using System.Linq; +//using System.Text.RegularExpressions; -namespace NadekoBot.Modules.Administration.Services -{ - public class PackagesService : INService - { - public IEnumerable Packages { get; private set; } +//namespace NadekoBot.Modules.Administration.Services +//{ +// public class PackagesService : INService +// { +// public IEnumerable Packages { get; private set; } - public PackagesService() - { - ReloadAvailablePackages(); - } +// public PackagesService() +// { +// ReloadAvailablePackages(); +// } - public void ReloadAvailablePackages() - { - Packages = Directory.GetDirectories(Path.Combine(AppContext.BaseDirectory, "modules\\"), "NadekoBot.Modules.*", SearchOption.AllDirectories) - .SelectMany(x => Directory.GetFiles(x, "NadekoBot.Modules.*.dll")) - .Select(x => Path.GetFileNameWithoutExtension(x)) - .Select(x => - { - var m = Regex.Match(x, @"NadekoBot\.Modules\.(?.*)"); - return m.Groups["name"].Value; - }); - } - } -} +// public void ReloadAvailablePackages() +// { +// Packages = Directory.GetDirectories(Path.Combine(AppContext.BaseDirectory, "modules\\"), "NadekoBot.Modules.*", SearchOption.AllDirectories) +// .SelectMany(x => Directory.GetFiles(x, "NadekoBot.Modules.*.dll")) +// .Select(x => Path.GetFileNameWithoutExtension(x)) +// .Select(x => +// { +// var m = Regex.Match(x, @"NadekoBot\.Modules\.(?.*)"); +// return m.Groups["name"].Value; +// }); +// } +// } +//} diff --git a/NadekoBot.Core/_Extensions/IMessageChannelExtensions.cs b/NadekoBot.Core/_Extensions/IMessageChannelExtensions.cs index ef2297d9..343dbfed 100644 --- a/NadekoBot.Core/_Extensions/IMessageChannelExtensions.cs +++ b/NadekoBot.Core/_Extensions/IMessageChannelExtensions.cs @@ -74,7 +74,6 @@ namespace NadekoBot.Extensions if (lastPage == 0) return; - await msg.AddReactionAsync(arrow_left).ConfigureAwait(false); await msg.AddReactionAsync(arrow_right).ConfigureAwait(false);