rule

I did it :D

Privateunrated

Content

192 lines
{=(comment):Change the prefix and tag name to match your server's settings.}
{=(prefix):!}
{=(tagname):rule}

{=(comment):
If you would like the tag to always display a link to your rules channel in the description when you are listing rules
Insert the channel id of your rules channel below. Leave completely blank and it will not display.}
{=(ruleschannelid):810600249029951579}

{=(comment):Add, change or remove the embed title here}
{embed(title):}

{=(comment):
Put custom titles in the title1-title25 variables (if you want them).
Put keywords for each rule in the keyword1-keyword25 variables. Not required but useful.

The logic behind keyword detection has changed, LONG keywords are better. If you have "spamming" as the keyword, and do "!rule spam", it will detect it. 

You can provide multiple keywords for each rule IF you do NOT put spaces in between them. Use commas if you feel the need to separate them.

Put rules in the rule1-rule25 variables.
Titles must be less than 256 characters, and rules must be less than 1024 characters.
Some symbols in rule text might cause issues, limit formatting to Discord markdown friendly characters. 
DO NOT USE " or | in rule text.
Leave custom titles blank to have the titles just be "Rule #".
Leave corresponding title, keyword, and rule variables blank if the rule # does not exist, but do NOT erase the blank variables}


{=(title01):}
{=(keyword01):drama}
{=(rule01):Do NOT initiate or entice any drama. If you do begin drama or jump into anything, you will be contacted by the owner or an admin and immediately asked to leave. This is a NO DRAMA ZONE.}

{=(title02):}
{=(keyword02):respectful}
{=(rule02):Be respectful of others beliefs, thoughts, and/or opinions. Just like you, everyone else is entitled to believe and feel their own ways on certain topics.}

{=(title03):}
{=(keyword03):swearing,nsfw}
{=(rule03):Strong language is allowed, but if the owner or admin sees it being abused; you will be asked to leave. If you are upset about something you can always contact the owner or an admin and rant to them- or go to the <#837719856576987197> channel. No NSFW content will be allowed outside of the <#837719856576987197> channel. Anything that contains gore, violence, or sexual themes is considered NSFW.}

{=(title04):}
{=(keyword04):complete}
{=(rule04):You have up to four days to complete the server <#837719856576987197>. At the four-day mark, the owner or an admin will remind you; if you continue to fail this task, you will receive a strike.}

{=(title05):}
{=(keyword05):credit}
{=(rule05):Plagiarism will not be tolerated. Do not claim someone else's work as your own. If you post someone else's work to <#837719856576987197> please credit them.}

{=(title06):}
{=(keyword06):selfharm,abuse}
{=(rule06):If you have a message that contains a potentially triggering subject such as self-harm, needles, abuse, etc then put a spoiler warning over it.}

{=(title07):}
{=(keyword07):suggestions}
{=(rule07):If you have any suggestions and/or complaints please take it to the owner or an admin and it will be handled accordingly.}

{=(title08):}
{=(keyword08):fun,friends}
{=(rule08):HAVE FUN AND MAKE FRIENDS!! This server was created for gamers to get together and play in-game, chat with one another, and to share edits.}

{=(title09):}
{=(keyword09):}
{=(rule09):}

{=(title10):}
{=(keyword10):}
{=(rule10):}

{=(title11):}
{=(keyword11):}
{=(rule11):}

{=(title12):}
{=(keyword12):}
{=(rule12):}

{=(title13):}
{=(keyword13):}
{=(rule13):}

{=(title14):}
{=(keyword14):}
{=(rule14):}

{=(title15):}
{=(keyword15):}
{=(rule15):}

{=(title16):}
{=(keyword16):}
{=(rule16):}

{=(title17):}
{=(keyword17):}
{=(rule17):}

{=(title18):}
{=(keyword18):}
{=(rule18):}

{=(title19):}
{=(keyword19):}
{=(rule19):}

{=(title20):}
{=(keyword20):}
{=(rule20):}

{=(title21):}
{=(keyword21):}
{=(rule21):}

{=(title22):}
{=(keyword22):}
{=(rule22):}

{=(title23):}
{=(keyword23):}
{=(rule23):}

{=(title24):}
{=(keyword24):}
{=(rule24):}

{=(title25):}
{=(keyword25):}
{=(rule25):}

{=(comment):Title overrides, don't touch except to translate "Rule" into a different language}
{=(word4rule):Rule}


{=(comment):Don't change anything below this comment}


{=(t01):{if(!={title01}):{title01}|{word4rule} 1}}
{=(t02):{if(!={title02}):{title02}|{word4rule} 2}}
{=(t03):{if(!={title03}):{title03}|{word4rule} 3}}
{=(t04):{if(!={title04}):{title04}|{word4rule} 4}}
{=(t05):{if(!={title05}):{title05}|{word4rule} 5}}
{=(t06):{if(!={title06}):{title06}|{word4rule} 6}}
{=(t07):{if(!={title07}):{title07}|{word4rule} 7}}
{=(t08):{if(!={title08}):{title08}|{word4rule} 8}}
{=(t09):{if(!={title09}):{title09}|{word4rule} 9}}
{=(t10):{if(!={title10}):{title10}|{word4rule} 10}}
{=(t11):{if(!={title11}):{title11}|{word4rule} 11}}
{=(t12):{if(!={title12}):{title12}|{word4rule} 12}}
{=(t13):{if(!={title13}):{title13}|{word4rule} 13}}
{=(t14):{if(!={title14}):{title14}|{word4rule} 14}}
{=(t15):{if(!={title15}):{title15}|{word4rule} 15}}
{=(t16):{if(!={title16}):{title16}|{word4rule} 16}}
{=(t17):{if(!={title17}):{title17}|{word4rule} 17}}
{=(t18):{if(!={title18}):{title18}|{word4rule} 18}}
{=(t19):{if(!={title19}):{title19}|{word4rule} 19}}
{=(t20):{if(!={title20}):{title20}|{word4rule} 20}}
{=(t21):{if(!={title21}):{title21}|{word4rule} 21}}
{=(t22):{if(!={title22}):{title22}|{word4rule} 22}}
{=(t23):{if(!={title23}):{title23}|{word4rule} 23}}
{=(t24):{if(!={title24}):{title24}|{word4rule} 24}}
{=(t25):{if(!={title25}):{title25}|{word4rule} 25}}

{=(comment):builds the list of rule numbers for rules that are populated}
{=(rules):{if(!={rule01(1)}):01}{if(!={rule02(1)}): 02}{if(!={rule03(1)}): 03}{if(!={rule04(1)}): 04}{if(!={rule05(1)}): 05}{if(!={rule06(1)}): 06}{if(!={rule07(1)}): 07}{if(!={rule08(1)}): 08}{if(!={rule09(1)}): 09}{if(!={rule10(1)}): 10}{if(!={rule11(1)}): 11}{if(!={rule12(1)}): 12}{if(!={rule13(1)}): 13}{if(!={rule14(1)}): 14}{if(!={rule15(1)}): 15}{if(!={rule16(1)}): 16}{if(!={rule17(1)}): 17}{if(!={rule18(1)}): 18}{if(!={rule19(1)}): 19}{if(!={rule20(1)}): 20}{if(!={rule21(1)}): 21}{if(!={rule22(1)}): 22}{if(!={rule23(1)}): 23}{if(!={rule24(1)}): 24}{if(!={rule25(1)}): 25}}

{=(comment):space saving measures that makes the whole thing way harder to read lmao}
{=(r):replace}
{=(ct):contains}

{=(comment):Takes out the first channel mention present in args assuming it is present due to the desire for the rules to be sent to that channel}
{=(sc):{if({in(<#):{args}}==true):{{r}({args({index(<#):{{r}(<#,. <# .):{args}}})},):{args}}|{args}}}
{=(sc):{join( ):{sc}}}

{=(keywords):{if(!={keyword01(1):,}):{keyword01}}{if(!={keyword02(1):,}): {keyword02}}{if(!={keyword03(1):,}): {keyword03}}{if(!={keyword04(1):,}): {keyword04}}{if(!={keyword05(1):,}): {keyword05}}{if(!={keyword06(1):,}): {keyword06}}{if(!={keyword07(1):,}): {keyword07}}{if(!={keyword08(1):,}): {keyword08}}{if(!={keyword09(1):,}): {keyword09}}{if(!={keyword10(1):,}): {keyword10}}{if(!={keyword11(1):,}): {keyword11}}{if(!={keyword12(1):,}): {keyword12}}{if(!={keyword13(1):,}): {keyword13}}{if(!={keyword14(1):,}): {keyword14}}{if(!={keyword15(1):,}): {keyword15}}{if(!={keyword16(1):,}): {keyword16}}{if(!={keyword17(1):,}): {keyword17}}{if(!={keyword18(1):,}): {keyword18}}{if(!={keyword19(1):,}): {keyword19}}{if(!={keyword20(1):,}): {keyword20}}{if(!={keyword21(1):,}): {keyword21}}{if(!={keyword22(1):,}): {keyword22}}{if(!={keyword23(1):,}): {keyword23}}{if(!={keyword24(1):,}): {keyword24}}{if(!={keyword25(1):,}): {keyword25}}}

{=(comment):Checks if the arg present is a keyword, and if it is, changes it to a rule number}
{=(lsc):{lower:{sc}}}
{=(ws):{if(!={lsc(1)}):{if({in({lsc(1)}):{keywords}}==true):{index({lsc(1)}):{{r}({lsc(1)},. {lsc(1)} .):{keywords}}}|{lsc(1)}}|{lsc(1)}}}

{=(comment):adds leading zeros to single digit numbers: adds ~ before and after the {ws} variable, joins with ~, replaces ~#~ with ~0#~, replaces ~ with spaces, then joins to remove leading/trailing spaces}
{=(sani):{join( ):{{r}(~, ):{{r}(~1~,~01~):{{r}(~2~,~02~):{{r}(~3~,~03~):{{r}(~4~,~04~):{{r}(~5~,~05~):{{r}(~6~,~06~):{{r}(~7~,~07~):{{r}(~8~,~08~):{{r}(~9~,~09~):{join(~):~{ws}~}}}}}}}}}}}}}

{=(comment):If the sanitized number does not match a number for a rule that exists, the tag displays the help window}
{=(num):{if({{ct}({sani(1)}):{rules}}==true):{sani(1)}|00}}

{=(t00):Rules Command Instructions}
{=(rule00):Follow `{prefix}{tagname}` with the number or corresponding keyword of the rule you wish to output.

**__{server}'s Keywords:__**
{join(`, `):`{keywords}`}}
{=():}
{{if({in(<#):{args}}==true):redirect:{args({index(<#):{{r}(<#,. <# .):{args}}})}}}
{embed(description):{if(!={ruleschannelid}):<#{ruleschannelid}>}}

Embed

1 line
{"color": 3092790, "fields": [{"name": "​{t{num}}", "value": "​{rule{num}}", "inline": false}]}
Raw JSON
{
  "id": 871546,
  "created_at": "2021-06-06T05:56:58.000Z",
  "tag_name": "rule",
  "nsfw": false,
  "owner_id": "430801761435910145",
  "uses": 70,
  "description": "I did it :D",
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "737680504375083029",
  "sharer": "430801761435910145",
  "content": "{=(comment):Change the prefix and tag name to match your server's settings.}\n{=(prefix):!}\n{=(tagname):rule}\n\n{=(comment):\nIf you would like the tag to always display a link to your rules channel in the description when you are listing rules\nInsert the channel id of your rules channel below. Leave completely blank and it will not display.}\n{=(ruleschannelid):810600249029951579}\n\n{=(comment):Add, change or remove the embed title here}\n{embed(title):}\n\n{=(comment):\nPut custom titles in the title1-title25 variables (if you want them).\nPut keywords for each rule in the keyword1-keyword25 variables. Not required but useful.\n\nThe logic behind keyword detection has changed, LONG keywords are better. If you have \"spamming\" as the keyword, and do \"!rule spam\", it will detect it. \n\nYou can provide multiple keywords for each rule IF you do NOT put spaces in between them. Use commas if you feel the need to separate them.\n\nPut rules in the rule1-rule25 variables.\nTitles must be less than 256 characters, and rules must be less than 1024 characters.\nSome symbols in rule text might cause issues, limit formatting to Discord markdown friendly characters. \nDO NOT USE \" or | in rule text.\nLeave custom titles blank to have the titles just be \"Rule #\".\nLeave corresponding title, keyword, and rule variables blank if the rule # does not exist, but do NOT erase the blank variables}\n\n\n{=(title01):}\n{=(keyword01):drama}\n{=(rule01):Do NOT initiate or entice any drama. If you do begin drama or jump into anything, you will be contacted by the owner or an admin and immediately asked to leave. This is a NO DRAMA ZONE.}\n\n{=(title02):}\n{=(keyword02):respectful}\n{=(rule02):Be respectful of others beliefs, thoughts, and/or opinions. Just like you, everyone else is entitled to believe and feel their own ways on certain topics.}\n\n{=(title03):}\n{=(keyword03):swearing,nsfw}\n{=(rule03):Strong language is allowed, but if the owner or admin sees it being abused; you will be asked to leave. If you are upset about something you can always contact the owner or an admin and rant to them- or go to the <#837719856576987197> channel. No NSFW content will be allowed outside of the <#837719856576987197> channel. Anything that contains gore, violence, or sexual themes is considered NSFW.}\n\n{=(title04):}\n{=(keyword04):complete}\n{=(rule04):You have up to four days to complete the server <#837719856576987197>. At the four-day mark, the owner or an admin will remind you; if you continue to fail this task, you will receive a strike.}\n\n{=(title05):}\n{=(keyword05):credit}\n{=(rule05):Plagiarism will not be tolerated. Do not claim someone else's work as your own. If you post someone else's work to <#837719856576987197> please credit them.}\n\n{=(title06):}\n{=(keyword06):selfharm,abuse}\n{=(rule06):If you have a message that contains a potentially triggering subject such as self-harm, needles, abuse, etc then put a spoiler warning over it.}\n\n{=(title07):}\n{=(keyword07):suggestions}\n{=(rule07):If you have any suggestions and/or complaints please take it to the owner or an admin and it will be handled accordingly.}\n\n{=(title08):}\n{=(keyword08):fun,friends}\n{=(rule08):HAVE FUN AND MAKE FRIENDS!! This server was created for gamers to get together and play in-game, chat with one another, and to share edits.}\n\n{=(title09):}\n{=(keyword09):}\n{=(rule09):}\n\n{=(title10):}\n{=(keyword10):}\n{=(rule10):}\n\n{=(title11):}\n{=(keyword11):}\n{=(rule11):}\n\n{=(title12):}\n{=(keyword12):}\n{=(rule12):}\n\n{=(title13):}\n{=(keyword13):}\n{=(rule13):}\n\n{=(title14):}\n{=(keyword14):}\n{=(rule14):}\n\n{=(title15):}\n{=(keyword15):}\n{=(rule15):}\n\n{=(title16):}\n{=(keyword16):}\n{=(rule16):}\n\n{=(title17):}\n{=(keyword17):}\n{=(rule17):}\n\n{=(title18):}\n{=(keyword18):}\n{=(rule18):}\n\n{=(title19):}\n{=(keyword19):}\n{=(rule19):}\n\n{=(title20):}\n{=(keyword20):}\n{=(rule20):}\n\n{=(title21):}\n{=(keyword21):}\n{=(rule21):}\n\n{=(title22):}\n{=(keyword22):}\n{=(rule22):}\n\n{=(title23):}\n{=(keyword23):}\n{=(rule23):}\n\n{=(title24):}\n{=(keyword24):}\n{=(rule24):}\n\n{=(title25):}\n{=(keyword25):}\n{=(rule25):}\n\n{=(comment):Title overrides, don't touch except to translate \"Rule\" into a different language}\n{=(word4rule):Rule}\n\n\n{=(comment):Don't change anything below this comment}\n\n\n{=(t01):{if(!={title01}):{title01}|{word4rule} 1}}\n{=(t02):{if(!={title02}):{title02}|{word4rule} 2}}\n{=(t03):{if(!={title03}):{title03}|{word4rule} 3}}\n{=(t04):{if(!={title04}):{title04}|{word4rule} 4}}\n{=(t05):{if(!={title05}):{title05}|{word4rule} 5}}\n{=(t06):{if(!={title06}):{title06}|{word4rule} 6}}\n{=(t07):{if(!={title07}):{title07}|{word4rule} 7}}\n{=(t08):{if(!={title08}):{title08}|{word4rule} 8}}\n{=(t09):{if(!={title09}):{title09}|{word4rule} 9}}\n{=(t10):{if(!={title10}):{title10}|{word4rule} 10}}\n{=(t11):{if(!={title11}):{title11}|{word4rule} 11}}\n{=(t12):{if(!={title12}):{title12}|{word4rule} 12}}\n{=(t13):{if(!={title13}):{title13}|{word4rule} 13}}\n{=(t14):{if(!={title14}):{title14}|{word4rule} 14}}\n{=(t15):{if(!={title15}):{title15}|{word4rule} 15}}\n{=(t16):{if(!={title16}):{title16}|{word4rule} 16}}\n{=(t17):{if(!={title17}):{title17}|{word4rule} 17}}\n{=(t18):{if(!={title18}):{title18}|{word4rule} 18}}\n{=(t19):{if(!={title19}):{title19}|{word4rule} 19}}\n{=(t20):{if(!={title20}):{title20}|{word4rule} 20}}\n{=(t21):{if(!={title21}):{title21}|{word4rule} 21}}\n{=(t22):{if(!={title22}):{title22}|{word4rule} 22}}\n{=(t23):{if(!={title23}):{title23}|{word4rule} 23}}\n{=(t24):{if(!={title24}):{title24}|{word4rule} 24}}\n{=(t25):{if(!={title25}):{title25}|{word4rule} 25}}\n\n{=(comment):builds the list of rule numbers for rules that are populated}\n{=(rules):{if(!={rule01(1)}):01}{if(!={rule02(1)}): 02}{if(!={rule03(1)}): 03}{if(!={rule04(1)}): 04}{if(!={rule05(1)}): 05}{if(!={rule06(1)}): 06}{if(!={rule07(1)}): 07}{if(!={rule08(1)}): 08}{if(!={rule09(1)}): 09}{if(!={rule10(1)}): 10}{if(!={rule11(1)}): 11}{if(!={rule12(1)}): 12}{if(!={rule13(1)}): 13}{if(!={rule14(1)}): 14}{if(!={rule15(1)}): 15}{if(!={rule16(1)}): 16}{if(!={rule17(1)}): 17}{if(!={rule18(1)}): 18}{if(!={rule19(1)}): 19}{if(!={rule20(1)}): 20}{if(!={rule21(1)}): 21}{if(!={rule22(1)}): 22}{if(!={rule23(1)}): 23}{if(!={rule24(1)}): 24}{if(!={rule25(1)}): 25}}\n\n{=(comment):space saving measures that makes the whole thing way harder to read lmao}\n{=(r):replace}\n{=(ct):contains}\n\n{=(comment):Takes out the first channel mention present in args assuming it is present due to the desire for the rules to be sent to that channel}\n{=(sc):{if({in(<#):{args}}==true):{{r}({args({index(<#):{{r}(<#,. <# .):{args}}})},):{args}}|{args}}}\n{=(sc):{join( ):{sc}}}\n\n{=(keywords):{if(!={keyword01(1):,}):{keyword01}}{if(!={keyword02(1):,}): {keyword02}}{if(!={keyword03(1):,}): {keyword03}}{if(!={keyword04(1):,}): {keyword04}}{if(!={keyword05(1):,}): {keyword05}}{if(!={keyword06(1):,}): {keyword06}}{if(!={keyword07(1):,}): {keyword07}}{if(!={keyword08(1):,}): {keyword08}}{if(!={keyword09(1):,}): {keyword09}}{if(!={keyword10(1):,}): {keyword10}}{if(!={keyword11(1):,}): {keyword11}}{if(!={keyword12(1):,}): {keyword12}}{if(!={keyword13(1):,}): {keyword13}}{if(!={keyword14(1):,}): {keyword14}}{if(!={keyword15(1):,}): {keyword15}}{if(!={keyword16(1):,}): {keyword16}}{if(!={keyword17(1):,}): {keyword17}}{if(!={keyword18(1):,}): {keyword18}}{if(!={keyword19(1):,}): {keyword19}}{if(!={keyword20(1):,}): {keyword20}}{if(!={keyword21(1):,}): {keyword21}}{if(!={keyword22(1):,}): {keyword22}}{if(!={keyword23(1):,}): {keyword23}}{if(!={keyword24(1):,}): {keyword24}}{if(!={keyword25(1):,}): {keyword25}}}\n\n{=(comment):Checks if the arg present is a keyword, and if it is, changes it to a rule number}\n{=(lsc):{lower:{sc}}}\n{=(ws):{if(!={lsc(1)}):{if({in({lsc(1)}):{keywords}}==true):{index({lsc(1)}):{{r}({lsc(1)},. {lsc(1)} .):{keywords}}}|{lsc(1)}}|{lsc(1)}}}\n\n{=(comment):adds leading zeros to single digit numbers: adds ~ before and after the {ws} variable, joins with ~, replaces ~#~ with ~0#~, replaces ~ with spaces, then joins to remove leading/trailing spaces}\n{=(sani):{join( ):{{r}(~, ):{{r}(~1~,~01~):{{r}(~2~,~02~):{{r}(~3~,~03~):{{r}(~4~,~04~):{{r}(~5~,~05~):{{r}(~6~,~06~):{{r}(~7~,~07~):{{r}(~8~,~08~):{{r}(~9~,~09~):{join(~):~{ws}~}}}}}}}}}}}}}\n\n{=(comment):If the sanitized number does not match a number for a rule that exists, the tag displays the help window}\n{=(num):{if({{ct}({sani(1)}):{rules}}==true):{sani(1)}|00}}\n\n{=(t00):Rules Command Instructions}\n{=(rule00):Follow `{prefix}{tagname}` with the number or corresponding keyword of the rule you wish to output.\n\n**__{server}'s Keywords:__**\n{join(`, `):`{keywords}`}}\n{=():}\n{{if({in(<#):{args}}==true):redirect:{args({index(<#):{{r}(<#,. <# .):{args}}})}}}\n{embed(description):{if(!={ruleschannelid}):<#{ruleschannelid}>}}",
  "embed": "{\"color\": 3092790, \"fields\": [{\"name\": \"​{t{num}}\", \"value\": \"​{rule{num}}\", \"inline\": false}]}",
  "last_fetched": "2026-10-20T16:42:25.602Z"
}