-
Notifications
You must be signed in to change notification settings - Fork 2
/
protectionsetup.ini
131 lines (131 loc) · 6.87 KB
/
protectionsetup.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[script]
n0=on *:text:!protection*:#:{
n1= if (($nick == zapdos26 || $right(#,-1) == $nick) && ( $2 == default ) && ( $3 == set )) {
n2= set %protection. [ $+ [ # ] $+ ] .caps.status on
n3= set %protection. [ $+ [ # ] $+ ] .emotes.status on
n4= set %protection. [ $+ [ # ] $+ ] .spam.status on
n5= set %protection. [ $+ [ # ] $+ ] .links.status on
n6= set %protection. [ $+ [ # ] $+ ] .repeat.status on
n7= set %protection. [ $+ [ # ] $+ ] .blacklist.status on
n8= set %protection. [ $+ [ # ] $+ ] .symbol.status on
n9= set %protection. [ $+ [ # ] $+ ] .fakedonation.status on
n10= set %protection. [ $+ [ # ] $+ ] .silent off
n11= set %protection. [ $+ [ # ] $+ ] .caps.message Easy on the caps please.
n12= set %protection. [ $+ [ # ] $+ ] .emotes.message Easy on the emotes please.
n13= set %protection. [ $+ [ # ] $+ ] .symbol.message Easy on the symbols please.
n14= set %protection. [ $+ [ # ] $+ ] .links.message Leave the links to the moderators please.
n15= set %protection. [ $+ [ # ] $+ ] .repeat.message Please stop repeating.
n16= set %protection. [ $+ [ # ] $+ ] .spam.message Please don't spam.
n17= set %protection. [ $+ [ # ] $+ ] .blacklist.message Keep it PG please.
n18= set %protection. [ $+ [ # ] $+ ] .fakedonation.message Please don't lie to get attention.
n19= set %protection. [ $+ [ # ] $+ ] .caps.limitamount 8
n20= set %protection. [ $+ [ # ] $+ ] .emotes.limitamount 8
n21= set %protection. [ $+ [ # ] $+ ] .symbol.limitamount 10
n22= set %protection. [ $+ [ # ] $+ ] .repeat.limitamount 5
n23= set %protection. [ $+ [ # ] $+ ] .spam.limitamount 16
n24= set %protection. [ $+ [ # ] $+ ] .caps.limitpercentage 80
n25= set %protection. [ $+ [ # ] $+ ] .symbol.limitpercentage 90
n26= set %protection. [ $+ [ # ] $+ ] .spam.limitpercentage 90
n27= set %protection. [ $+ [ # ] $+ ] .caps.timeout 1
n28= set %protection. [ $+ [ # ] $+ ] .emotes.timeout 1
n29= set %protection. [ $+ [ # ] $+ ] .spam.timeout 1
n30= set %protection. [ $+ [ # ] $+ ] .links.timeout 1
n31= set %protection. [ $+ [ # ] $+ ] .repeat.timeout 1
n32= set %protection. [ $+ [ # ] $+ ] .blacklist.timeout 1
n33= set %protection. [ $+ [ # ] $+ ] .symbol.timeout 1
n34= set %protection. [ $+ [ # ] $+ ] .fakedonation.timeout 1
n35= set %streamer. [ $+ [ # ] $+ ] .bits.message
n36= set %streamer. [ $+ [ # ] $+ ] .bits.amount 1
n37= msg # The bot's default settings has been set for this channel.
n38= break
n39= }
n40= elseif ($msgtags(mod).key == 1 || $right(#,-1) == $nick) {
n41= if ($2 != caps && $2 != emotes && $2 != symbol && $2 != spam && $2 != repeat && $2 != blacklist && $2 != links && $2 != silent && $2 != fakedonation ) { goto failure }
n42= elseif ($3 != on && $3 != off && $3 != message && $3 != limitamount && $3 != limitpercentage && $3 != add && $3 != del && $3 != whitelist && $3 != timeout && $3 != regular && $3 != sub) { goto failure }
n43= elseif (($2 == blacklist || $2 == links || $2 == fakedonation) && ( $3 == limitamount || $3 == limitpercentage)) { goto failure }
n44= elseif (($2 != links) && ($3 == whitelist )) { goto failure }
n45= elseif (($2 != emotes && $2 != blacklist && $2 != links) && ($3 == add || $3 == del)) { goto failure }
n46= elseif (($3 == timeout) && ($4 !isnum || $4 == 0)) { goto failure }
n47= elseif (($2 == repeat || $2 == emotes || $2 == spam ) && ($3 == limitpercentage)) { goto failure }
n48= elseif (($3 == regular) && ($4 != On && $4 != off)) { goto failure }
n49= elseif (($3 == regular) && ($4 == On || $4 == off) && ( %protection. [ $+ [ # ] $+ ] . [ $+ [ $2 ] $+ ] .regular == $4)) {
n50= msg # Regulars are already protected in reference to $2 $+ .
n51= break
n52= }
n53= elseif (($3 == sub) && ($4 != On && $4 != off)) { goto failure }
n54= elseif (($3 == sub ) && ($4 == On || $4 == off) && ( %protection. [ $+ [ # ] $+ ] . [ $+ [ $2 ] $+ ] .sub == $4)) {
n55= msg # Subscribers are already protected in reference to $2 $+ .
n56= break
n57= }
n58= elseif (( $2 != silent) && ($3 == On || $3 == Off ) && ( %protection. [ $+ [ # ] $+ ] . [ $+ [ $2 ] $+ ] .status == $3)) {
n59= msg # /me $nick $+ , $2 protection is already $3 $+ .
n60= break
n61= }
n62= elseif (($2 == Silent) && ($3 != on && $3 != off )) { goto failure }
n63= elseif (($2 == Silent) && ($3 == On || $3 == Off ) && ( %protection. [ $+ [ # ] $+ ] .silent == $3 )) {
n64= msg # /me $nick $+ , Silent mode is already $3 $+ .
n65= break
n66= }
n67= elseif (($2 == Silent) && ($3 == On || $3 == Off )) {
n68= set %protection. [ $+ [ # ] $+ ] .silent $3
n69= msg # /me $nick $+ , Silent mode is now $3 $+ .
n70= break
n71= }
n72= else {
n73= if ( $3 == On || $3 == Off ) {
n74= set %protection. [ $+ [ # ] $+ ] . [ $+ [ $2 ] $+ ] .status $3
n75= msg # $nick $+ , $2 protection has been turned $3 $+ .
n76= break
n77= }
n78= elseif ($3 == add || $3 == del) {
n79= var %file $2 $+ .ini
n80= if ($3 == add) {
n81= if ($ini(%file,#,$4) == $null) {
n82= writeini %file # $4 1
n83= if (emotes == $2) { msg # /me $4 will no longer be counted against the maximum emote limit. }
n84= else { msg # /me $4 has been added to $2 $+ . }
n85= }
n86= else {
n87= msg # /me $4 is already in $2 $+ .
n88= }
n89= }
n90= elseif ($3 == del) {
n91= if ($ini(%file,#,$4) != $null) {
n92= remini %file # $4
n93= if (emotes == $2) { msg # /me $4 will be counted against the maximum emote limit. }
n94= else { msg # /me $4 has been removed from $2 $+ . }
n95= }
n96= else {
n97= msg # Sorry, $4 was not found in $2 $+ .
n98= }
n99= }
n100= }
n101= elseif ($3 == whitelist) && ($4 == add || $4 == del) {
n102= var %file $3 $+ .ini
n103= if ($4 == add) {
n104= if ($ini(%file,#,$5) == $null) {
n105= writeini %file # $5 1
n106= msg # /me $5 has been added to $3 $+ .
n107= }
n108= else {
n109= msg # /me $5 is already in $3 $+ .
n110= }
n111= }
n112= elseif ($4 == del) {
n113= if ($ini(%file,#,$5) != $null) {
n114= remini %file # $5
n115= msg # /me $5 has been removed from $3 $+ .
n116= }
n117= }
n118= }
n119= else {
n120= set %protection. [ $+ [ # ] $+ ] . [ $+ [ $2 ] $+ ] . [ $+ [ $3 ] ] $4-
n121= msg # $nick $+ , $3 has been set for $2 $+ .
n122= halt
n123= :failure
n124= msg # $nick For more info about how to set the protection settings, visit https://goo.gl/o1Otwc.
n125= break
n126= }
n127= }
n128= }
n129=}