From 9fce6a5a6eb2b570eb2ec0646108431e5e1b8693 Mon Sep 17 00:00:00 2001 From: Karl Essinger Date: Sun, 23 May 2021 19:01:30 +0200 Subject: [PATCH] Removed message cooldown and messagedelay --- SCPDiscordBot/ConfigParser.cs | 4 ---- SCPDiscordBot/default_config.yml | 6 ------ 2 files changed, 10 deletions(-) diff --git a/SCPDiscordBot/ConfigParser.cs b/SCPDiscordBot/ConfigParser.cs index 4df873c9..41783028 100644 --- a/SCPDiscordBot/ConfigParser.cs +++ b/SCPDiscordBot/ConfigParser.cs @@ -23,8 +23,6 @@ public class Bot public string logLevel = "Information"; public string presenceType = "Watching"; public string presenceText = "for server startup..."; - public int messageCooldown = 1000; - public int messageDelay = 0; } public Bot bot; @@ -73,8 +71,6 @@ public static void PrintConfig() Logger.Debug("bot.log-level: " + config.bot.logLevel, LogID.Config); Logger.Debug("bot.presence-type: " + config.bot.presenceType, LogID.Config); Logger.Debug("bot.presence-text: " + config.bot.presenceText, LogID.Config); - Logger.Debug("bot.message-cooldown: " + config.bot.messageCooldown, LogID.Config); - Logger.Debug("bot.message-delay: " + config.bot.messageDelay, LogID.Config); Logger.Debug("plugin.address: " + config.plugin.address, LogID.Config); Logger.Debug("plugin.port: " + config.plugin.port, LogID.Config); diff --git a/SCPDiscordBot/default_config.yml b/SCPDiscordBot/default_config.yml index 82fe0f72..123fca48 100644 --- a/SCPDiscordBot/default_config.yml +++ b/SCPDiscordBot/default_config.yml @@ -25,12 +25,6 @@ # Sets the activity text shown in the bot's status. presence-text: "for server startup..." - # Message cooldown, number of milliseconds to wait between sending messages. Use this if your server sends too many messages for the bot to keep up. (Bot will get delayed if it hits more than 5 messages per 5 seconds) - message-cooldown: 1000 - - # Message cooldown in milliseconds, use this if you want to keep players from ghosting by looking at the Discord channel while they play. - message-delay: 0 - plugin: # Host to listen on, localhost by default. In case you want server to listen on 0.0.0.0, make sure your firewall rules are correct. address: "127.0.0.1"