resets
Private
Content
87 lines{=(COMMENT):Gets current time (UTC) in minutes}
{=(current):{strf:%A %H:%M}}
{=(day):{strf:%w}}
{=(timeM):{m:({strf:%H}*60)+{strf:%M}}}
{=(COMMENT):Calculate time until daily reset}
{=(dailyT):{m:(1440-{timeM})/60}}
{=(dailyH):{m:trunc({dailyT})}}
{=(dailyM):{m:round({m:({dailyT}-{dailyH})*60})}}
{=(daily):{dailyH} hour{if({dailyH}!=1):s} and {dailyM} minute{if({dailyM}!=1):s}}
{=(COMMENT):Calculate time until weekly boss/quest resets.}
{=(BWeekT):{if({day}>=4):{m:((11-{day})*1440)-{timeM}}|{m:((4-{day})*1440)-{timeM}}}}
{=(QWeekT):{if({day}>=1):{m:((8-{day})*1440)-{timeM}}|{m:((1-{day})*1440)-{timeM}}}}
{=(GWeekT):{if({day}>=3):{m:((10-{day})*1440)-{timeM}}|{m:((3-{day})*1440)-{timeM}}}}
{=(COMMENT):Converts time difference from minutes to days, hours, and minutes.}
{=(BWeeklyD):{m:{BWeekT}/1440}}
{=(BWeeklyH):{m:({BWeeklyD}-trunc({BWeeklyD}))*24}}
{=(BWeeklyM):{m:({BWeeklyH}-trunc({BWeeklyH}))*60}}
{=(QWeeklyD):{m:{QWeekT}/1440}}
{=(QWeeklyH):{m:({QWeeklyD}-trunc({QWeeklyD}))*24}}
{=(QWeeklyM):{m:({QWeeklyH}-trunc({QWeeklyH}))*60}}
{=(GWeeklyD):{m:{GWeekT}/1440}}
{=(GWeeklyH):{m:({GWeeklyD}-trunc({GWeeklyD}))*24}}
{=(GWeeklyM):{m:({GWeeklyH}-trunc({GWeeklyH}))*60}}
{=(COMMENT):Formats time difference with respective unit and plurality.}
{=(BWeekD):{m:trunc({BWeeklyD})} day{if({m:trunc({BWeeklyD})}!=1):s}}
{=(BWeekH):{m:trunc({BWeeklyH})} hour{if({m:trunc({BWeeklyH})}!=1):s}}
{=(BWeekM):{m:round({BWeeklyM})} minute{if({m:round({BWeeklyM})}!=1):s}}
{=(QWeekD):{m:trunc({QWeeklyD})} day{if({m:trunc({QWeeklyD})}!=1):s}}
{=(QWeekH):{m:trunc({QWeeklyH})} hour{if({m:trunc({QWeeklyH})}!=1):s}}
{=(QWeekM):{m:round({QWeeklyM})} minute{if({m:round({QWeeklyM})}!=1):s}}
{=(GWeekD):{m:trunc({GWeeklyD})} day{if({m:trunc({GWeeklyD})}!=1):s}}
{=(GWeekH):{m:trunc({GWeeklyH})} hour{if({m:trunc({GWeeklyH})}!=1):s}}
{=(GWeekM):{m:round({GWeeklyM})} minute{if({m:round({GWeeklyM})}!=1):s}}
{=(COMMENT):Everything below is formatting the return statement and message templates.}
{=(help):
`?resets` : Returns the time until all resets
`?resets Daily` : Returns the time until Daily Reset
`?resets Boss` : Returns the time until Weekly Boss Reset
`?resets Quest` : Returns the time until Weekly Quest Reset
`?resets Gollux` : Returns the time until Gollux Shop Reset
`?resets Event` : Returns the time until Event Shop Reset}
{=(triggers):DAILY BOSS QUEST GOLLUX EVENT}
{=(indx):{index({upper:{args(1)}}):{triggers}}}
{=(TextDisplay):```glsl}
{=(Name):{and({args(1+)}!=|{indx}==-1):Note:|Current Time:}}
{=(NameField):{and({args(1+)}!=|{indx}==-1):Commands are Case-Sensitive|{current} UTC}}
{=(Title):{and({args(1+)}!=|{indx}==-1):**Commands**|**Time Until**}}
{=(subTitles):Daily Reset (00:00 UTC),Weekly Boss Reset (Thursday 00:00 UTC),Weekly Quest Reset (Monday 00:00 UTC),Weekly Gollux Shop Reset (Wednesday 00:00 UTC), Weekly Event Reset (Wednesday 00:00 UTC), }
{=(Body):{TextDisplay}
{daily}```,{TextDisplay}
{BWeekD}; {BWeekH}; and {BWeekM}```,{TextDisplay}
{QWeekD}; {QWeekH}; and {QWeekM}```,{TextDisplay}
{GWeekD}; {GWeekH}; and {GWeekM}```,{TextDisplay}
{GWeekD}; {GWeekH}; and {GWeekM}
```,{help}}
{=(Content):{if({args(1+)}==):
Daily Reset (00:00 UTC)
{TextDisplay}
{daily}
```
Weekly Boss Reset (Thursday 00:00 UTC)
{TextDisplay}
{BWeekD}, {BWeekH}, and {BWeekM}
```
Weekly Quest Reset (Monday 00:00 UTC)
{TextDisplay}
{QWeekD}, {QWeekH}, and {QWeekM}
```
Weekly Gollux Shop Reset (Wednesday 00:00 UTC)
{TextDisplay}
{GWeekD}, {GWeekH}, and {GWeekM}
```
Weekly Event Reset (Wednesday 00:00 UTC)
{TextDisplay}
{GWeekD}, {GWeekH}, and {GWeekM}
```|{list({indx}):{subTitles}}
{replace(;,,):{list({indx}):{Body}}}
}}Embed
1 line{"color": 9075163, "title": "{Title}", "author": {"name": "Maplestory Resets"}, "fields": [{"name": "{Name}", "value": "{NameField}", "inline": false}, {"name": "For a list of all commands, use", "value": "?resets help", "inline": false}], "footer": {"text": "Please try to keep bot spam to a minimum and to use #bot-spam whenever possible. For a list of all tags, use ?listtags"}, "description": "{Content}"}Raw JSON
{
"id": 122517,
"created_at": "2020-02-20T20:28:09.000Z",
"tag_name": "resets",
"nsfw": false,
"owner_id": "298236372140032000",
"uses": 176,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "",
"hidden": false,
"guild_id": "510677683676643339",
"sharer": "298236372140032000",
"content": "{=(COMMENT):Gets current time (UTC) in minutes}\n{=(current):{strf:%A %H:%M}}\n{=(day):{strf:%w}}\n{=(timeM):{m:({strf:%H}*60)+{strf:%M}}}\n\n{=(COMMENT):Calculate time until daily reset}\n{=(dailyT):{m:(1440-{timeM})/60}}\n{=(dailyH):{m:trunc({dailyT})}}\n{=(dailyM):{m:round({m:({dailyT}-{dailyH})*60})}}\n{=(daily):{dailyH} hour{if({dailyH}!=1):s} and {dailyM} minute{if({dailyM}!=1):s}}\n\n{=(COMMENT):Calculate time until weekly boss/quest resets.}\n{=(BWeekT):{if({day}>=4):{m:((11-{day})*1440)-{timeM}}|{m:((4-{day})*1440)-{timeM}}}}\n{=(QWeekT):{if({day}>=1):{m:((8-{day})*1440)-{timeM}}|{m:((1-{day})*1440)-{timeM}}}}\n{=(GWeekT):{if({day}>=3):{m:((10-{day})*1440)-{timeM}}|{m:((3-{day})*1440)-{timeM}}}}\n\n{=(COMMENT):Converts time difference from minutes to days, hours, and minutes.}\n{=(BWeeklyD):{m:{BWeekT}/1440}}\n{=(BWeeklyH):{m:({BWeeklyD}-trunc({BWeeklyD}))*24}}\n{=(BWeeklyM):{m:({BWeeklyH}-trunc({BWeeklyH}))*60}}\n{=(QWeeklyD):{m:{QWeekT}/1440}}\n{=(QWeeklyH):{m:({QWeeklyD}-trunc({QWeeklyD}))*24}}\n{=(QWeeklyM):{m:({QWeeklyH}-trunc({QWeeklyH}))*60}}\n{=(GWeeklyD):{m:{GWeekT}/1440}}\n{=(GWeeklyH):{m:({GWeeklyD}-trunc({GWeeklyD}))*24}}\n{=(GWeeklyM):{m:({GWeeklyH}-trunc({GWeeklyH}))*60}}\n\n{=(COMMENT):Formats time difference with respective unit and plurality.}\n{=(BWeekD):{m:trunc({BWeeklyD})} day{if({m:trunc({BWeeklyD})}!=1):s}}\n{=(BWeekH):{m:trunc({BWeeklyH})} hour{if({m:trunc({BWeeklyH})}!=1):s}}\n{=(BWeekM):{m:round({BWeeklyM})} minute{if({m:round({BWeeklyM})}!=1):s}}\n{=(QWeekD):{m:trunc({QWeeklyD})} day{if({m:trunc({QWeeklyD})}!=1):s}}\n{=(QWeekH):{m:trunc({QWeeklyH})} hour{if({m:trunc({QWeeklyH})}!=1):s}}\n{=(QWeekM):{m:round({QWeeklyM})} minute{if({m:round({QWeeklyM})}!=1):s}}\n{=(GWeekD):{m:trunc({GWeeklyD})} day{if({m:trunc({GWeeklyD})}!=1):s}}\n{=(GWeekH):{m:trunc({GWeeklyH})} hour{if({m:trunc({GWeeklyH})}!=1):s}}\n{=(GWeekM):{m:round({GWeeklyM})} minute{if({m:round({GWeeklyM})}!=1):s}}\n\n{=(COMMENT):Everything below is formatting the return statement and message templates.}\n\n{=(help):\n`?resets` : Returns the time until all resets\n`?resets Daily` : Returns the time until Daily Reset\n`?resets Boss` : Returns the time until Weekly Boss Reset\n`?resets Quest` : Returns the time until Weekly Quest Reset\n`?resets Gollux` : Returns the time until Gollux Shop Reset\n`?resets Event` : Returns the time until Event Shop Reset}\n\n{=(triggers):DAILY BOSS QUEST GOLLUX EVENT}\n{=(indx):{index({upper:{args(1)}}):{triggers}}}\n\n{=(TextDisplay):```glsl}\n{=(Name):{and({args(1+)}!=|{indx}==-1):Note:|Current Time:}}\n{=(NameField):{and({args(1+)}!=|{indx}==-1):Commands are Case-Sensitive|{current} UTC}}\n{=(Title):{and({args(1+)}!=|{indx}==-1):**Commands**|**Time Until**}}\n{=(subTitles):Daily Reset (00:00 UTC),Weekly Boss Reset (Thursday 00:00 UTC),Weekly Quest Reset (Monday 00:00 UTC),Weekly Gollux Shop Reset (Wednesday 00:00 UTC), Weekly Event Reset (Wednesday 00:00 UTC), }\n{=(Body):{TextDisplay}\n{daily}```,{TextDisplay}\n{BWeekD}; {BWeekH}; and {BWeekM}```,{TextDisplay}\n{QWeekD}; {QWeekH}; and {QWeekM}```,{TextDisplay}\n{GWeekD}; {GWeekH}; and {GWeekM}```,{TextDisplay}\n{GWeekD}; {GWeekH}; and {GWeekM}\n```,{help}}\n\n{=(Content):{if({args(1+)}==):\nDaily Reset (00:00 UTC)\n{TextDisplay}\n{daily}\n```\nWeekly Boss Reset (Thursday 00:00 UTC)\n{TextDisplay}\n{BWeekD}, {BWeekH}, and {BWeekM}\n```\nWeekly Quest Reset (Monday 00:00 UTC)\n{TextDisplay}\n{QWeekD}, {QWeekH}, and {QWeekM}\n```\nWeekly Gollux Shop Reset (Wednesday 00:00 UTC)\n{TextDisplay}\n{GWeekD}, {GWeekH}, and {GWeekM}\n```\nWeekly Event Reset (Wednesday 00:00 UTC)\n{TextDisplay}\n{GWeekD}, {GWeekH}, and {GWeekM}\n```|{list({indx}):{subTitles}}\n{replace(;,,):{list({indx}):{Body}}}\n}}",
"embed": "{\"color\": 9075163, \"title\": \"{Title}\", \"author\": {\"name\": \"Maplestory Resets\"}, \"fields\": [{\"name\": \"{Name}\", \"value\": \"{NameField}\", \"inline\": false}, {\"name\": \"For a list of all commands, use\", \"value\": \"?resets help\", \"inline\": false}], \"footer\": {\"text\": \"Please try to keep bot spam to a minimum and to use #bot-spam whenever possible. For a list of all tags, use ?listtags\"}, \"description\": \"{Content}\"}",
"last_fetched": "2026-10-20T20:57:50.144Z"
}