mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04: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)
|
if (shardId == 0)
|
||||||
_db.Setup();
|
_db.Setup();
|
||||||
|
|
||||||
|
var messageCacheSize =
|
||||||
|
#if GLOBAL_NADEKO
|
||||||
|
0;
|
||||||
|
#else
|
||||||
|
50;
|
||||||
|
#endif
|
||||||
|
|
||||||
Client = new(new()
|
Client = new(new()
|
||||||
{
|
{
|
||||||
MessageCacheSize = 50,
|
MessageCacheSize = messageCacheSize,
|
||||||
LogLevel = LogSeverity.Warning,
|
LogLevel = LogSeverity.Warning,
|
||||||
ConnectionTimeout = int.MaxValue,
|
ConnectionTimeout = int.MaxValue,
|
||||||
TotalShards = _creds.TotalShards,
|
TotalShards = _creds.TotalShards,
|
||||||
|
Reference in New Issue
Block a user