You are on page 1of 2

WebHook =

"https://discord.com/api/webhooks/1110919123480875028/xD_HT04n54Mx87AD6NkL08JWHkhG0
gIRCTIs8QzGf-YmGbQzcN9XVciAMZcd_nkr48ee" --Webhook Link

function removeColorAndSymbols(str)
local cleanedStr = string.gsub(str, "`(%S)", '')
cleanedStr = string.gsub(cleanedStr, "`{2}|(~{2})", '')
return cleanedStr
end

local function FormatNumber(num)


num = math.floor(num + 0.5)

local formatted = tostring(num)


local k = 3
while k < #formatted do
formatted = formatted:sub(1, #formatted - k) .. "," ..
formatted:sub(#formatted - k + 1)
k = k + 4
end

return formatted
end

function FORMAT_TIME(seconds)
local days = math.floor(seconds / 86400)
local hours = math.floor((seconds % 86400) / 3600)
local minutes = math.floor((seconds % 3600) / 60)
local remaining_seconds = seconds % 60

local parts = {}
if days > 0 then
table.insert(parts, tostring(days) .. " day" .. (days > 1 and "s" or
""))
end
if hours > 0 then
table.insert(parts,
tostring(hours) .. " hour" .. (hours > 1 and "s" or ""))
end
if minutes > 0 then
table.insert(parts, tostring(minutes) .. " minute" ..
(minutes > 1 and "s" or ""))
end
if remaining_seconds > 0 then
table.insert(parts, tostring(remaining_seconds) .. " second" ..
(remaining_seconds > 1 and "s" or ""))
end

if #parts == 0 then
return "0 seconds"
elseif #parts == 1 then
return parts[1]
else
local last_part = table.remove(parts)
return table.concat(parts, ", ") .. " and " .. last_part
end
end
function wh()
local payload = [[
{

"content": "",
"embeds": [{
"title": "<:wheel:1105095395371135037> Auto Host
<:wheel:1105095395371135037> ",
"description": "<:bgl:1110199855831322647> **INFORMATION**
<:bgl:1110199855831322647>",
"url": "https://avatarfiles.alphacoders.com/334/334449.png",
"color": 69,
"fields": [{
"name":"Account:",
"value": "Name: **%s**",
"inline": false

},
{
"name": "Information:",
"value": ":earth_asia: Current World: **%s**",
"inline": false
},

{
"name": "**Player Lock:**",
"value": "<:bgl:1110199855831322647>BGL: **
%s** ,<:dl:1110199890572755055>DL: **%s** <:wl:1110199918649421914> WL: **%s** "
}

],
"author": {
"name": "IntroVert AutoHost",
"url": "https://avatarfiles.alphacoders.com/334/334449.png",
"icon_url": "https://avatarfiles.alphacoders.com/334/334449.png"
},
"footer": {
"text": "%s",
"url":
"https://cdn.discordapp.com/attachments/814384402985254940/1092698535117467728/
received_881069006639056.jpg"
}
}]
}]]
payload = payload:format(removeColorAndSymbols(GetLocal().name),
GetLocal().world,tostring(GetItemCount(7188)):match("(%d+)"),tostring(GetItemCount(
1796)):match("(%d+)"),tostring(GetItemCount(242)):match("(%d+)"), os.date("!%a,
%b/%d/%Y at %I:%M %p", os.time() + 8 * 60 * 60))
SendWebhook(WebHook, payload)
end

while true do
wh()
Sleep(120000)
end

You might also like