Last edit: @sgardner in #marvin-dev 5 months ago - Slack Archive

{lua}
if (channel.type ~= "im" and channel.id ~= "C2VQ5USPK") then
 print(string.format("\60@%s\62, this factoid is only available in <#C2VQ5USPK|_cantina>, or through messaging me directly.", user.id))
else
 local today="%date%" local isnow=true
 if args ~= '' then today = args isnow = false end
 local f = factoid["menu-" .. today]
 if not f.exists then print("No stored menu for " .. today) else print("Menu for " .. today .. ":\n" .. f()) end
 if isnow then
  local livedata = factoid["menu-live"]()
  if livedata ~= nil and livedata ~= "" and livedata ~= "nil" then print("\n\nCantina site data:\n" .. livedata) end
 end
end

History

Revision: 4134 by @sgardner in #marvin-dev 5 months agoSlack Archive

{lua}
if (channel.type ~= "im" and channel.id ~= "C2VQ5USPK") then
 print(string.format("\60@%s\62, this factoid is only available in <#C2VQ5USPK|_cantina>, or through messaging me directly.", user.id))
else
 local today="%date%" local isnow=true
 if args ~= '' then today = args isnow = false end
 local f = factoid["menu-" .. today]
 if not f.exists then print("No stored menu for " .. today) else print("Menu for " .. today .. ":\n" .. f()) end
 if isnow then
  local livedata = factoid["menu-live"]()
  if livedata ~= nil and livedata ~= "" and livedata ~= "nil" then print("\n\nCantina site data:\n" .. livedata) end
 end
end

Revision: 495 (deleted) by @pvarry in <!error getting other user for D3BRR771P> 2 years agoSlack Archive

{lua} local today="%date%" local isnow=true
if args ~= '' then today = args isnow = false end
local f = factoid["menu-" .. today]
if f.exists then print("Menu for " .. today .. ":\n" .. f()) end
if isnow then
 local livedata = factoid["menu-live"]()
 if livedata ~= nil and livedata ~= "" and livedata ~= "nil" then print("\n\nCantina site data:\n" .. livedata) end
end

Revision: 494 (deleted) by @pvarry in <!error getting other user for D3BRR771P> 2 years agoSlack Archive

&1

Revision: 493 (deleted) by @pvarry in <!error getting other user for D3BRR771P> 2 years agoSlack Archive

&0

Revision: 382 by @kyork in #[IM @kyork] 2 years agoSlack Archive

{lua} local today="%date%" local isnow=true
if args ~= '' then today = args isnow = false end
local f = factoid["menu-" .. today]
if not f.exists then print("No stored menu for " .. today) else print("Menu for " .. today .. ":\n" .. f()) end
if isnow then
  local livedata = factoid["menu-live"]()
  if livedata ~= nil and livedata ~= "" and livedata ~= "nil" then print("\n\nCantina site data:\n" .. livedata) end
end

Revision: 373 by @kyork in #marvin-dev 2 years agoSlack Archive

{lua} local today="%date%" local isnow=true
if args ~= '' then today = args isnow = false end
local f = factoid["menu-" .. today]
if not f.exists then print("No stored menu for " .. today) else print("Menu for " .. today .. ":\n" .. f()) end
if isnow then print("\n\nCantina site data:\n" .. factoid["menu-live"]()) end

Revision: 372 by @kyork in #marvin-dev 2 years agoSlack Archive

{lua} local today="%date%" local isnow=true
if args ~= '' then today = args isnow = false end
local f = factoid["menu-" .. today]
if not f.exists then print("No stored menu for " .. today) else print("Menu for " .. today .. ":\n" .. f()) end
if isnow then print("\nCantina site data:\n" .. factoid["menu-live"]()) end

Revision: 371 by @kyork in #marvin-dev 2 years agoSlack Archive

{lua} local today="%date%" local isnow=true
if args ~= '' then today = args isnow = false end
local f = factoid["menu-" .. today]
if not f.exists then print("No stored menu for " .. today) else print("Menu for " .. today .. ":\n" .. f()) end
if isnow then print("\nCantina site data: " .. factoid["menu-live"]()) end

Revision: 331 by @kyork in #_cantina 2 years agoSlack Archive

{lua} local today="%date%" if args ~= '' then today = args end local f = factoid["menu-" .. today] if not f.exists then return "No stored menu for " .. today end return "Menu for " .. today .. ":\n" .. f()

Revision: 50 by @kyork in #marvin-dev 2 years agoSlack Archive

{lua}local today="%date%" if args ~= '' then today = args end local f = factoid["menu-" .. today] if not f.exists then return "No stored menu for " .. today end return "Menu for " .. today .. ":" .. f()

Revision: 11 by @kyork in #marvin-dev 2 years agoSlack Archive

{alias}menu-$if(%inp%,%date%)