mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 00:34:26 -05:00 
			
		
		
		
	Don't cache any messages on public nadeko
This commit is contained in:
		@@ -46,9 +46,16 @@ public sealed class Bot
 | 
			
		||||
        if (shardId == 0)
 | 
			
		||||
            _db.Setup();
 | 
			
		||||
 | 
			
		||||
        var messageCacheSize =
 | 
			
		||||
#if GLOBAL_NADEKO
 | 
			
		||||
            0;
 | 
			
		||||
#else
 | 
			
		||||
            50;
 | 
			
		||||
#endif
 | 
			
		||||
        
 | 
			
		||||
        Client = new(new()
 | 
			
		||||
        {
 | 
			
		||||
            MessageCacheSize = 50,
 | 
			
		||||
            MessageCacheSize = messageCacheSize,
 | 
			
		||||
            LogLevel = LogSeverity.Warning,
 | 
			
		||||
            ConnectionTimeout = int.MaxValue,
 | 
			
		||||
            TotalShards = _creds.TotalShards,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user