Skip to content

Commit

Permalink
yeah let's wait for api updates
Browse files Browse the repository at this point in the history
  • Loading branch information
FxllenCode committed Jan 20, 2021
1 parent 7ec353b commit 119e583
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions src/ServerScriptService/MainModule.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


local DowntimeService = {}

local HttpService = game:GetService("HttpService")
Expand Down Expand Up @@ -26,15 +28,39 @@ function DowntimeService.GetSiteStatus()
return "Service is Down."

end




end


function DowntimeService.GetAvatarAPIStatus()

local GetStatus = HttpService:GetAsync("lol this is a placeholder url lmao2")

local Data = HttpService:JSONDecode(GetStatus)

if Data.placeholderlol == "placeholderpog2" then


return "Service is Healthy."

elseif Data.placeholderlol == "placeholdermeh2" then


return "Service is Degraded."


elseif Data.placeholderlol == "placeholderdown2" then


return "Service is Down."

end




end

Expand Down

0 comments on commit 119e583

Please sign in to comment.