timer
Private
Content
20 lines{=():}
{=(COMMENT):Shortners and aliases}
{=(u):{unix}} {# Current Unix timestamp #}
{=(operation):+} {# Always add time #}
{=(help):> This command will always calculate the Unix timestamp for 2 hours later.}
{=(time):2h} {# Fixed time to 2 hours #}
{=(COMMENT):Convert 2 hours to seconds}
{=(time):{replace(h,*3600):{time}}} {# Converts 2 hours to seconds (3600 * 2) #}
{=(TimeCalcString):{join(+):{time}}} {# Joins the calculated time #}
{=(secs):{m:{TimeCalcString}}} {# Converts time to seconds #}
{=(nu):{m:trunc({u}{operation}{m:{TimeCalcString}})}} {# Adds 2 hours (in seconds) to the current Unix timestamp #}
{c:echo `{nu}`} {# Outputs the new Unix timestamp #}
{embed(color):#5BCEFA}Embed
1 line{"color": 5198940, "fields": [{"name": "Short time ", "value": "<t:{nu}:t>\n\\<t:{nu}:t>", "inline": false}]}Raw JSON
{
"id": 2106456,
"created_at": "2024-09-05T16:25:19.000Z",
"tag_name": "timer",
"nsfw": false,
"owner_id": "765679530949869578",
"uses": 0,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "",
"hidden": false,
"guild_id": "988509512027742298",
"sharer": "765679530949869578",
"content": "{=():}\n{=(COMMENT):Shortners and aliases}\n{=(u):{unix}} {# Current Unix timestamp #}\n{=(operation):+} {# Always add time #}\n{=(help):> This command will always calculate the Unix timestamp for 2 hours later.}\n\n{=(time):2h} {# Fixed time to 2 hours #}\n\n{=(COMMENT):Convert 2 hours to seconds}\n{=(time):{replace(h,*3600):{time}}} {# Converts 2 hours to seconds (3600 * 2) #}\n\n{=(TimeCalcString):{join(+):{time}}} {# Joins the calculated time #}\n\n{=(secs):{m:{TimeCalcString}}} {# Converts time to seconds #}\n\n{=(nu):{m:trunc({u}{operation}{m:{TimeCalcString}})}} {# Adds 2 hours (in seconds) to the current Unix timestamp #}\n\n{c:echo `{nu}`} {# Outputs the new Unix timestamp #}\n\n{embed(color):#5BCEFA}",
"embed": "{\"color\": 5198940, \"fields\": [{\"name\": \"Short time \", \"value\": \"<t:{nu}:t>\\n\\\\<t:{nu}:t>\", \"inline\": false}]}",
"last_fetched": "2026-10-20T19:44:32.257Z"
}