Warning replace
#120
Replaces warning message so till only show slow macros that are over your threshold.
If you have access to bot modules just replace the executionTime of 100 within the function\main.lua file under macro.callback.
If you have access to bot modules just replace the executionTime of 100 within the function\main.lua file under macro.callback.
--[[
Script made by Lee (Discord: l33_) - www.trainorcreations.com
If you want to support my work, feel free to donate at https://trainorcreations.com/donate
PS. Stop ripping off my work and selling it as your own.
]]--
warning("Test 1")
warning = function(text)
local number = tonumber(string.match(text, "Slow macro %((%d+)ms%)"))
if not number or (number and number > 500) then
return warn(text)
end
end
warning("Test 2")
warning("Slow macro (500ms): Test macro line 100")
warning("Slow macro (501ms): Test macro line 100")
18 Aug 2024