startbidding
Private
Content
67 lines{=():}
{override}
{silence}
{=(COMMENT):Day Check}
{=(D.1):{if({in(d):{lower:{args(1)}}}==true):{lower:{args(1)}}}}
{=(D.2):{lower:{replace(, ):{D.1(2+):d}}}}
{=(Dcheck1):{if(=={D.2}):{D.1}}}
{=(Dfinal):{replace(d,):{if(!={Dcheck1}):{Dcheck1}}}}
{=(Dmath):{if({m:sgn({Dfinal})}==1):{m:trunc({Dfinal}*1440)}}}
{=(COMMENT):Hour Check}
{=(H.1):{if({in(h):{lower:{args(1)}}}==true):{lower:{args(1)}}}}
{=(H.1.1):{if({in(h):{list(1):{join(~):{lower:{args}}}}}==true):{list(1):{join(~):{lower:{args}}}}}}
{=(H.2):{lower:{replace(, ):{H.1.1(2+):h}}}}
{=(H.2.1):{lower:{replace(, ):{H.1.1(2+):h}}}}
{=(Hcheck1):{if(=={H.2}):{H.1}}}
{=(Hcheck1.1):{if(=={H.2.1}):{H.1.1}}}
{=(Hfinal):{replace(h,):{if(!={Hcheck1}):{Hcheck1}}{if(!={Hcheck1.1}):{Hcheck1.1}}}}
{=(Hmath):{if({m:sgn({Hfinal})}==1):{m:trunc({Hfinal}*60)}}}
{=(COMMENT):Minute Check}
{=(M.1):{if({in(m):{lower:{args(1)}}}==true):{lower:{args(1)}}}}
{=(M.1.1):{if({in(m):{list(1):{join(~):{lower:{args}}}}}==true):{list(1):{join(~):{lower:{args}}}}}}
{=(M.1.2):{if({in(m):{list(2):{join(~):{lower:{args}}}}}==true):{list(2):{join(~):{lower:{args}}}}}}
{=(M.2):{lower:{replace(, ):{M.1.1(2+):m}}}}
{=(M.2.1):{lower:{replace(, ):{M.1.1(2+):m}}}}
{=(M.2.2):{lower:{replace(, ):{M.1.2(2+):m}}}}
{=(Mcheck1):{if(=={M.2}):{M.1}}}
{=(Mcheck1.1):{if(=={M.2.1}):{M.1.1}}}
{=(Mcheck1.2):{if(=={M.2.2}):{M.1.2}}}
{=(Mfinal):{replace(m,):{if(!={Mcheck1}):{Mcheck1}}{if(!={Mcheck1.1}):{Mcheck1.1}}{if(!={Mcheck1.2}):{Mcheck1.2}}}}
{=(Mmath):{if({m:sgn({Mfinal})}==1):{Mfinal}}}
{=(COMMENT):Checks all user inputs for correct syntax usage as well as the D H M outputs for valid outputs}
{=(ALL):{all(!={Dmath}|!={Hmath}|!={Mmath}):{m:trunc({Dmath}+{Hmath}+{Mmath})}}}
{=(D):{all(!={Dmath}|=={Hmath}|=={Mmath}):{Dmath}}}
{=(DH):{all(!={Dmath}|!={Hmath}|=={Mmath}):{m:trunc({Dmath}+{Hmath})}}}
{=(DM1):{all(!={Dmath}|=={Hmath}|!={Mmath}):{m:trunc({Dmath}+{Mmath})}}}
{=(H):{all(=={Dmath}|!={Hmath}|=={Mmath}):{Hmath}}}
{=(HM):{all(=={Dmath}|!={Hmath}|!={Mmath}):{m:trunc({Hmath}+{Mmath})}}}
{=(M):{all(=={Dmath}|=={Hmath}|!={Mmath}):{Mmath}}}
{=(NONE):{all(=={Dmath}|=={Hmath}|=={Mmath}):None}}
{=(output):{if(=={list(3):{join(~):{args}}}):{ALL}}{if(=={list(1):{join(~):{args}}}):{D}}{if(=={list(2):{join(~):{args}}}):{DH}}{if(=={list(2):{join(~):{args}}}):{DM1}}{if(=={list(1):{join(~):{args}}}):{H}}{if(=={list(2):{join(~):{args}}}):{HM}}{if(=={list(1):{join(~):{args}}}):{M}}{NONE}}
{=(COMMENT):Checks if the output is a Valid Time. Adds m to it for minutes and is used in the command block at bottom.}
{=(vTime):{if({m:sgn({output})}==1):{output}m|Invalid Time}}
{=(COMMENT):Converts output to a Timestamp for vMessage}
{=(vTimestamp):{if({m:sgn({output})}==1):{m:trunc({output}*60)}}}
{=(COMMENT):If user input is valid, shows the valid message else error message}
{=(vMessage):{if(Invalid Time!={vTime}):# Bidding has Started.
No further bids will be taken after <t:{m:trunc({unix}+{vTimestamp})}:F>.|Please use a Valid Time.
__Acceptable Formats__
**D H M**.
- You can use any combination of these 3 characters as long as they follow the order shown above.
- This means you cannot use a **H** or **M** before a **D** or a **M** before a **H**.
- If you do not include one of the characters, you can still use the others as along as the order is correct.
- **D**, **H** or **M** can also be used on their own.
- You must also include the character with the number.
Example: 1D 30M is acceptable but 30M 1D is not. 1D 6H is acceptable but 6H 1D is not.}}
{=(COMMENT):Executes Autofeed Command if user input is Valid}
{{if(Invalid Time!={vTime}):c:af silent {vTime} # Bidding has Ended!}}
{vMessage}Raw JSON
{
"id": 1934979,
"created_at": "2024-02-04T16:29:08.000Z",
"tag_name": "startbidding",
"nsfw": false,
"owner_id": "602615705015156736",
"uses": 7,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "",
"hidden": false,
"guild_id": "1039570200544170025",
"sharer": "602615705015156736",
"content": "{=():}\n{override}\n{silence}\n\n{=(COMMENT):Day Check}\n{=(D.1):{if({in(d):{lower:{args(1)}}}==true):{lower:{args(1)}}}}\n{=(D.2):{lower:{replace(, ):{D.1(2+):d}}}}\n{=(Dcheck1):{if(=={D.2}):{D.1}}}\n{=(Dfinal):{replace(d,):{if(!={Dcheck1}):{Dcheck1}}}}\n{=(Dmath):{if({m:sgn({Dfinal})}==1):{m:trunc({Dfinal}*1440)}}}\n\n{=(COMMENT):Hour Check}\n{=(H.1):{if({in(h):{lower:{args(1)}}}==true):{lower:{args(1)}}}}\n{=(H.1.1):{if({in(h):{list(1):{join(~):{lower:{args}}}}}==true):{list(1):{join(~):{lower:{args}}}}}}\n{=(H.2):{lower:{replace(, ):{H.1.1(2+):h}}}}\n{=(H.2.1):{lower:{replace(, ):{H.1.1(2+):h}}}}\n{=(Hcheck1):{if(=={H.2}):{H.1}}}\n{=(Hcheck1.1):{if(=={H.2.1}):{H.1.1}}}\n{=(Hfinal):{replace(h,):{if(!={Hcheck1}):{Hcheck1}}{if(!={Hcheck1.1}):{Hcheck1.1}}}}\n{=(Hmath):{if({m:sgn({Hfinal})}==1):{m:trunc({Hfinal}*60)}}}\n\n{=(COMMENT):Minute Check}\n{=(M.1):{if({in(m):{lower:{args(1)}}}==true):{lower:{args(1)}}}}\n{=(M.1.1):{if({in(m):{list(1):{join(~):{lower:{args}}}}}==true):{list(1):{join(~):{lower:{args}}}}}}\n{=(M.1.2):{if({in(m):{list(2):{join(~):{lower:{args}}}}}==true):{list(2):{join(~):{lower:{args}}}}}}\n{=(M.2):{lower:{replace(, ):{M.1.1(2+):m}}}}\n{=(M.2.1):{lower:{replace(, ):{M.1.1(2+):m}}}}\n{=(M.2.2):{lower:{replace(, ):{M.1.2(2+):m}}}}\n{=(Mcheck1):{if(=={M.2}):{M.1}}}\n{=(Mcheck1.1):{if(=={M.2.1}):{M.1.1}}}\n{=(Mcheck1.2):{if(=={M.2.2}):{M.1.2}}}\n{=(Mfinal):{replace(m,):{if(!={Mcheck1}):{Mcheck1}}{if(!={Mcheck1.1}):{Mcheck1.1}}{if(!={Mcheck1.2}):{Mcheck1.2}}}}\n{=(Mmath):{if({m:sgn({Mfinal})}==1):{Mfinal}}}\n\n{=(COMMENT):Checks all user inputs for correct syntax usage as well as the D H M outputs for valid outputs}\n{=(ALL):{all(!={Dmath}|!={Hmath}|!={Mmath}):{m:trunc({Dmath}+{Hmath}+{Mmath})}}}\n{=(D):{all(!={Dmath}|=={Hmath}|=={Mmath}):{Dmath}}}\n{=(DH):{all(!={Dmath}|!={Hmath}|=={Mmath}):{m:trunc({Dmath}+{Hmath})}}}\n{=(DM1):{all(!={Dmath}|=={Hmath}|!={Mmath}):{m:trunc({Dmath}+{Mmath})}}}\n{=(H):{all(=={Dmath}|!={Hmath}|=={Mmath}):{Hmath}}}\n{=(HM):{all(=={Dmath}|!={Hmath}|!={Mmath}):{m:trunc({Hmath}+{Mmath})}}}\n{=(M):{all(=={Dmath}|=={Hmath}|!={Mmath}):{Mmath}}}\n{=(NONE):{all(=={Dmath}|=={Hmath}|=={Mmath}):None}}\n{=(output):{if(=={list(3):{join(~):{args}}}):{ALL}}{if(=={list(1):{join(~):{args}}}):{D}}{if(=={list(2):{join(~):{args}}}):{DH}}{if(=={list(2):{join(~):{args}}}):{DM1}}{if(=={list(1):{join(~):{args}}}):{H}}{if(=={list(2):{join(~):{args}}}):{HM}}{if(=={list(1):{join(~):{args}}}):{M}}{NONE}}\n\n{=(COMMENT):Checks if the output is a Valid Time. Adds m to it for minutes and is used in the command block at bottom.}\n{=(vTime):{if({m:sgn({output})}==1):{output}m|Invalid Time}}\n\n{=(COMMENT):Converts output to a Timestamp for vMessage}\n{=(vTimestamp):{if({m:sgn({output})}==1):{m:trunc({output}*60)}}}\n\n{=(COMMENT):If user input is valid, shows the valid message else error message}\n{=(vMessage):{if(Invalid Time!={vTime}):# Bidding has Started.\nNo further bids will be taken after <t:{m:trunc({unix}+{vTimestamp})}:F>.|Please use a Valid Time.\n__Acceptable Formats__\n**D H M**. \n- You can use any combination of these 3 characters as long as they follow the order shown above.\n - This means you cannot use a **H** or **M** before a **D** or a **M** before a **H**.\n - If you do not include one of the characters, you can still use the others as along as the order is correct.\n - **D**, **H** or **M** can also be used on their own.\n - You must also include the character with the number.\nExample: 1D 30M is acceptable but 30M 1D is not. 1D 6H is acceptable but 6H 1D is not.}}\n\n{=(COMMENT):Executes Autofeed Command if user input is Valid}\n{{if(Invalid Time!={vTime}):c:af silent {vTime} # Bidding has Ended!}}\n\n{vMessage}",
"embed": "{}",
"last_fetched": "2026-10-20T19:31:36.760Z"
}