Disabled cleverot and flower generation on public bot
This commit is contained in:
		@@ -88,7 +88,7 @@ namespace NadekoBot.Modules.Games
 | 
			
		||||
                }
 | 
			
		||||
                return true;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
#if !GLOBAL_NADEKO
 | 
			
		||||
            [NadekoCommand, Usage, Description, Aliases]
 | 
			
		||||
            [RequireContext(ContextType.Guild)]
 | 
			
		||||
            [RequireUserPermission(ChannelPermission.ManageMessages)]
 | 
			
		||||
@@ -120,6 +120,7 @@ namespace NadekoBot.Modules.Games
 | 
			
		||||
 | 
			
		||||
                await Context.Channel.SendConfirmAsync($"{Context.User.Mention} Enabled cleverbot on this server.").ConfigureAwait(false);
 | 
			
		||||
            }
 | 
			
		||||
#endif
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -47,7 +47,10 @@ namespace NadekoBot.Modules.Games
 | 
			
		||||
                _log = LogManager.GetCurrentClassLogger();
 | 
			
		||||
                var sw = Stopwatch.StartNew();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#if !GLOBAL_NADEKO
 | 
			
		||||
                NadekoBot.Client.MessageReceived += PotentialFlowerGeneration;
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
                using (var uow = DbHandler.UnitOfWork())
 | 
			
		||||
                {
 | 
			
		||||
 
 | 
			
		||||
@@ -124,10 +124,10 @@ namespace NadekoBot.Services
 | 
			
		||||
                    return;
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
#if !GLOBAL_NADEKO
 | 
			
		||||
                try
 | 
			
		||||
                {
 | 
			
		||||
                    var cleverbotExecuted = await Games.CleverBotCommands.TryAsk(usrMsg);
 | 
			
		||||
 | 
			
		||||
                    if (cleverbotExecuted)
 | 
			
		||||
                    {
 | 
			
		||||
                        _log.Info($@"CleverBot Executed
 | 
			
		||||
@@ -139,6 +139,7 @@ namespace NadekoBot.Services
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
                catch (Exception ex) { _log.Warn(ex, "Error in cleverbot"); }
 | 
			
		||||
#endif
 | 
			
		||||
                try
 | 
			
		||||
                {
 | 
			
		||||
                    // maybe this message is a custom reaction
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user