Last edit: @jkrause in #[IM @jkrause] 3 months ago - Slack Archive

{lua}
local res = factoid["cooldown_module"]("cantina_menu")
if res ~= "0" then
local livedata = factoid["menu-live"]()
if livedata ~= nil and livedata ~= "" and livedata ~= "nil" then print("\n\nCantina site data:\n" .. livedata) else print("Cantina menu has not been loaded.  It is most likely closed for the weekend. https://cantina.42.us.org/marvins_meals") end
else
return ""
end

History

Revision: 5072 by @jkrause in #[IM @jkrause] 3 months agoSlack Archive

{lua}
local res = factoid["cooldown_module"]("cantina_menu")
if res ~= "0" then
local livedata = factoid["menu-live"]()
if livedata ~= nil and livedata ~= "" and livedata ~= "nil" then print("\n\nCantina site data:\n" .. livedata) else print("Cantina menu has not been loaded.  It is most likely closed for the weekend. https://cantina.42.us.org/marvins_meals") end
else
return ""
end

Revision: 2344 by @jkrause in #[IM @jkrause] 2 years agoSlack Archive

{lua}
local res = factoid["cooldown_module"]("cantina_menu")
if res ~= "0" then
local livedata = factoid["menu-live"]()
if livedata ~= nil and livedata ~= "" and livedata ~= "nil" then print("\n\nCantina site data:\n" .. livedata) else print("Cantina menu has not been loaded. https://cantina.42.us.org/marvins_meals") end
else
return tostring(user) .. " Please scroll up for the cantina menu."
end

Revision: 2338 by @jkrause in #[IM @jkrause] 2 years agoSlack Archive

{lua}
local res = factoid["cooldown_module"]("cantina_menu")
if res ~= "0" then
local livedata = factoid["menu-live"]()
if livedata ~= nil and livedata ~= "" and livedata ~= "nil" then print("\n\nCantina site data:\n" .. livedata) else print("Cantina menu has not been loaded.  https://cantina.42.us.org/marvins_meals") end
else
return ""
end

Revision: 2336 by @jkrause in #[IM @jkrause] 2 years agoSlack Archive

{lua}
local res = factoid["cooldown_module"]("cantina_menu")
if res ~= "0" then
local livedata = factoid["menu-live"]()
if livedata ~= nil and livedata ~= "" and livedata ~= "nil" then print("\n\nCantina site data:\n" .. livedata) else print("Cantina site is broken. https://cantina.42.us.org/marvins_meals") end
else
return ""
end

Revision: 2224 (deleted) by @jkrause in #[IM @jkrause] 2 years agoSlack Archive

{lua}
-- local res = factoid["cooldown_module"]("cantina_menu")
local res = "1"
if res ~= "0" then
 local livedata = factoid["menu-live"]()
 if livedata ~= nil and livedata ~= "" and livedata ~= "nil" then print("\n\nCantina site data:\n" .. livedata) end
else
  return ""
end

Revision: 1893 by @jkrause in #[IM @jkrause] 2 years agoSlack Archive

{lua}
local res = factoid["cooldown_module"]("cantina_menu")
if res ~= "0" then
 local livedata = factoid["menu-live"]()
 if livedata ~= nil and livedata ~= "" and livedata ~= "nil" then print("\n\nCantina site data:\n" .. livedata) end
else
  return ""
end

Revision: 1892 (deleted) by @jkrause in #[IM @jkrause] 2 years agoSlack Archive

local res = factoid["cooldown_module"]("cantina_menu")
if res ~= "0" then
 local livedata = factoid["menu-live"]()
 if livedata ~= nil and livedata ~= "" and livedata ~= "nil" then print("\n\nCantina site data:\n" .. livedata) end
else
  return ""
end