Skip to content
This repository has been archived by the owner on May 6, 2023. It is now read-only.

Commit

Permalink
Removed message cooldown and messagedelay
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlOfDuty committed May 23, 2021
1 parent 62d330c commit 9fce6a5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions SCPDiscordBot/ConfigParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down
6 changes: 0 additions & 6 deletions SCPDiscordBot/default_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9fce6a5

Please sign in to comment.