sessiontime

Will output a relative time based around a single known event time.

Privateunrated

Content

15 lines
{=(sessionTime24hUTC):01:00}
{=(hour):3600}
{=(characters): +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23}
{=(ua):{upper:{args}}}
{=(uaBool):{contains({ua}):{characters}}}
{=(todayTargetDateTime):{strf({unix}):%F {sessionTime24hUTC}:00}}
{=(todayTargetTimeUnix):{strf({todayTargetDateTime}):%s}}
{=(error):For a relative time make sure and add <+/- N> to this command.

Example: !sessiontime +1}
{=(charError): There is an issue with your inputs. Try again.}
{=(charErrorTitle): Either someone is being clever or you are being dumb}
{=(sessionRelTimeUnix):{m:trunc({todayTargetTimeUnix}+({ua}*{hour}))}}
{=(sessionRelTime):{if({ua}!=):{if({uaBool}==true):πŸ• <t:{sessionRelTimeUnix}:t>|❗ {charErrorTitle}}|πŸ• <t:{todayTargetTimeUnix}:t>}}
{=(output):{if({ua}!=):{if({uaBool}==true):|{charError}}|{error}}}

Embed

1 line
{"color": 5198940, "title": "{sessionRelTime}", "description": "{output}"}
Raw JSON
{
  "id": 1172888,
  "created_at": "2021-11-30T18:50:07.000Z",
  "tag_name": "sessiontime",
  "nsfw": false,
  "owner_id": "174901150028529664",
  "uses": 120,
  "description": "Will output a relative time based around a single known event time. ",
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "174902097580523520",
  "sharer": "174901150028529664",
  "content": "{=(sessionTime24hUTC):01:00}\n{=(hour):3600}\n{=(characters): +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23}\n{=(ua):{upper:{args}}}\n{=(uaBool):{contains({ua}):{characters}}}\n{=(todayTargetDateTime):{strf({unix}):%F {sessionTime24hUTC}:00}}\n{=(todayTargetTimeUnix):{strf({todayTargetDateTime}):%s}}\n{=(error):For a relative time make sure and add <+/- N> to this command.\n\nExample: !sessiontime +1}\n{=(charError): There is an issue with your inputs. Try again.}\n{=(charErrorTitle): Either someone is being clever or you are being dumb}\n{=(sessionRelTimeUnix):{m:trunc({todayTargetTimeUnix}+({ua}*{hour}))}}\n{=(sessionRelTime):{if({ua}!=):{if({uaBool}==true):πŸ• <t:{sessionRelTimeUnix}:t>|❗ {charErrorTitle}}|πŸ• <t:{todayTargetTimeUnix}:t>}}\n{=(output):{if({ua}!=):{if({uaBool}==true):|{charError}}|{error}}}",
  "embed": "{\"color\": 5198940, \"title\": \"{sessionRelTime}\", \"description\": \"{output}\"}",
  "last_fetched": "2026-10-20T18:04:43.096Z"
}