From dfbe1721f3044190a091dda62aaa22f2541d80dc Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sun, 13 Aug 2023 02:40:43 +0000 Subject: [PATCH] Fixed missing services issue --- .../Gambling/_common/IGamblingCleanupService.cs | 3 ++- src/Nadeko.Bot.Modules.Xp/_common/XpCleanupService.cs | 2 +- src/NadekoBot/creds_example.yml | 10 +++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Nadeko.Bot.Modules.Gambling/Gambling/_common/IGamblingCleanupService.cs b/src/Nadeko.Bot.Modules.Gambling/Gambling/_common/IGamblingCleanupService.cs index 07318422e..809d75a96 100644 --- a/src/Nadeko.Bot.Modules.Gambling/Gambling/_common/IGamblingCleanupService.cs +++ b/src/Nadeko.Bot.Modules.Gambling/Gambling/_common/IGamblingCleanupService.cs @@ -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; diff --git a/src/Nadeko.Bot.Modules.Xp/_common/XpCleanupService.cs b/src/Nadeko.Bot.Modules.Xp/_common/XpCleanupService.cs index 7e8e54002..642217599 100644 --- a/src/Nadeko.Bot.Modules.Xp/_common/XpCleanupService.cs +++ b/src/Nadeko.Bot.Modules.Xp/_common/XpCleanupService.cs @@ -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; diff --git a/src/NadekoBot/creds_example.yml b/src/NadekoBot/creds_example.yml index 37642330d..345506734 100644 --- a/src/NadekoBot/creds_example.yml +++ b/src/NadekoBot/creds_example.yml @@ -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.