forked from SteamWar/SteamWar
Update the message limits
This commit is contained in:
@@ -175,11 +175,11 @@ public class DiscordBot {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// There is a hard limit of 30 messages per minute to send as a webhook, thus with 5 webhooks we can send
|
// There is a hard limit of 30 messages per minute to send as a webhook, thus with 5 webhooks we can send
|
||||||
// 180 messages per minute. Which means 3 every second. I looked at the WGS fights and there were around
|
// 240 messages per minute. Which means 4 every second. I looked at the WGS fights and there were around
|
||||||
// ~70 in a short burst and then rather long no new message.
|
// ~70 in a short burst and then rather long no new message.
|
||||||
ingameChat = new DiscordChatRoom(config.channel("ingame"), "CHAT_DISCORD_GLOBAL", Chatter::broadcast, 5);
|
ingameChat = new DiscordChatRoom(config.channel("ingame"), "CHAT_DISCORD_GLOBAL", Chatter::broadcast, 8);
|
||||||
// 30 messages per minute should be enough for the server team!
|
// 60 messages per minute should be enough for the server team!
|
||||||
serverTeamChat = new DiscordChatRoom(config.channel("serverteam"), "CHAT_SERVERTEAM", Chatter::serverteam, 1);
|
serverTeamChat = new DiscordChatRoom(config.channel("serverteam"), "CHAT_SERVERTEAM", Chatter::serverteam, 2);
|
||||||
|
|
||||||
VelocityCore.schedule(() -> {
|
VelocityCore.schedule(() -> {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user