Epic Calendar Info in the MUD!

Contrast_Picker
Arcidayne 9 years ago
parent 7b582efe7b
commit 140df611b5

@ -163,13 +163,12 @@ function get_cal(epic)
starttime = epage.items[i].start.dateTime
end
if #summary < 30 then
if #summary < 22 then
summary = summary .. string.rep(" ", 22-#summary) .. "- "
end
end
table.insert(cal_output, summary .. get_local_time(starttime) .. date_note(starttime))
end
end
else
ColourNote("cyan", "", "Epic Calendar Error! Something went very wrong trying to get the epage. Let Arcidayne know!")
end
@ -177,9 +176,9 @@ function get_cal(epic)
local header_string = " Upcoming Runs (Local time) "
if cal_output[1] then
ColourNote("white", "", string.rep("=", 16), "cyan", "", header_string, "white", "", string.rep("=", 16) .. "\n\n", "green", "", table.concat(cal_output, "\n"), "white", "", "\n\n" .. string.rep("=", 60))
ColourNote("white", "", string.rep("=", 18), "cyan", "", header_string, "white", "", string.rep("=", 18) .. "\n\n", "green", "", table.concat(cal_output, "\n"), "white", "", "\n\n" .. string.rep("=", 64))
else
ColourNote("white", "", string.rep("=", 16), "cyan", "", header_string, "white", "", string.rep("=", 16) .. "\n\n", "green", "", "No upcoming runs for " .. epic .. "!", "white", "", "\n\n" .. string.rep("=", 60))
ColourNote("white", "", string.rep("=", 18), "cyan", "", header_string, "white", "", string.rep("=", 18) .. "\n\n", "green", "", "No upcoming runs for " .. epic .. "!", "white", "", "\n\n" .. string.rep("=", 64))
end
else
ColourNote("cyan", "", "Epic Calendar Error: ", "white", "", "Valid choices are: IF/Icefall, Inferno, OC, All)")

Loading…
Cancel
Save