Temporarily don't ignore commands coming from the eevent guild (169844523181015040)
This commit is contained in:
parent
b30c048bac
commit
a3623ccddd
2 changed files with 3 additions and 5 deletions
|
@ -99,7 +99,7 @@ public class BotStartup
|
||||||
var commands = new CommandService();
|
var commands = new CommandService();
|
||||||
await commands.AddModulesAsync(Assembly.GetAssembly(typeof(BotStartup)), serviceProvider);
|
await commands.AddModulesAsync(Assembly.GetAssembly(typeof(BotStartup)), serviceProvider);
|
||||||
|
|
||||||
var commandHandler = new CommandHandler(serviceProvider.GetService<DatabaseContext>(), _client, _logger, serviceProvider, commands, applicationInfo, serviceProvider.GetService<IGuildSettingsManager>());
|
var commandHandler = new CommandHandler(_client, _logger, serviceProvider, commands, applicationInfo, serviceProvider.GetService<IGuildSettingsManager>());
|
||||||
var userHandler = new UserHandler(serviceProvider.GetService<IUserRepository>(), _logger, serviceProvider.GetService<DatabaseContext>(), _client);
|
var userHandler = new UserHandler(serviceProvider.GetService<IUserRepository>(), _logger, serviceProvider.GetService<DatabaseContext>(), _client);
|
||||||
var reactionHandler = new ReactionHandler(serviceProvider.GetService<IReactionListener>());
|
var reactionHandler = new ReactionHandler(serviceProvider.GetService<IReactionListener>());
|
||||||
var statsHandler = new StatsHandler(_logger, serviceProvider.GetService<DatabaseContext>());
|
var statsHandler = new StatsHandler(_logger, serviceProvider.GetService<DatabaseContext>());
|
||||||
|
|
|
@ -21,12 +21,10 @@ namespace Geekbot.Bot.Handlers
|
||||||
private readonly RestApplication _applicationInfo;
|
private readonly RestApplication _applicationInfo;
|
||||||
private readonly IGuildSettingsManager _guildSettingsManager;
|
private readonly IGuildSettingsManager _guildSettingsManager;
|
||||||
private readonly List<ulong> _ignoredServers;
|
private readonly List<ulong> _ignoredServers;
|
||||||
private readonly DatabaseContext _database;
|
|
||||||
|
|
||||||
public CommandHandler(DatabaseContext database, IDiscordClient client, IGeekbotLogger logger, IServiceProvider servicesProvider, CommandService commands, RestApplication applicationInfo,
|
public CommandHandler(IDiscordClient client, IGeekbotLogger logger, IServiceProvider servicesProvider, CommandService commands, RestApplication applicationInfo,
|
||||||
IGuildSettingsManager guildSettingsManager)
|
IGuildSettingsManager guildSettingsManager)
|
||||||
{
|
{
|
||||||
_database = database;
|
|
||||||
_client = client;
|
_client = client;
|
||||||
_logger = logger;
|
_logger = logger;
|
||||||
_servicesProvider = servicesProvider;
|
_servicesProvider = servicesProvider;
|
||||||
|
@ -39,7 +37,7 @@ namespace Geekbot.Bot.Handlers
|
||||||
_ignoredServers = new List<ulong>
|
_ignoredServers = new List<ulong>
|
||||||
{
|
{
|
||||||
228623803201224704, // SwitzerLAN
|
228623803201224704, // SwitzerLAN
|
||||||
169844523181015040, // EEvent
|
// 169844523181015040, // EEvent
|
||||||
248531441548263425, // MYI
|
248531441548263425, // MYI
|
||||||
110373943822540800 // Discord Bots
|
110373943822540800 // Discord Bots
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue