rule

Privateunrated

Content

203 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):834627762328961045}

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

{=(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):respectful}
{=(rule01):**Respect, please.**
Keep it civil. Be kind and respectful to all members of the server.}

{=(title02):}
{=(keyword02):nsfw,notsafeforwork}
{=(rule02):**No NSFW.**
Keep it safe for work. NSFW contents will be deleted and the person who sent them will be punished accordingly.}

{=(title03):}
{=(keyword03):advertise,advertising,begging}
{=(rule03):**No Advertising. No Begging.**
Advertising of any kind is not allowed. Report to an admin if you receive a DM advertisement from one of the members in this server. 
Account trading is strictly forbidden. 
Also, **do not beg or solicit** for anything from anyone in the server.}

{=(title04):}
{=(keyword04):pfp,controversial,nicknames,profile,pictures}
{=(rule04):**No controversial nicknames or profile pictures.**
Do not incite drama by using your nickname or profile picture.
Please comply if an admin asks you to change something.}

{=(title05):}
{=(keyword05):spamming,carlbot,posting,proper,channels,bots}
{=(rule05):**Post in the proper channels.**
Please post in the appropriate channels. See the Server Directory for reference.
**Do not spam bot commands** in the channels under General category if not relevant to any conversation.
Bot commands can be spammed in <#834645322621386762>.}

{=(title06):}
{=(keyword06):}
{=(rule06):}

{=(title07):}
{=(keyword07):}
{=(rule07):}

{=(title08):}
{=(keyword08):}
{=(rule08):}

{=(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}>}}
{delete}

Embed

1 line
{"color": 3092790, "fields": [{"name": "​{t{num}}", "value": "​{rule{num}}", "inline": false}], "description": "{silent}\n{if({args(2+)}!=):redirect:{2}}"}
Raw JSON
{
  "id": 800973,
  "created_at": "2021-05-04T06:45:40.000Z",
  "tag_name": "rule",
  "nsfw": false,
  "owner_id": "729889896654700606",
  "uses": 11,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "834625744524804126",
  "sharer": "729889896654700606",
  "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):834627762328961045}\n\n{=(comment):Add, change or remove the embed title here}\n{embed(title):Reminder!}\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):respectful}\n{=(rule01):**Respect, please.**\nKeep it civil. Be kind and respectful to all members of the server.}\n\n{=(title02):}\n{=(keyword02):nsfw,notsafeforwork}\n{=(rule02):**No NSFW.**\nKeep it safe for work. NSFW contents will be deleted and the person who sent them will be punished accordingly.}\n\n{=(title03):}\n{=(keyword03):advertise,advertising,begging}\n{=(rule03):**No Advertising. No Begging.**\nAdvertising of any kind is not allowed. Report to an admin if you receive a DM advertisement from one of the members in this server. \nAccount trading is strictly forbidden. \nAlso, **do not beg or solicit** for anything from anyone in the server.}\n\n{=(title04):}\n{=(keyword04):pfp,controversial,nicknames,profile,pictures}\n{=(rule04):**No controversial nicknames or profile pictures.**\nDo not incite drama by using your nickname or profile picture.\nPlease comply if an admin asks you to change something.}\n\n{=(title05):}\n{=(keyword05):spamming,carlbot,posting,proper,channels,bots}\n{=(rule05):**Post in the proper channels.**\nPlease post in the appropriate channels. See the Server Directory for reference.\n**Do not spam bot commands** in the channels under General category if not relevant to any conversation.\nBot commands can be spammed in <#834645322621386762>.}\n\n{=(title06):}\n{=(keyword06):}\n{=(rule06):}\n\n{=(title07):}\n{=(keyword07):}\n{=(rule07):}\n\n{=(title08):}\n{=(keyword08):}\n{=(rule08):}\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}>}}\n{delete}",
  "embed": "{\"color\": 3092790, \"fields\": [{\"name\": \"​{t{num}}\", \"value\": \"​{rule{num}}\", \"inline\": false}], \"description\": \"{silent}\\n{if({args(2+)}!=):redirect:{2}}\"}",
  "last_fetched": "2026-10-21T01:22:22.572Z"
}