rules
Privateunrated
Content
247 lines{=(Comment):If you would like the tag to always display a link to your rules channel in the description when you are listing rules}
{=(Comment):Insert the channel id of your rules channel below. Leave completely blank and it will not display.}
{=(ruleschannelid):536634449354424361}
{=(Comment):Add, change or remove the embed title here}
{=(embedtitle):}
{=(Comment):Put custom titles in the title1-title25 variables (if you want them).}
{=(Comment):Put keywords for each rule in the keyword1-keyword25 variables. Not required but useful.}
{=(Comment):Put rules in the rule1-rule25 variables.}
{=(Comment):Titles must be less than 256 characters, and rules must be less than 1024 characters.}
{=(Comment):Some symbols in rule text might cause issues, limit formatting to Discord markdown friendly characters.}
{=(Comment):Leave custom titles blank to have the titles just be "Rule #".}
{=(Comment):Leave corresponding title, keyword, and rule variables blank if the rule # does not exist, but do NOT erase the blank variables}
{=(title01):-No Brand/Style Bashing}
{=(keyword01):bashing}
{=(rule01):If you don't like something, just be quiet. There is zero need to talk down about something someone else enjoys. Everyone has different tastes. Respect that.}
{=(title02):-Be Respectful to Others.}
{=(keyword02):respect}
{=(rule02):Treat others the way you want to be treated. Super simple, common sense, but it's being said anyway.}
{=(title03):-No Hate Speech (Including Racism, Sexism, Homophobia, etc).}
{=(keyword03):hatespeech}
{=(rule03):Self-explanatory. Don't do it. If you do, you get one warning, and then you're gone. We will not tolerate hate speech of any kind.}
{=(title04):-No Politics or Religion.}
{=(keyword04):politics}
{=(rule04):Please keep all talk about these subjects off this server. While it's totally possible to have a civil discussion about these topics, let's just not. It's easy to get out of hand quickly when it comes to these subjects. This is not the place to discuss such things, if you wish to converse with someone about politics or religion, ask to DM them about it.}
{=(title05):-Harassment is Not Acceptable.}
{=(keyword05):harassment}
{=(rule05):If anyone is found to be harassing someone else, you will receive a warning. Lighthearted joking *if both people involved are okay with it* is fine. Don't get too out of hand, and don't drag it out for ages.}
{=(title06):-No NSFW Content.}
{=(keyword06):nsfw}
{=(rule06):This is an all-ages server. So let's keep any and all NSFW stuff off here. There are several younger members here, and ANY nsfw content will not be tolerated. This is an Offroad 4x4 server, let's stick to that.}
{=(title07):-Keep Posts on Topic.}
{=(keyword07):topic}
{=(rule07):Now that we are more active, it's important to keep discussions to the correct channel. Let's try our best to stay on topic. From time to time things will naturally skew off-topic, this is fine as long as it doesn't carry on for too long. If you need to switch channels to continue a conversation that has shifted, please do.}
{=(title08):-No Self Promotion.}
{=(keyword08):promote}
{=(rule08):This includes promoting a discord server, things like monetized youtube channels, online shops, etc. If you want to share a video you posted on youtube, and it's relevant to the topic that's okay. But posting \"go sub to my channel\" when it's unrelated, that's not okay and will be moderated.}
{=(title09):-Don't Ping Staff or Other Members Repeatedly.}
{=(keyword09):ping}
{=(rule09):Being pinged for nonsense is annoying and unnecessary. Let's keep the pings reasonable. If someone needs to be reported to staff, use the `!report` command. If you are replying to another user and they haven't been active in a while, a ping is okay (unless they ask you not to). All in all, let's keep the pings to a minimum.}
{=(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}
{=(wordforrule):Rule}
{=(Comment):Don't touch}
{=(t01):{if({title01}!=):{title01}|{wordforrule} 1}}
{=(t02):{if({title02}!=):{title02}|{wordforrule} 2}}
{=(t03):{if({title03}!=):{title03}|{wordforrule} 3}}
{=(t04):{if({title04}!=):{title04}|{wordforrule} 4}}
{=(t05):{if({title05}!=):{title05}|{wordforrule} 5}}
{=(t06):{if({title06}!=):{title06}|{wordforrule} 6}}
{=(t07):{if({title07}!=):{title07}|{wordforrule} 7}}
{=(t08):{if({title08}!=):{title08}|{wordforrule} 8}}
{=(t09):{if({title09}!=):{title09}|{wordforrule} 9}}
{=(t10):{if({title10}!=):{title10}|{wordforrule} 10}}
{=(t11):{if({title11}!=):{title11}|{wordforrule} 11}}
{=(t12):{if({title12}!=):{title12}|{wordforrule} 12}}
{=(t13):{if({title13}!=):{title13}|{wordforrule} 13}}
{=(t14):{if({title14}!=):{title14}|{wordforrule} 14}}
{=(t15):{if({title15}!=):{title15}|{wordforrule} 15}}
{=(t16):{if({title16}!=):{title16}|{wordforrule} 16}}
{=(t17):{if({title17}!=):{title17}|{wordforrule} 17}}
{=(t18):{if({title18}!=):{title18}|{wordforrule} 18}}
{=(t19):{if({title19}!=):{title19}|{wordforrule} 19}}
{=(t20):{if({title20}!=):{title20}|{wordforrule} 20}}
{=(t21):{if({title21}!=):{title21}|{wordforrule} 21}}
{=(t22):{if({title22}!=):{title22}|{wordforrule} 22}}
{=(t23):{if({title23}!=):{title23}|{wordforrule} 23}}
{=(t24):{if({title24}!=):{title24}|{wordforrule} 24}}
{=(t25):{if({title25}!=):{title25}|{wordforrule} 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):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}
{=(sanschan):{if({in(<#):{args}}==true):{replace({args({index(<#):{replace(<#,. <# .):{args}}})},):{args}}|{args}}}
{=(Comment):DON'T TOUCH, converts keywords into rule numbers}
{=(wordswap):{lower:{sanschan}}}
{=(wordswap):{if({keyword01}!=):{if({in({keyword01}):{wordswap}}==true):{replace({wordswap({index({keyword01}):{replace({keyword01},. {keyword01} .):{wordswap}}})},01):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword02}!=):{if({in({keyword02}):{wordswap}}==true):{replace({wordswap({index({keyword02}):{replace({keyword02},. {keyword02} .):{wordswap}}})},02):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword03}!=):{if({in({keyword03}):{wordswap}}==true):{replace({wordswap({index({keyword03}):{replace({keyword03},. {keyword03} .):{wordswap}}})},03):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword04}!=):{if({in({keyword04}):{wordswap}}==true):{replace({wordswap({index({keyword04}):{replace({keyword04},. {keyword04} .):{wordswap}}})},04):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword05}!=):{if({in({keyword05}):{wordswap}}==true):{replace({wordswap({index({keyword05}):{replace({keyword05},. {keyword05} .):{wordswap}}})},05):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword06}!=):{if({in({keyword06}):{wordswap}}==true):{replace({wordswap({index({keyword06}):{replace({keyword06},. {keyword06} .):{wordswap}}})},06):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword07}!=):{if({in({keyword07}):{wordswap}}==true):{replace({wordswap({index({keyword07}):{replace({keyword07},. {keyword07} .):{wordswap}}})},07):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword08}!=):{if({in({keyword08}):{wordswap}}==true):{replace({wordswap({index({keyword08}):{replace({keyword08},. {keyword08} .):{wordswap}}})},08):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword09}!=):{if({in({keyword09}):{wordswap}}==true):{replace({wordswap({index({keyword09}):{replace({keyword09},. {keyword09} .):{wordswap}}})},09):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword10}!=):{if({in({keyword10}):{wordswap}}==true):{replace({wordswap({index({keyword10}):{replace({keyword10},. {keyword10} .):{wordswap}}})},10):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword11}!=):{if({in({keyword11}):{wordswap}}==true):{replace({wordswap({index({keyword11}):{replace({keyword11},. {keyword11} .):{wordswap}}})},11):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword12}!=):{if({in({keyword12}):{wordswap}}==true):{replace({wordswap({index({keyword12}):{replace({keyword12},. {keyword12} .):{wordswap}}})},12):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword13}!=):{if({in({keyword13}):{wordswap}}==true):{replace({wordswap({index({keyword13}):{replace({keyword13},. {keyword13} .):{wordswap}}})},13):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword14}!=):{if({in({keyword14}):{wordswap}}==true):{replace({wordswap({index({keyword14}):{replace({keyword14},. {keyword14} .):{wordswap}}})},14):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword15}!=):{if({in({keyword15}):{wordswap}}==true):{replace({wordswap({index({keyword15}):{replace({keyword15},. {keyword15} .):{wordswap}}})},15):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword16}!=):{if({in({keyword16}):{wordswap}}==true):{replace({wordswap({index({keyword16}):{replace({keyword16},. {keyword16} .):{wordswap}}})},16):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword17}!=):{if({in({keyword17}):{wordswap}}==true):{replace({wordswap({index({keyword17}):{replace({keyword17},. {keyword17} .):{wordswap}}})},17):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword18}!=):{if({in({keyword18}):{wordswap}}==true):{replace({wordswap({index({keyword18}):{replace({keyword18},. {keyword18} .):{wordswap}}})},18):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword19}!=):{if({in({keyword19}):{wordswap}}==true):{replace({wordswap({index({keyword19}):{replace({keyword19},. {keyword19} .):{wordswap}}})},19):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword20}!=):{if({in({keyword20}):{wordswap}}==true):{replace({wordswap({index({keyword20}):{replace({keyword20},. {keyword20} .):{wordswap}}})},20):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword21}!=):{if({in({keyword21}):{wordswap}}==true):{replace({wordswap({index({keyword21}):{replace({keyword21},. {keyword21} .):{wordswap}}})},21):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword22}!=):{if({in({keyword22}):{wordswap}}==true):{replace({wordswap({index({keyword22}):{replace({keyword22},. {keyword22} .):{wordswap}}})},22):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword23}!=):{if({in({keyword23}):{wordswap}}==true):{replace({wordswap({index({keyword23}):{replace({keyword23},. {keyword23} .):{wordswap}}})},23):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword24}!=):{if({in({keyword24}):{wordswap}}==true):{replace({wordswap({index({keyword24}):{replace({keyword24},. {keyword24} .):{wordswap}}})},24):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword25}!=):{if({in({keyword25}):{wordswap}}==true):{replace({wordswap({index({keyword25}):{replace({keyword25},. {keyword25} .):{wordswap}}})},25):{wordswap}}|{wordswap}}|{wordswap}}}
{=(Comment):adds leading zeros to single digit numbers: spaces symbols, replaces spaces with ~, replaces ~#~ with ~0#~, replaces ~ with spaces, de-spaces symbols}
{=(sani):{replace( - ,-):{replace( + ,+):{replace(~, ):{replace(~1~,~01~):{replace(~2~,~02~):{replace(~3~,~03~):{replace(~4~,~04~):{replace(~5~,~05~):{replace(~6~,~06~):{replace(~7~,~07~):{replace(~8~,~08~):{replace(~9~,~09~):{replace( ,~):{replace(-, - ):{replace(+, + ):~{wordswap}~}}}}}}}}}}}}}}}}
{=(Comment):DON'T TOUCH, replaces - and + with the rule numbers from the list they represent}
{=(dash1):{sani(1):-}}
{=(dash2):{sani(2):-}}
{=(dash):{if({in(-):{sani}}==true):{dash1}{replace({rules(+{m:trunc(1+{index({dash1(0)}):{rules}})})},):{replace({rules({m:trunc(1+{index({dash2(1)}):{rules}})}+)},):{rules}}}{dash2}|{sani}}}
{=(plus1):{dash(1):+}}
{=(plus2):{dash(2):+}}
{=(plus3):{dash(3):+}}
{=(plus):{if({in(+):{dash}}==true):{if({plus1}!=):{if({plus1(+-1)}!=):{plus1(+-1)} }{rules({m:trunc(1+{index({plus1(0)}):{rules}})}+)} }{if({plus2}!=):{rules(+{m:trunc(1+{index({plus2(1)}):{rules}})})} {if({plus2(2+)}!=):{plus2(2+)} }}{if({plus3}==):{rules({m:trunc({index({plus2(0)}):{rules}}+2)}+)}|{rules(+{m:trunc(1+{index({plus3(1)}):{rules}})})} {if({plus3(2+)}!=):{plus3(2+)}}}|{dash}}}
{=(Comment):rebuilds input list based on inclusion in rule list, while preventing duplicates. if rawlist entity 0-24 is not empty, is in the rules variable which is autopopulated, and is not already present in the new number list, said rawlist entity is added to num}
{=(rawlist):{join(,):{plus}}}
{=(num):}
{=(num):{num}{all({list(0):{rawlist}}!=|{contains({list(0):{rawlist}}):{rules}}==true|{contains({list(0):{rawlist}}):{num}}==false):{list(0):{rawlist}} }}
{=(num):{num}{all({list(1):{rawlist}}!=|{contains({list(1):{rawlist}}):{rules}}==true|{contains({list(1):{rawlist}}):{num}}==false):{list(1):{rawlist}} }}
{=(num):{num}{all({list(2):{rawlist}}!=|{contains({list(2):{rawlist}}):{rules}}==true|{contains({list(2):{rawlist}}):{num}}==false):{list(2):{rawlist}} }}
{=(num):{num}{all({list(3):{rawlist}}!=|{contains({list(3):{rawlist}}):{rules}}==true|{contains({list(3):{rawlist}}):{num}}==false):{list(3):{rawlist}} }}
{=(num):{num}{all({list(4):{rawlist}}!=|{contains({list(4):{rawlist}}):{rules}}==true|{contains({list(4):{rawlist}}):{num}}==false):{list(4):{rawlist}} }}
{=(num):{num}{all({list(5):{rawlist}}!=|{contains({list(5):{rawlist}}):{rules}}==true|{contains({list(5):{rawlist}}):{num}}==false):{list(5):{rawlist}} }}
{=(num):{num}{all({list(6):{rawlist}}!=|{contains({list(6):{rawlist}}):{rules}}==true|{contains({list(6):{rawlist}}):{num}}==false):{list(6):{rawlist}} }}
{=(num):{num}{all({list(7):{rawlist}}!=|{contains({list(7):{rawlist}}):{rules}}==true|{contains({list(7):{rawlist}}):{num}}==false):{list(7):{rawlist}} }}
{=(num):{num}{all({list(8):{rawlist}}!=|{contains({list(8):{rawlist}}):{rules}}==true|{contains({list(8):{rawlist}}):{num}}==false):{list(8):{rawlist}} }}
{=(num):{num}{all({list(9):{rawlist}}!=|{contains({list(9):{rawlist}}):{rules}}==true|{contains({list(9):{rawlist}}):{num}}==false):{list(9):{rawlist}} }}
{=(num):{num}{all({list(10):{rawlist}}!=|{contains({list(10):{rawlist}}):{rules}}==true|{contains({list(10):{rawlist}}):{num}}==false):{list(10):{rawlist}} }}
{=(num):{num}{all({list(11):{rawlist}}!=|{contains({list(11):{rawlist}}):{rules}}==true|{contains({list(11):{rawlist}}):{num}}==false):{list(11):{rawlist}} }}
{=(num):{num}{all({list(12):{rawlist}}!=|{contains({list(12):{rawlist}}):{rules}}==true|{contains({list(12):{rawlist}}):{num}}==false):{list(12):{rawlist}} }}
{=(num):{num}{all({list(13):{rawlist}}!=|{contains({list(13):{rawlist}}):{rules}}==true|{contains({list(13):{rawlist}}):{num}}==false):{list(13):{rawlist}} }}
{=(num):{num}{all({list(14):{rawlist}}!=|{contains({list(14):{rawlist}}):{rules}}==true|{contains({list(14):{rawlist}}):{num}}==false):{list(14):{rawlist}} }}
{=(num):{num}{all({list(15):{rawlist}}!=|{contains({list(15):{rawlist}}):{rules}}==true|{contains({list(15):{rawlist}}):{num}}==false):{list(15):{rawlist}} }}
{=(num):{num}{all({list(16):{rawlist}}!=|{contains({list(16):{rawlist}}):{rules}}==true|{contains({list(16):{rawlist}}):{num}}==false):{list(16):{rawlist}} }}
{=(num):{num}{all({list(17):{rawlist}}!=|{contains({list(17):{rawlist}}):{rules}}==true|{contains({list(17):{rawlist}}):{num}}==false):{list(17):{rawlist}} }}
{=(num):{num}{all({list(18):{rawlist}}!=|{contains({list(18):{rawlist}}):{rules}}==true|{contains({list(18):{rawlist}}):{num}}==false):{list(18):{rawlist}} }}
{=(num):{num}{all({list(19):{rawlist}}!=|{contains({list(19):{rawlist}}):{rules}}==true|{contains({list(19):{rawlist}}):{num}}==false):{list(19):{rawlist}} }}
{=(num):{num}{all({list(20):{rawlist}}!=|{contains({list(20):{rawlist}}):{rules}}==true|{contains({list(20):{rawlist}}):{num}}==false):{list(20):{rawlist}} }}
{=(num):{num}{all({list(21):{rawlist}}!=|{contains({list(21):{rawlist}}):{rules}}==true|{contains({list(21):{rawlist}}):{num}}==false):{list(21):{rawlist}} }}
{=(num):{num}{all({list(22):{rawlist}}!=|{contains({list(22):{rawlist}}):{rules}}==true|{contains({list(22):{rawlist}}):{num}}==false):{list(22):{rawlist}} }}
{=(num):{num}{all({list(23):{rawlist}}!=|{contains({list(23):{rawlist}}):{rules}}==true|{contains({list(23):{rawlist}}):{num}}==false):{list(23):{rawlist}} }}
{=(num):{num}{all({list(24):{rawlist}}!=|{contains({list(24):{rawlist}}):{rules}}==true|{contains({list(24):{rawlist}}):{num}}==false):{list(24):{rawlist}}}}
{=(Comment):The following tests to see if args are empty, or if help or keyword are present, or if the input failed to generate a shortened list of rules, and if so, sets the rule numbers to the full list of rules}
{=(largs):{lower:{args}}}
{=(num):{any({largs(1)}==|{all({in(help):{largs}}==false|{in(keyword):{largs}}==false|{num}==):true|false}==true):{join(,):{rules}}|{join(,):{num}}}}
{=(Comment):Embed field generation for rule output, don't touch. ┐ = comma placeholder character}
{=(ilf):,"inline":false}
{=(cfields):{if({list(0):{num}}!=):{"name":"{t{list(0):{num}}}","value":"{rule{list(0):{num}}}"{ilf}}}┐{if({list(1):{num}}!=):{"name":"{t{list(1):{num}}}","value":"{rule{list(1):{num}}}"{ilf}}}┐{if({list(2):{num}}!=):{"name":"{t{list(2):{num}}}","value":"{rule{list(2):{num}}}"{ilf}}}┐{if({list(3):{num}}!=):{"name":"{t{list(3):{num}}}","value":"{rule{list(3):{num}}}"{ilf}}}┐{if({list(4):{num}}!=):{"name":"{t{list(4):{num}}}","value":"{rule{list(4):{num}}}"{ilf}}}┐{if({list(5):{num}}!=):{"name":"{t{list(5):{num}}}","value":"{rule{list(5):{num}}}"{ilf}}}┐{if({list(6):{num}}!=):{"name":"{t{list(6):{num}}}","value":"{rule{list(6):{num}}}"{ilf}}}┐{if({list(7):{num}}!=):{"name":"{t{list(7):{num}}}","value":"{rule{list(7):{num}}}"{ilf}}}┐{if({list(8):{num}}!=):{"name":"{t{list(8):{num}}}","value":"{rule{list(8):{num}}}"{ilf}}}┐{if({list(9):{num}}!=):{"name":"{t{list(9):{num}}}","value":"{rule{list(9):{num}}}"{ilf}}}┐{if({list(10):{num}}!=):{"name":"{t{list(10):{num}}}","value":"{rule{list(10):{num}}}"{ilf}}}┐{if({list(11):{num}}!=):{"name":"{t{list(11):{num}}}","value":"{rule{list(11):{num}}}"{ilf}}}┐{if({list(12):{num}}!=):{"name":"{t{list(12):{num}}}","value":"{rule{list(12):{num}}}"{ilf}}}┐{if({list(13):{num}}!=):{"name":"{t{list(13):{num}}}","value":"{rule{list(13):{num}}}"{ilf}}}┐{if({list(14):{num}}!=):{"name":"{t{list(14):{num}}}","value":"{rule{list(14):{num}}}"{ilf}}}┐{if({list(15):{num}}!=):{"name":"{t{list(15):{num}}}","value":"{rule{list(15):{num}}}"{ilf}}}┐{if({list(16):{num}}!=):{"name":"{t{list(16):{num}}}","value":"{rule{list(16):{num}}}"{ilf}}}┐{if({list(17):{num}}!=):{"name":"{t{list(17):{num}}}","value":"{rule{list(17):{num}}}"{ilf}}}┐{if({list(18):{num}}!=):{"name":"{t{list(18):{num}}}","value":"{rule{list(18):{num}}}"{ilf}}}┐{if({list(19):{num}}!=):{"name":"{t{list(19):{num}}}","value":"{rule{list(19):{num}}}"{ilf}}}┐{if({list(20):{num}}!=):{"name":"{t{list(20):{num}}}","value":"{rule{list(20):{num}}}"{ilf}}}┐{if({list(21):{num}}!=):{"name":"{t{list(21):{num}}}","value":"{rule{list(21):{num}}}"{ilf}}}┐{if({list(22):{num}}!=):{"name":"{t{list(22):{num}}}","value":"{rule{list(22):{num}}}"{ilf}}}┐{if({list(23):{num}}!=):{"name":"{t{list(23):{num}}}","value":"{rule{list(23):{num}}}"{ilf}}}┐{if({list(24):{num}}!=):{"name":"{t{list(24):{num}}}","value":"{rule{list(24):{num}}}"{ilf}}}}
{=(Comment):different description holding variables}
{=(instr):__Instructions__
Follow the command with the number(s) of the rules you wish to output with spaces in between. Additional accepted formats are:
#*x*-#*y* to indicate rules from #*x* to #*y* (limit 1x`-`)
#+ to indicate rules from # to the end of the list of rules
+# to indicate rules from 1 to # (limit 2x`+`)
You can also mix in keywords that have been set (don't mix keywords and symbols).
Examples: `!rules +2 nsfw 4-6 8+` }
{=(kw):__Keywords__
{keyword01} {keyword02} {keyword03} {keyword04} {keyword05} {keyword06} {keyword07} {keyword08} {keyword09} {keyword10} {keyword11} {keyword12} {keyword13} {keyword14} {keyword15} {keyword16} {keyword17} {keyword18} {keyword19} {keyword20} {keyword21} {keyword22} {keyword23} {keyword24} {keyword25}}
{=(Comment):Embed fields}
{=(footer):Type \"!rules help\" for instructions, and \"!rules keywords\" for the list of reference keywords.}
{=(des):{if({in(help):{largs}}==true):{instr}|{if({in(keyword):{largs}}==true):{kw}|{if({ruleschannelid}!=):<#{ruleschannelid}>}}}}
{=(Comment):finalizes the json for the embed by replacing spaces with a filler character, replacing comma placeholder characters with spaces, joining the spaces with commas, and replacing the filler characters with spaces again. this ensures there are no commas preceeding JSON fields, nor trailing the last JSON field. also includes logic choosing whether to display the full rules list (if args or the input number list are empty AND help/keyword are not displayed) or the custom rules list}
{=(json):"title":"{embedtitle}","description":"{des}","fields":[{replace(█, ):{join(,):{replace(┐, ):{replace( ,█):{cfields}}}}}],"author":{"name":"{server}","icon_url":"{server(icon)}"},"color":16774263,"footer":{"text":"{footer}"}}
{c:cembed {if({in(<#):{args}}==true):{args({index(<#):{replace(<#,. <# .):{args}}})}|{channel(id)}} {{json}}}Raw JSON
{
"id": 117200,
"created_at": "2020-02-08T03:42:36.000Z",
"tag_name": "rules",
"nsfw": false,
"owner_id": "196498508784730113",
"uses": 51,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "536633997380550678",
"sharer": "196498508784730113",
"content": "{=(Comment):If you would like the tag to always display a link to your rules channel in the description when you are listing rules}\n{=(Comment):Insert the channel id of your rules channel below. Leave completely blank and it will not display.}\n{=(ruleschannelid):536634449354424361}\n\n{=(Comment):Add, change or remove the embed title here}\n{=(embedtitle):}\n\n{=(Comment):Put custom titles in the title1-title25 variables (if you want them).}\n{=(Comment):Put keywords for each rule in the keyword1-keyword25 variables. Not required but useful.}\n{=(Comment):Put rules in the rule1-rule25 variables.}\n{=(Comment):Titles must be less than 256 characters, and rules must be less than 1024 characters.}\n{=(Comment):Some symbols in rule text might cause issues, limit formatting to Discord markdown friendly characters.}\n{=(Comment):Leave custom titles blank to have the titles just be \"Rule #\".}\n{=(Comment):Leave corresponding title, keyword, and rule variables blank if the rule # does not exist, but do NOT erase the blank variables}\n\n{=(title01):-No Brand/Style Bashing}\n{=(keyword01):bashing}\n{=(rule01):If you don't like something, just be quiet. There is zero need to talk down about something someone else enjoys. Everyone has different tastes. Respect that.}\n\n{=(title02):-Be Respectful to Others.}\n{=(keyword02):respect}\n{=(rule02):Treat others the way you want to be treated. Super simple, common sense, but it's being said anyway.}\n\n{=(title03):-No Hate Speech (Including Racism, Sexism, Homophobia, etc).}\n{=(keyword03):hatespeech}\n{=(rule03):Self-explanatory. Don't do it. If you do, you get one warning, and then you're gone. We will not tolerate hate speech of any kind.}\n\n{=(title04):-No Politics or Religion.}\n{=(keyword04):politics}\n{=(rule04):Please keep all talk about these subjects off this server. While it's totally possible to have a civil discussion about these topics, let's just not. It's easy to get out of hand quickly when it comes to these subjects. This is not the place to discuss such things, if you wish to converse with someone about politics or religion, ask to DM them about it.}\n\n{=(title05):-Harassment is Not Acceptable.}\n{=(keyword05):harassment}\n{=(rule05):If anyone is found to be harassing someone else, you will receive a warning. Lighthearted joking *if both people involved are okay with it* is fine. Don't get too out of hand, and don't drag it out for ages.}\n\n{=(title06):-No NSFW Content.}\n{=(keyword06):nsfw}\n{=(rule06):This is an all-ages server. So let's keep any and all NSFW stuff off here. There are several younger members here, and ANY nsfw content will not be tolerated. This is an Offroad 4x4 server, let's stick to that.}\n\n{=(title07):-Keep Posts on Topic.}\n{=(keyword07):topic}\n{=(rule07):Now that we are more active, it's important to keep discussions to the correct channel. Let's try our best to stay on topic. From time to time things will naturally skew off-topic, this is fine as long as it doesn't carry on for too long. If you need to switch channels to continue a conversation that has shifted, please do.}\n\n{=(title08):-No Self Promotion.}\n{=(keyword08):promote}\n{=(rule08):This includes promoting a discord server, things like monetized youtube channels, online shops, etc. If you want to share a video you posted on youtube, and it's relevant to the topic that's okay. But posting \\\"go sub to my channel\\\" when it's unrelated, that's not okay and will be moderated.}\n\n{=(title09):-Don't Ping Staff or Other Members Repeatedly.}\n{=(keyword09):ping}\n{=(rule09):Being pinged for nonsense is annoying and unnecessary. Let's keep the pings reasonable. If someone needs to be reported to staff, use the `!report` command. If you are replying to another user and they haven't been active in a while, a ping is okay (unless they ask you not to). All in all, let's keep the pings to a minimum.}\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{=(wordforrule):Rule}\n{=(Comment):Don't touch}\n{=(t01):{if({title01}!=):{title01}|{wordforrule} 1}}\n{=(t02):{if({title02}!=):{title02}|{wordforrule} 2}}\n{=(t03):{if({title03}!=):{title03}|{wordforrule} 3}}\n{=(t04):{if({title04}!=):{title04}|{wordforrule} 4}}\n{=(t05):{if({title05}!=):{title05}|{wordforrule} 5}}\n{=(t06):{if({title06}!=):{title06}|{wordforrule} 6}}\n{=(t07):{if({title07}!=):{title07}|{wordforrule} 7}}\n{=(t08):{if({title08}!=):{title08}|{wordforrule} 8}}\n{=(t09):{if({title09}!=):{title09}|{wordforrule} 9}}\n{=(t10):{if({title10}!=):{title10}|{wordforrule} 10}}\n{=(t11):{if({title11}!=):{title11}|{wordforrule} 11}}\n{=(t12):{if({title12}!=):{title12}|{wordforrule} 12}}\n{=(t13):{if({title13}!=):{title13}|{wordforrule} 13}}\n{=(t14):{if({title14}!=):{title14}|{wordforrule} 14}}\n{=(t15):{if({title15}!=):{title15}|{wordforrule} 15}}\n{=(t16):{if({title16}!=):{title16}|{wordforrule} 16}}\n{=(t17):{if({title17}!=):{title17}|{wordforrule} 17}}\n{=(t18):{if({title18}!=):{title18}|{wordforrule} 18}}\n{=(t19):{if({title19}!=):{title19}|{wordforrule} 19}}\n{=(t20):{if({title20}!=):{title20}|{wordforrule} 20}}\n{=(t21):{if({title21}!=):{title21}|{wordforrule} 21}}\n{=(t22):{if({title22}!=):{title22}|{wordforrule} 22}}\n{=(t23):{if({title23}!=):{title23}|{wordforrule} 23}}\n{=(t24):{if({title24}!=):{title24}|{wordforrule} 24}}\n{=(t25):{if({title25}!=):{title25}|{wordforrule} 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):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{=(sanschan):{if({in(<#):{args}}==true):{replace({args({index(<#):{replace(<#,. <# .):{args}}})},):{args}}|{args}}}\n\n{=(Comment):DON'T TOUCH, converts keywords into rule numbers}\n{=(wordswap):{lower:{sanschan}}}\n{=(wordswap):{if({keyword01}!=):{if({in({keyword01}):{wordswap}}==true):{replace({wordswap({index({keyword01}):{replace({keyword01},. {keyword01} .):{wordswap}}})},01):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword02}!=):{if({in({keyword02}):{wordswap}}==true):{replace({wordswap({index({keyword02}):{replace({keyword02},. {keyword02} .):{wordswap}}})},02):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword03}!=):{if({in({keyword03}):{wordswap}}==true):{replace({wordswap({index({keyword03}):{replace({keyword03},. {keyword03} .):{wordswap}}})},03):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword04}!=):{if({in({keyword04}):{wordswap}}==true):{replace({wordswap({index({keyword04}):{replace({keyword04},. {keyword04} .):{wordswap}}})},04):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword05}!=):{if({in({keyword05}):{wordswap}}==true):{replace({wordswap({index({keyword05}):{replace({keyword05},. {keyword05} .):{wordswap}}})},05):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword06}!=):{if({in({keyword06}):{wordswap}}==true):{replace({wordswap({index({keyword06}):{replace({keyword06},. {keyword06} .):{wordswap}}})},06):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword07}!=):{if({in({keyword07}):{wordswap}}==true):{replace({wordswap({index({keyword07}):{replace({keyword07},. {keyword07} .):{wordswap}}})},07):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword08}!=):{if({in({keyword08}):{wordswap}}==true):{replace({wordswap({index({keyword08}):{replace({keyword08},. {keyword08} .):{wordswap}}})},08):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword09}!=):{if({in({keyword09}):{wordswap}}==true):{replace({wordswap({index({keyword09}):{replace({keyword09},. {keyword09} .):{wordswap}}})},09):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword10}!=):{if({in({keyword10}):{wordswap}}==true):{replace({wordswap({index({keyword10}):{replace({keyword10},. {keyword10} .):{wordswap}}})},10):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword11}!=):{if({in({keyword11}):{wordswap}}==true):{replace({wordswap({index({keyword11}):{replace({keyword11},. {keyword11} .):{wordswap}}})},11):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword12}!=):{if({in({keyword12}):{wordswap}}==true):{replace({wordswap({index({keyword12}):{replace({keyword12},. {keyword12} .):{wordswap}}})},12):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword13}!=):{if({in({keyword13}):{wordswap}}==true):{replace({wordswap({index({keyword13}):{replace({keyword13},. {keyword13} .):{wordswap}}})},13):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword14}!=):{if({in({keyword14}):{wordswap}}==true):{replace({wordswap({index({keyword14}):{replace({keyword14},. {keyword14} .):{wordswap}}})},14):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword15}!=):{if({in({keyword15}):{wordswap}}==true):{replace({wordswap({index({keyword15}):{replace({keyword15},. {keyword15} .):{wordswap}}})},15):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword16}!=):{if({in({keyword16}):{wordswap}}==true):{replace({wordswap({index({keyword16}):{replace({keyword16},. {keyword16} .):{wordswap}}})},16):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword17}!=):{if({in({keyword17}):{wordswap}}==true):{replace({wordswap({index({keyword17}):{replace({keyword17},. {keyword17} .):{wordswap}}})},17):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword18}!=):{if({in({keyword18}):{wordswap}}==true):{replace({wordswap({index({keyword18}):{replace({keyword18},. {keyword18} .):{wordswap}}})},18):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword19}!=):{if({in({keyword19}):{wordswap}}==true):{replace({wordswap({index({keyword19}):{replace({keyword19},. {keyword19} .):{wordswap}}})},19):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword20}!=):{if({in({keyword20}):{wordswap}}==true):{replace({wordswap({index({keyword20}):{replace({keyword20},. {keyword20} .):{wordswap}}})},20):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword21}!=):{if({in({keyword21}):{wordswap}}==true):{replace({wordswap({index({keyword21}):{replace({keyword21},. {keyword21} .):{wordswap}}})},21):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword22}!=):{if({in({keyword22}):{wordswap}}==true):{replace({wordswap({index({keyword22}):{replace({keyword22},. {keyword22} .):{wordswap}}})},22):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword23}!=):{if({in({keyword23}):{wordswap}}==true):{replace({wordswap({index({keyword23}):{replace({keyword23},. {keyword23} .):{wordswap}}})},23):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword24}!=):{if({in({keyword24}):{wordswap}}==true):{replace({wordswap({index({keyword24}):{replace({keyword24},. {keyword24} .):{wordswap}}})},24):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword25}!=):{if({in({keyword25}):{wordswap}}==true):{replace({wordswap({index({keyword25}):{replace({keyword25},. {keyword25} .):{wordswap}}})},25):{wordswap}}|{wordswap}}|{wordswap}}}\n\n{=(Comment):adds leading zeros to single digit numbers: spaces symbols, replaces spaces with ~, replaces ~#~ with ~0#~, replaces ~ with spaces, de-spaces symbols}\n{=(sani):{replace( - ,-):{replace( + ,+):{replace(~, ):{replace(~1~,~01~):{replace(~2~,~02~):{replace(~3~,~03~):{replace(~4~,~04~):{replace(~5~,~05~):{replace(~6~,~06~):{replace(~7~,~07~):{replace(~8~,~08~):{replace(~9~,~09~):{replace( ,~):{replace(-, - ):{replace(+, + ):~{wordswap}~}}}}}}}}}}}}}}}}\n\n{=(Comment):DON'T TOUCH, replaces - and + with the rule numbers from the list they represent}\n{=(dash1):{sani(1):-}}\n{=(dash2):{sani(2):-}}\n{=(dash):{if({in(-):{sani}}==true):{dash1}{replace({rules(+{m:trunc(1+{index({dash1(0)}):{rules}})})},):{replace({rules({m:trunc(1+{index({dash2(1)}):{rules}})}+)},):{rules}}}{dash2}|{sani}}}\n{=(plus1):{dash(1):+}}\n{=(plus2):{dash(2):+}}\n{=(plus3):{dash(3):+}}\n{=(plus):{if({in(+):{dash}}==true):{if({plus1}!=):{if({plus1(+-1)}!=):{plus1(+-1)} }{rules({m:trunc(1+{index({plus1(0)}):{rules}})}+)} }{if({plus2}!=):{rules(+{m:trunc(1+{index({plus2(1)}):{rules}})})} {if({plus2(2+)}!=):{plus2(2+)} }}{if({plus3}==):{rules({m:trunc({index({plus2(0)}):{rules}}+2)}+)}|{rules(+{m:trunc(1+{index({plus3(1)}):{rules}})})} {if({plus3(2+)}!=):{plus3(2+)}}}|{dash}}}\n\n{=(Comment):rebuilds input list based on inclusion in rule list, while preventing duplicates. if rawlist entity 0-24 is not empty, is in the rules variable which is autopopulated, and is not already present in the new number list, said rawlist entity is added to num}\n{=(rawlist):{join(,):{plus}}}\n{=(num):}\n{=(num):{num}{all({list(0):{rawlist}}!=|{contains({list(0):{rawlist}}):{rules}}==true|{contains({list(0):{rawlist}}):{num}}==false):{list(0):{rawlist}} }}\n{=(num):{num}{all({list(1):{rawlist}}!=|{contains({list(1):{rawlist}}):{rules}}==true|{contains({list(1):{rawlist}}):{num}}==false):{list(1):{rawlist}} }}\n{=(num):{num}{all({list(2):{rawlist}}!=|{contains({list(2):{rawlist}}):{rules}}==true|{contains({list(2):{rawlist}}):{num}}==false):{list(2):{rawlist}} }}\n{=(num):{num}{all({list(3):{rawlist}}!=|{contains({list(3):{rawlist}}):{rules}}==true|{contains({list(3):{rawlist}}):{num}}==false):{list(3):{rawlist}} }}\n{=(num):{num}{all({list(4):{rawlist}}!=|{contains({list(4):{rawlist}}):{rules}}==true|{contains({list(4):{rawlist}}):{num}}==false):{list(4):{rawlist}} }}\n{=(num):{num}{all({list(5):{rawlist}}!=|{contains({list(5):{rawlist}}):{rules}}==true|{contains({list(5):{rawlist}}):{num}}==false):{list(5):{rawlist}} }}\n{=(num):{num}{all({list(6):{rawlist}}!=|{contains({list(6):{rawlist}}):{rules}}==true|{contains({list(6):{rawlist}}):{num}}==false):{list(6):{rawlist}} }}\n{=(num):{num}{all({list(7):{rawlist}}!=|{contains({list(7):{rawlist}}):{rules}}==true|{contains({list(7):{rawlist}}):{num}}==false):{list(7):{rawlist}} }}\n{=(num):{num}{all({list(8):{rawlist}}!=|{contains({list(8):{rawlist}}):{rules}}==true|{contains({list(8):{rawlist}}):{num}}==false):{list(8):{rawlist}} }}\n{=(num):{num}{all({list(9):{rawlist}}!=|{contains({list(9):{rawlist}}):{rules}}==true|{contains({list(9):{rawlist}}):{num}}==false):{list(9):{rawlist}} }}\n{=(num):{num}{all({list(10):{rawlist}}!=|{contains({list(10):{rawlist}}):{rules}}==true|{contains({list(10):{rawlist}}):{num}}==false):{list(10):{rawlist}} }}\n{=(num):{num}{all({list(11):{rawlist}}!=|{contains({list(11):{rawlist}}):{rules}}==true|{contains({list(11):{rawlist}}):{num}}==false):{list(11):{rawlist}} }}\n{=(num):{num}{all({list(12):{rawlist}}!=|{contains({list(12):{rawlist}}):{rules}}==true|{contains({list(12):{rawlist}}):{num}}==false):{list(12):{rawlist}} }}\n{=(num):{num}{all({list(13):{rawlist}}!=|{contains({list(13):{rawlist}}):{rules}}==true|{contains({list(13):{rawlist}}):{num}}==false):{list(13):{rawlist}} }}\n{=(num):{num}{all({list(14):{rawlist}}!=|{contains({list(14):{rawlist}}):{rules}}==true|{contains({list(14):{rawlist}}):{num}}==false):{list(14):{rawlist}} }}\n{=(num):{num}{all({list(15):{rawlist}}!=|{contains({list(15):{rawlist}}):{rules}}==true|{contains({list(15):{rawlist}}):{num}}==false):{list(15):{rawlist}} }}\n{=(num):{num}{all({list(16):{rawlist}}!=|{contains({list(16):{rawlist}}):{rules}}==true|{contains({list(16):{rawlist}}):{num}}==false):{list(16):{rawlist}} }}\n{=(num):{num}{all({list(17):{rawlist}}!=|{contains({list(17):{rawlist}}):{rules}}==true|{contains({list(17):{rawlist}}):{num}}==false):{list(17):{rawlist}} }}\n{=(num):{num}{all({list(18):{rawlist}}!=|{contains({list(18):{rawlist}}):{rules}}==true|{contains({list(18):{rawlist}}):{num}}==false):{list(18):{rawlist}} }}\n{=(num):{num}{all({list(19):{rawlist}}!=|{contains({list(19):{rawlist}}):{rules}}==true|{contains({list(19):{rawlist}}):{num}}==false):{list(19):{rawlist}} }}\n{=(num):{num}{all({list(20):{rawlist}}!=|{contains({list(20):{rawlist}}):{rules}}==true|{contains({list(20):{rawlist}}):{num}}==false):{list(20):{rawlist}} }}\n{=(num):{num}{all({list(21):{rawlist}}!=|{contains({list(21):{rawlist}}):{rules}}==true|{contains({list(21):{rawlist}}):{num}}==false):{list(21):{rawlist}} }}\n{=(num):{num}{all({list(22):{rawlist}}!=|{contains({list(22):{rawlist}}):{rules}}==true|{contains({list(22):{rawlist}}):{num}}==false):{list(22):{rawlist}} }}\n{=(num):{num}{all({list(23):{rawlist}}!=|{contains({list(23):{rawlist}}):{rules}}==true|{contains({list(23):{rawlist}}):{num}}==false):{list(23):{rawlist}} }}\n{=(num):{num}{all({list(24):{rawlist}}!=|{contains({list(24):{rawlist}}):{rules}}==true|{contains({list(24):{rawlist}}):{num}}==false):{list(24):{rawlist}}}}\n\n{=(Comment):The following tests to see if args are empty, or if help or keyword are present, or if the input failed to generate a shortened list of rules, and if so, sets the rule numbers to the full list of rules}\n{=(largs):{lower:{args}}}\n{=(num):{any({largs(1)}==|{all({in(help):{largs}}==false|{in(keyword):{largs}}==false|{num}==):true|false}==true):{join(,):{rules}}|{join(,):{num}}}}\n\n{=(Comment):Embed field generation for rule output, don't touch. ┐ = comma placeholder character}\n{=(ilf):,\"inline\":false}\n{=(cfields):{if({list(0):{num}}!=):{\"name\":\"{t{list(0):{num}}}\",\"value\":\"{rule{list(0):{num}}}\"{ilf}}}┐{if({list(1):{num}}!=):{\"name\":\"{t{list(1):{num}}}\",\"value\":\"{rule{list(1):{num}}}\"{ilf}}}┐{if({list(2):{num}}!=):{\"name\":\"{t{list(2):{num}}}\",\"value\":\"{rule{list(2):{num}}}\"{ilf}}}┐{if({list(3):{num}}!=):{\"name\":\"{t{list(3):{num}}}\",\"value\":\"{rule{list(3):{num}}}\"{ilf}}}┐{if({list(4):{num}}!=):{\"name\":\"{t{list(4):{num}}}\",\"value\":\"{rule{list(4):{num}}}\"{ilf}}}┐{if({list(5):{num}}!=):{\"name\":\"{t{list(5):{num}}}\",\"value\":\"{rule{list(5):{num}}}\"{ilf}}}┐{if({list(6):{num}}!=):{\"name\":\"{t{list(6):{num}}}\",\"value\":\"{rule{list(6):{num}}}\"{ilf}}}┐{if({list(7):{num}}!=):{\"name\":\"{t{list(7):{num}}}\",\"value\":\"{rule{list(7):{num}}}\"{ilf}}}┐{if({list(8):{num}}!=):{\"name\":\"{t{list(8):{num}}}\",\"value\":\"{rule{list(8):{num}}}\"{ilf}}}┐{if({list(9):{num}}!=):{\"name\":\"{t{list(9):{num}}}\",\"value\":\"{rule{list(9):{num}}}\"{ilf}}}┐{if({list(10):{num}}!=):{\"name\":\"{t{list(10):{num}}}\",\"value\":\"{rule{list(10):{num}}}\"{ilf}}}┐{if({list(11):{num}}!=):{\"name\":\"{t{list(11):{num}}}\",\"value\":\"{rule{list(11):{num}}}\"{ilf}}}┐{if({list(12):{num}}!=):{\"name\":\"{t{list(12):{num}}}\",\"value\":\"{rule{list(12):{num}}}\"{ilf}}}┐{if({list(13):{num}}!=):{\"name\":\"{t{list(13):{num}}}\",\"value\":\"{rule{list(13):{num}}}\"{ilf}}}┐{if({list(14):{num}}!=):{\"name\":\"{t{list(14):{num}}}\",\"value\":\"{rule{list(14):{num}}}\"{ilf}}}┐{if({list(15):{num}}!=):{\"name\":\"{t{list(15):{num}}}\",\"value\":\"{rule{list(15):{num}}}\"{ilf}}}┐{if({list(16):{num}}!=):{\"name\":\"{t{list(16):{num}}}\",\"value\":\"{rule{list(16):{num}}}\"{ilf}}}┐{if({list(17):{num}}!=):{\"name\":\"{t{list(17):{num}}}\",\"value\":\"{rule{list(17):{num}}}\"{ilf}}}┐{if({list(18):{num}}!=):{\"name\":\"{t{list(18):{num}}}\",\"value\":\"{rule{list(18):{num}}}\"{ilf}}}┐{if({list(19):{num}}!=):{\"name\":\"{t{list(19):{num}}}\",\"value\":\"{rule{list(19):{num}}}\"{ilf}}}┐{if({list(20):{num}}!=):{\"name\":\"{t{list(20):{num}}}\",\"value\":\"{rule{list(20):{num}}}\"{ilf}}}┐{if({list(21):{num}}!=):{\"name\":\"{t{list(21):{num}}}\",\"value\":\"{rule{list(21):{num}}}\"{ilf}}}┐{if({list(22):{num}}!=):{\"name\":\"{t{list(22):{num}}}\",\"value\":\"{rule{list(22):{num}}}\"{ilf}}}┐{if({list(23):{num}}!=):{\"name\":\"{t{list(23):{num}}}\",\"value\":\"{rule{list(23):{num}}}\"{ilf}}}┐{if({list(24):{num}}!=):{\"name\":\"{t{list(24):{num}}}\",\"value\":\"{rule{list(24):{num}}}\"{ilf}}}}\n\n{=(Comment):different description holding variables}\n{=(instr):__Instructions__\nFollow the command with the number(s) of the rules you wish to output with spaces in between. Additional accepted formats are:\n#*x*-#*y* to indicate rules from #*x* to #*y* (limit 1x`-`)\n#+ to indicate rules from # to the end of the list of rules\n+# to indicate rules from 1 to # (limit 2x`+`)\nYou can also mix in keywords that have been set (don't mix keywords and symbols).\nExamples: `!rules +2 nsfw 4-6 8+` }\n\n{=(kw):__Keywords__\n{keyword01} {keyword02} {keyword03} {keyword04} {keyword05} {keyword06} {keyword07} {keyword08} {keyword09} {keyword10} {keyword11} {keyword12} {keyword13} {keyword14} {keyword15} {keyword16} {keyword17} {keyword18} {keyword19} {keyword20} {keyword21} {keyword22} {keyword23} {keyword24} {keyword25}}\n\n{=(Comment):Embed fields}\n{=(footer):Type \\\"!rules help\\\" for instructions, and \\\"!rules keywords\\\" for the list of reference keywords.}\n{=(des):{if({in(help):{largs}}==true):{instr}|{if({in(keyword):{largs}}==true):{kw}|{if({ruleschannelid}!=):<#{ruleschannelid}>}}}}\n\n{=(Comment):finalizes the json for the embed by replacing spaces with a filler character, replacing comma placeholder characters with spaces, joining the spaces with commas, and replacing the filler characters with spaces again. this ensures there are no commas preceeding JSON fields, nor trailing the last JSON field. also includes logic choosing whether to display the full rules list (if args or the input number list are empty AND help/keyword are not displayed) or the custom rules list}\n{=(json):\"title\":\"{embedtitle}\",\"description\":\"{des}\",\"fields\":[{replace(█, ):{join(,):{replace(┐, ):{replace( ,█):{cfields}}}}}],\"author\":{\"name\":\"{server}\",\"icon_url\":\"{server(icon)}\"},\"color\":16774263,\"footer\":{\"text\":\"{footer}\"}}\n\n{c:cembed {if({in(<#):{args}}==true):{args({index(<#):{replace(<#,. <# .):{args}}})}|{channel(id)}} {{json}}}",
"embed": "{}",
"last_fetched": "2026-10-20T20:55:39.577Z"
}