Run RemoteCommunication also in Debug builds

Originally it was to not spam the server with irrelevant data, but sometimes I'm also debugging that part and it's counter-intuitive. If somebody doesn't want that during debugging, he has bot config option for that.
This commit is contained in:
Archi
2022-11-23 12:08:27 +01:00
parent 13480a44ff
commit caa54a7f2b

View File

@@ -2103,7 +2103,7 @@ public sealed class Bot : IAsyncDisposable, IDisposable {
RemoteCommunication = null;
}
if (!Debugging.IsDebugBuild && (BotConfig.RemoteCommunication > BotConfig.ERemoteCommunication.None)) {
if (BotConfig.RemoteCommunication > BotConfig.ERemoteCommunication.None) {
RemoteCommunication = new RemoteCommunication(this);
}