Fixed missing services issue

This commit is contained in:
Kwoth
2023-08-13 02:40:43 +00:00
parent 17ef3caefd
commit dfbe1721f3
3 changed files with 8 additions and 7 deletions

View File

@@ -4,6 +4,7 @@ using NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Modules.Gambling.Gambling._Common;
// todo organize
public interface IGamblingCleanupService
{
Task DeleteWaifus();
@@ -11,7 +12,7 @@ public interface IGamblingCleanupService
Task DeleteCurrency();
}
public class GamblingCleanupService : IGamblingCleanupService
public class GamblingCleanupService : IGamblingCleanupService, INService
{
private readonly DbService _db;

View File

@@ -4,7 +4,7 @@ using NadekoBot.Services.Database.Models;
namespace NadekoBot.Modules.Xp;
public sealed class XpCleanupService : IXpCleanupService
public sealed class XpCleanupService : IXpCleanupService, INService
{
private readonly DbService _db;

View File

@@ -29,9 +29,9 @@ google:
imageSearchId:
# Settings for voting system for discordbots. Meant for use on global Nadeko.
votes:
# top.gg votes service url
# This is the url of your instance of the NadekoBot.Votes api
# Example: https://votes.my.cool.bot.com
# top.gg votes service url
# This is the url of your instance of the NadekoBot.Votes api
# Example: https://votes.my.cool.bot.com
topggServiceUrl: ''
# Authorization header value sent to the TopGG service url with each request
# This should be equivalent to the TopggKey in your NadekoBot.Votes api appsettings.json file
@@ -67,8 +67,8 @@ botCache: Memory
redisOptions: localhost:6379,syncTimeout=30000,responseTimeout=30000,allowAdmin=true,password=
# Database options. Don't change if you don't know what you're doing. Leave null for default values
db:
# Database type. "sqlite", "mysql" and "postgresql" are supported.
# Default is "sqlite"
# Database type. "sqlite", "mysql" and "postgresql" are supported.
# Default is "sqlite"
type: sqlite
# Database connection string.
# You MUST change this if you're not using "sqlite" type.