résine
Privateunrated
Content
32 lines{=(COMMENT):Checks if the specified number is a positive number, or equal to 0.}
{=(isNum):{any({m:sgn({1})}==1|{m:sgn({1})}==0):true|false}}
{=(COMMENT):Checks if the specified number is equal to or below 119.}
{=(isBelow):{if({1}<=119):true|false}}
{=(COMMENT):Cooldown per resin in minutes. Currently "8 minutes".}
{=(cd.min):8}
{=(COMMENT):Cooldown per resin in seconds. Multiplies 8 by 60, which equals to 480.}
{=(cd.sec):{m:{cd.min}*60}}
{=(resin.diff):{m:trunc(120-{1})}}
{=(multiply):{m:trunc({resin.diff}*{cd.sec})}}
{=(unix.diff):{m:trunc({unix}-{multiply})}}
{=(time.rem):{td({unix.diff}):{unix}}}
{=(formatted):{replace(and,et):{replace(hour,heure):{replace(hours,heures):{time.rem}}}}}
{=(msg.success):Temps restant avant recharge complète de tes [résines](https://genshin-impact.fandom.com/wiki/Original_Resin "Page Wiki Résine"), {user(mention)} :
── {formatted} ── `[`**`{1}`**`/ 120 ]`}
{=(msg.error):Tu dois spécifier un nombre de résines compris entre **0** et **119**.}
{=(footer):Note : Chaque résine prend 8 minutes à se recharger. Soit 16 heures pour les 120.}
{=(thumbnail):https://vignette.wikia.nocookie.net/gensin-impact/images/3/35/Item_Fragile_Resin.png/revision/latest/scale-to-width-down/80?cb=20201006025854}
{=(output):{and({isNum}==true|{isBelow}==true|{1}!=):{msg.success}|{msg.error}}}
{embed(color):#3C7CE2}Embed
1 line{"color": 3964130, "footer": {"text": "{footer}", "icon_url": "{thumbnail}"}, "description": "{output}"}Raw JSON
{
"id": 364679,
"created_at": "2020-10-08T06:50:24.000Z",
"tag_name": "résine",
"nsfw": false,
"owner_id": "149926720114262016",
"uses": 28,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "314660900302749696",
"sharer": "149926720114262016",
"content": "{=(COMMENT):Checks if the specified number is a positive number, or equal to 0.}\n{=(isNum):{any({m:sgn({1})}==1|{m:sgn({1})}==0):true|false}}\n{=(COMMENT):Checks if the specified number is equal to or below 119.}\n{=(isBelow):{if({1}<=119):true|false}}\n\n{=(COMMENT):Cooldown per resin in minutes. Currently \"8 minutes\".}\n{=(cd.min):8}\n\n{=(COMMENT):Cooldown per resin in seconds. Multiplies 8 by 60, which equals to 480.}\n{=(cd.sec):{m:{cd.min}*60}}\n\n{=(resin.diff):{m:trunc(120-{1})}}\n\n{=(multiply):{m:trunc({resin.diff}*{cd.sec})}}\n\n{=(unix.diff):{m:trunc({unix}-{multiply})}}\n\n{=(time.rem):{td({unix.diff}):{unix}}}\n\n{=(formatted):{replace(and,et):{replace(hour,heure):{replace(hours,heures):{time.rem}}}}}\n\n{=(msg.success):Temps restant avant recharge complète de tes [résines](https://genshin-impact.fandom.com/wiki/Original_Resin \"Page Wiki Résine\"), {user(mention)} :\n── {formatted} ── `[`**`{1}`**`/ 120 ]`}\n\n{=(msg.error):Tu dois spécifier un nombre de résines compris entre **0** et **119**.}\n\n{=(footer):Note : Chaque résine prend 8 minutes à se recharger. Soit 16 heures pour les 120.}\n{=(thumbnail):https://vignette.wikia.nocookie.net/gensin-impact/images/3/35/Item_Fragile_Resin.png/revision/latest/scale-to-width-down/80?cb=20201006025854}\n\n{=(output):{and({isNum}==true|{isBelow}==true|{1}!=):{msg.success}|{msg.error}}}\n\n{embed(color):#3C7CE2}",
"embed": "{\"color\": 3964130, \"footer\": {\"text\": \"{footer}\", \"icon_url\": \"{thumbnail}\"}, \"description\": \"{output}\"}",
"last_fetched": "2026-10-20T22:41:47.093Z"
}