mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 00:34:26 -05:00 
			
		
		
		
	- NoPublicBotAttribute will now be properly ignored when built with GlobalNadeko configuration
- Added ILogCommandsService which will have dummy implementation on public bot, this means Logging Commands will be present on public bot to pull up help etc - When .ve is enabled, NoPublicBot commands will show a nicer error message with link to selfhosting guide (thx ene) - Fixed xp gain and .xp command not working on new users - General cleanup
This commit is contained in:
		@@ -18,6 +18,7 @@ using Discord.Net;
 | 
			
		||||
using NadekoBot.Common.ModuleBehaviors;
 | 
			
		||||
using NadekoBot.Common.Configs;
 | 
			
		||||
using NadekoBot.Db;
 | 
			
		||||
using NadekoBot.Modules.Administration.Services;
 | 
			
		||||
using Serilog;
 | 
			
		||||
 | 
			
		||||
namespace NadekoBot
 | 
			
		||||
@@ -116,6 +117,12 @@ namespace NadekoBot
 | 
			
		||||
                .AddMemoryCache()
 | 
			
		||||
                // music
 | 
			
		||||
                .AddMusic()
 | 
			
		||||
                // admin
 | 
			
		||||
#if GLOBAL_NADEKO
 | 
			
		||||
                .AddSingleton<ILogCommandService, DummyLogCommandService>()
 | 
			
		||||
#else
 | 
			
		||||
                .AddSingleton<ILogCommandService, LogCommandService>()
 | 
			
		||||
#endif
 | 
			
		||||
                ;
 | 
			
		||||
 | 
			
		||||
            svcs.AddHttpClient();
 | 
			
		||||
@@ -145,7 +152,11 @@ namespace NadekoBot
 | 
			
		||||
                    typeof(IEarlyBehavior),
 | 
			
		||||
                    typeof(ILateBlocker),
 | 
			
		||||
                    typeof(IInputTransformer),
 | 
			
		||||
                    typeof(ILateExecutor)))
 | 
			
		||||
                    typeof(ILateExecutor))
 | 
			
		||||
#if GLOBAL_NADEKO
 | 
			
		||||
                    .WithoutAttribute<NoPublicBotAttribute>()
 | 
			
		||||
#endif
 | 
			
		||||
                )
 | 
			
		||||
                .AsSelfWithInterfaces()
 | 
			
		||||
                .WithSingletonLifetime()
 | 
			
		||||
            );
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user