guildboss
Privateunrated
Content
56 lines{delete}
{=(null):}
{=(comment):The following sections are the user defined variables.}
{=(comment):This was started with a timezone of UTC-8 in mind, so that's how it's set to calculate things.}
{=(offset):-8}
{=(comment):This section is where you define the event name}
{=(event_name_1):Guild Boss Rush}
{=(comment):This section is where you define the event day from 0-6, corresponding to Sunday-Saturday}
{=(event_day_1):0}
{=(comment):This section is where you define the event time in 24 hour format (e.g. 14:30 for 2:30pm). You must use the UTC time for your event unless you set the offset variable.}
{=(event_time_1):19:00}
{=(comment): BlockDisplay changes how the code block that displays the time colors the numbers and text (colors don't display on mobile). Leave blank for white display. No space before. For more information, check out https://gist.github.com/matthewzring/9f7bbfd102003963f9be7dbcf7d40e51 }
{=(BlockDisplay):ml}
{=(comment):The rest of the tag is dedicated to calculating the information required to output a countdown timer.}
{=(comment):Defining time in seconds}
{=(week):604800}
{=(day):86400}
{=(hr):3600}
{=(min):60}
{=(comment):This section establishes how many seconds into the week it currently is}
{=(c_day):{m:{strf:%w}*{day}}}
{=(c_hr):{m:{strf:%-H}*{hr}}}
{=(c_min):{m:{strf:%-M}*{min}}}
{=(c_time):{m:{c_day}+{m:{c_hr}+{m:{offset}*{hr}}}+{c_min}}}
{=(comment):Now we establish the number of seconds into a week the event time is.}
{=(e_day):{m:{event_day_1}*{day}}}
{=(e_hr):{m:{event_time_1(1)::}*{hr}}}
{=(e_min):{m:{event_time_1(2)::}*{min}}}
{=(e_time):{m:{e_day}+{e_hr}+{e_min}}}
{=(comment):Here Carl compares the current day of the week to your event day, to determine if it has already occurred or is yet to come this week}
{=(this_week):{if({c_time}<={e_time}):yes|no}}
{=(comment):This section calculates the delta between the current time and event time.}
{=(td_1):{if({this_week}==yes):{m:{e_time}-{c_time}}|{m:{week}+{e_time}-{c_time}}}}
{=(comment):This section breaks down the time delta into a DD HH MM format for the countdown.}
{=(cd_day):{m:trunc({td_1}/{day})}}
{=(cd_hr):{m:trunc({m:{m:{td_1}-{m:{cd_day}*{day}}}/{hr}})}}
{=(cd_min):{m:trunc({m:{m:{td_1}-{m:{cd_day}*{day}}-{m:{cd_hr}*{hr}}}/{min}})}}
{=(title_day_1):{list({event_day_1}):Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday}}
{=(title_1):{event_name_1} - {title_day_1} @ {event_time_1}}
{=(output):{cd_day} days {cd_hr} hours {cd_min} minutes}Embed
1 line{"color": 2793880, "title": "Guild Event Countdown Timers", "fields": [{"name": "{title_1}", "value": "```{BlockDisplay}\n{output}```", "inline": false}]}Raw JSON
{
"id": 203885,
"created_at": "2022-04-26T10:36:22.708Z",
"tag_name": "guildboss",
"nsfw": false,
"owner_id": "148905756123463680",
"uses": 7,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "702171264856490044",
"sharer": "148905756123463680",
"content": "{delete}\n{=(null):}\n\n{=(comment):The following sections are the user defined variables.}\n\n{=(comment):This was started with a timezone of UTC-8 in mind, so that's how it's set to calculate things.}\n{=(offset):-8}\n\n{=(comment):This section is where you define the event name}\n{=(event_name_1):Guild Boss Rush}\n\n{=(comment):This section is where you define the event day from 0-6, corresponding to Sunday-Saturday}\n{=(event_day_1):0}\n\n{=(comment):This section is where you define the event time in 24 hour format (e.g. 14:30 for 2:30pm). You must use the UTC time for your event unless you set the offset variable.}\n{=(event_time_1):19:00}\n\n{=(comment): BlockDisplay changes how the code block that displays the time colors the numbers and text (colors don't display on mobile). Leave blank for white display. No space before. For more information, check out https://gist.github.com/matthewzring/9f7bbfd102003963f9be7dbcf7d40e51 }\n{=(BlockDisplay):ml}\n\n{=(comment):The rest of the tag is dedicated to calculating the information required to output a countdown timer.}\n\n{=(comment):Defining time in seconds}\n{=(week):604800}\n{=(day):86400}\n{=(hr):3600}\n{=(min):60}\n\n{=(comment):This section establishes how many seconds into the week it currently is}\n\n{=(c_day):{m:{strf:%w}*{day}}}\n{=(c_hr):{m:{strf:%-H}*{hr}}}\n{=(c_min):{m:{strf:%-M}*{min}}}\n{=(c_time):{m:{c_day}+{m:{c_hr}+{m:{offset}*{hr}}}+{c_min}}}\n\n{=(comment):Now we establish the number of seconds into a week the event time is.}\n\n{=(e_day):{m:{event_day_1}*{day}}}\n{=(e_hr):{m:{event_time_1(1)::}*{hr}}}\n{=(e_min):{m:{event_time_1(2)::}*{min}}}\n{=(e_time):{m:{e_day}+{e_hr}+{e_min}}}\n\n{=(comment):Here Carl compares the current day of the week to your event day, to determine if it has already occurred or is yet to come this week}\n{=(this_week):{if({c_time}<={e_time}):yes|no}}\n\n{=(comment):This section calculates the delta between the current time and event time.}\n{=(td_1):{if({this_week}==yes):{m:{e_time}-{c_time}}|{m:{week}+{e_time}-{c_time}}}}\n\n{=(comment):This section breaks down the time delta into a DD HH MM format for the countdown.}\n{=(cd_day):{m:trunc({td_1}/{day})}}\n{=(cd_hr):{m:trunc({m:{m:{td_1}-{m:{cd_day}*{day}}}/{hr}})}}\n{=(cd_min):{m:trunc({m:{m:{td_1}-{m:{cd_day}*{day}}-{m:{cd_hr}*{hr}}}/{min}})}}\n\n{=(title_day_1):{list({event_day_1}):Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday}}\n{=(title_1):{event_name_1} - {title_day_1} @ {event_time_1}}\n{=(output):{cd_day} days {cd_hr} hours {cd_min} minutes}",
"embed": "{\"color\": 2793880, \"title\": \"Guild Event Countdown Timers\", \"fields\": [{\"name\": \"{title_1}\", \"value\": \"```{BlockDisplay}\\n{output}```\", \"inline\": false}]}",
"last_fetched": "2026-10-20T21:37:32.144Z"
}