Updated some namespaces, finished some todos. v5 should be cancelled probably as the code is too intertwined to make it modular

This commit is contained in:
Kwoth
2023-11-11 05:22:52 +00:00
parent a28be0d343
commit bc77783820
224 changed files with 308 additions and 317 deletions

View File

@@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Common.Yml;
using NadekoBot.Db;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
using System.Runtime.CompilerServices;
using LinqToDB.EntityFrameworkCore;
using Nadeko.Bot.Common;
@@ -251,21 +251,8 @@ public sealed class NadekoExpressionsService : IExecOnMessage, IReadyExecutor
// todo print error etc
// if (await _cmdCds.TryBlock(guild, msg.Author, expr.Trigger))
// return false;
try
{
// if (_gperm.BlockedModules.Contains("ACTUALEXPRESSIONS"))
// {
// Log.Information(
// "User {UserName} [{UserId}] tried to use an expression but 'ActualExpressions' are globally disabled",
// msg.Author.ToString(),
// msg.Author.Id);
//
// return true;
// }
//
// if (guild is SocketGuild sg)
// {
// var pc = _perms.GetCacheFor(guild.Id);