changetemp
Private
Content
63 lines{=(COMMENT):Forcing Capitals}
{=(ua):{upper:{args}}}
{=(COMMENT):Converting Temperature Maths}
{=(c/f):{calc:round(({ua(1):C}*1.8)+32)}}
{=(f/c):{calc:round(({ua(1):F}-32)/1.8)}}
{=(c/k):{calc:round({ua(1):C}+273.15)}}
{=(f/k):{calc:round(({ua(1):F}-32)/1.8+273.15)}}
{=(COMMENT):Checking args to do the right maths!}
{=(changemath):{if({in(C):{ua(1)}}==true):{c/f} Fahrenheit ‖ {c/k} Kelvin|{if({in(F):{ua(1)}}==true):{f/c} Celsius ‖ {f/k} Kelvin}}}
{=(COMMENT):Content Checks}
{=(noArgs):{if(=={1}):true|false}}
{=(isHelp):{if({ua(1)}==HELP):true|false}}
{=(hasComma):{if({in(,):{ua(1)}}==true):true|false}}
{=(unitCheck):{any({in(C):{ua(1)}}==true|{in(F):{ua(1)}}==true):true|false}}
{=(noUnit):{if({unitCheck}==false):true|false}}
{=(COMMENT):Error Messages for Content Checks}
{=(msg.empty):Without a number and unit, I can't convert anything. If you'd like to know how this command works, use it with `help` and I'll show you :)}
{=(msg.help):
Use this command along with a number and unit `[C or F]`, and I'll tell you how it converts in either direction! I also can't do math with commas `,` so please don't include them!
> Example: `temp 34f` would return the result `1 Celsius ‖ 274 Kelvin`
Additionally, you can include text with the command if you'd like to give context, but the **first word** after the command must be your temperature, otherwise it will trigger an error message.
> Example: `temp 34f This is what I woke up to this morning` will work
> `temp I woke up to 34f this morning` will **NOT** work.}
{=(msg.comma):You can't use a comma for this command, it breaks the formulas. Try again without it :)}
{=(msg.unit):I need to know which unit to measure in order to convert it. The options are `C` or `F`}
{=(COMMENT):Index storage and checks of error messages}
{=(msg):msg.empty msg.help msg.comma msg.unit}
{=(error.output):{{msg({index(true):0 {noArgs} {isHelp} {hasComma} {noUnit} true})}}}
{=(COMMENT):Final Checks/Result | Embed Appearance}
{=(errorcheck):{any({noArgs}==true|{isHelp}==true|{hasComma}==true|{noUnit}==true):true}}
{=(emtit):{if({errorcheck}==true):Here's some info!|That converts to:}}
{=(emfoot):{if({errorcheck}==true):Stupid numbers. Use `help` with the command for instructions.|Results are rounded to the nearest whole number.}}
{embed(title):{emtit}}
{=(coldcheck):{any({c/k}<=288|{f/k}<=288):true|false}}
{=(ecolor):{if({errorcheck}==true):#F9F13E|{if({coldcheck}==true):#75c3ff|#F4442E}}}
{embed(color):{ecolor}}
{=(bodycheck):{if({errorcheck}==true):{error.output}|{changemath}}}
{=(finaldebug):
## Final Debug Menu
args - 1) {ua(1)} | 2) {ua(2)}
----------
> noArgs - {noArgs}
> isHelp - {isHelp}
> hasComma - {hasComma}
> noUnit - {noUnit}
----------
• errorcheck - {errorcheck}
• error.output - {error.output}
• changemath - {changemath}
• bodycheck - {bodycheck}
----------
→ Embed Title: {emtit}
→ Embed Footer: {emfoot}
→ Cold Check : {coldcheck}
→ Embed Color: {ecolor}
}Embed
1 line{"color": 5198940, "title": "{emtit}", "footer": {"text": "{emfoot}"}, "description": "{bodycheck}"}Raw JSON
{
"id": 2278487,
"created_at": "2025-05-09T20:01:53.000Z",
"tag_name": "changetemp",
"nsfw": false,
"owner_id": "626125124650663937",
"uses": 117,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "",
"hidden": false,
"guild_id": "1370448439778738246",
"sharer": "261380086148759553",
"content": "{=(COMMENT):Forcing Capitals}\n{=(ua):{upper:{args}}}\n\n{=(COMMENT):Converting Temperature Maths}\n{=(c/f):{calc:round(({ua(1):C}*1.8)+32)}}\n{=(f/c):{calc:round(({ua(1):F}-32)/1.8)}}\n{=(c/k):{calc:round({ua(1):C}+273.15)}}\n{=(f/k):{calc:round(({ua(1):F}-32)/1.8+273.15)}}\n\n{=(COMMENT):Checking args to do the right maths!}\n{=(changemath):{if({in(C):{ua(1)}}==true):{c/f} Fahrenheit ‖ {c/k} Kelvin|{if({in(F):{ua(1)}}==true):{f/c} Celsius ‖ {f/k} Kelvin}}}\n\n{=(COMMENT):Content Checks}\n{=(noArgs):{if(=={1}):true|false}}\n{=(isHelp):{if({ua(1)}==HELP):true|false}}\n{=(hasComma):{if({in(,):{ua(1)}}==true):true|false}}\n{=(unitCheck):{any({in(C):{ua(1)}}==true|{in(F):{ua(1)}}==true):true|false}}\n{=(noUnit):{if({unitCheck}==false):true|false}}\n\n{=(COMMENT):Error Messages for Content Checks}\n{=(msg.empty):Without a number and unit, I can't convert anything. If you'd like to know how this command works, use it with `help` and I'll show you :)}\n{=(msg.help):\nUse this command along with a number and unit `[C or F]`, and I'll tell you how it converts in either direction! I also can't do math with commas `,` so please don't include them!\n> Example: `temp 34f` would return the result `1 Celsius ‖ 274 Kelvin`\nAdditionally, you can include text with the command if you'd like to give context, but the **first word** after the command must be your temperature, otherwise it will trigger an error message.\n> Example: `temp 34f This is what I woke up to this morning` will work\n> `temp I woke up to 34f this morning` will **NOT** work.}\n{=(msg.comma):You can't use a comma for this command, it breaks the formulas. Try again without it :)}\n{=(msg.unit):I need to know which unit to measure in order to convert it. The options are `C` or `F`}\n\n{=(COMMENT):Index storage and checks of error messages}\n{=(msg):msg.empty msg.help msg.comma msg.unit}\n{=(error.output):{{msg({index(true):0 {noArgs} {isHelp} {hasComma} {noUnit} true})}}}\n\n{=(COMMENT):Final Checks/Result | Embed Appearance}\n{=(errorcheck):{any({noArgs}==true|{isHelp}==true|{hasComma}==true|{noUnit}==true):true}}\n{=(emtit):{if({errorcheck}==true):Here's some info!|That converts to:}}\n{=(emfoot):{if({errorcheck}==true):Stupid numbers. Use `help` with the command for instructions.|Results are rounded to the nearest whole number.}}\n{embed(title):{emtit}}\n{=(coldcheck):{any({c/k}<=288|{f/k}<=288):true|false}}\n{=(ecolor):{if({errorcheck}==true):#F9F13E|{if({coldcheck}==true):#75c3ff|#F4442E}}}\n{embed(color):{ecolor}}\n{=(bodycheck):{if({errorcheck}==true):{error.output}|{changemath}}}\n\n{=(finaldebug):\n## Final Debug Menu\nargs - 1) {ua(1)} | 2) {ua(2)}\n----------\n> noArgs - {noArgs}\n> isHelp - {isHelp}\n> hasComma - {hasComma}\n> noUnit - {noUnit}\n----------\n• errorcheck - {errorcheck}\n• error.output - {error.output}\n• changemath - {changemath}\n• bodycheck - {bodycheck}\n----------\n→ Embed Title: {emtit}\n→ Embed Footer: {emfoot}\n→ Cold Check : {coldcheck}\n→ Embed Color: {ecolor}\n}",
"embed": "{\"color\": 5198940, \"title\": \"{emtit}\", \"footer\": {\"text\": \"{emfoot}\"}, \"description\": \"{bodycheck}\"}",
"last_fetched": "2026-10-20T19:56:50.259Z"
}