Throttle whispers to 5/s

This commit is contained in:
2024-10-05 01:35:49 +02:00
parent b84eb896dd
commit e464a16c3b
2 changed files with 22 additions and 5 deletions

View File

@@ -0,0 +1,8 @@
-- TICKER_200
function()
local whisper = aura_env.whisperQueue[1]
if whisper == nil then return end
SendChatMessage(whisper.msg, "WHISPER", nil, whisper.to)
print(string.format("Whispering %s, %d remaining in queue", whisper.to, #aura_env.whisperQueue))
table.remove(aura_env.whisperQueue, 1)
end