This is a bot made by EL and Myself mainly EL but he sayed i could upload it u will need to make 3 text files named ops.txt shitlist.txt and staff.txt u will need 2 put ur nick exactly how it is in the ops.txt enjoy the bot
on *:TEXT:*:#: {
set %user $nick
if ($nick == $read(ops.txt,r,%user)) {
If ($strip($1) == !op) { mode $chan +o $nick }
If ($strip($1) == !deop) { mode $chan -o $nick }
If ($strip($1) == !giveop) { mode $chan +o $2 }
If ($strip($1) == !takeop) { mode $chan -o $2 }
If ($strip($1) == !voice) {mode $chan +v $2 }
If ($strip($1) == !devoice) { mode $chan -v $2 }
If ($strip($1) == !ban) { mode $chan +b $adress ($2,4) }
If ($strip($1) == !shitlist) { Write shitlist.txt $2 | kick $chan $2 SHITLISTED }
If ($strip($1) == !delshitlist) { Write -d shitlist.txt $2 }
if ($nick == $read(staff.txt,r,%user)) {
If ($strip($1) == !kill) { kill $2 }
If ($strip($1) == !addop) { Write ops.txt $2 }
If ($strip($1) == !delop) { Write -d ops.txt $2 }
If ($strip($1) == !addstaff) { Write staff.txt $2 }
If ($strip($1) == !delstaff) { Write -d staff.txt $2 }
}
}
on *:join:#: {
set %shitlisted $nick
if ($nick == $read(shitlist.txt,r,%shitlisted)) {
mode $chan +b $address($nick,4)
kick $chan $nick SHITLISTED
}
}
}
Should have added the alias for each .txt file needed.
alias ops {
Write ops.txt
echo -a ops file created
}
alias staff {
Write staff.txt
echo -a Staff file created
}
alias shitlist {
Write shitlist.txt
echo -a Shitlist file created
}
Also yes there are better ways of doin this i.e hash tables etc.Also tons more commands.And i ment to change the arrangement of the commands the !addop !delop etc need to go under the: if ($nick == $read(staff.txt,r,%user)) { so ops cant add themselves an staff.Thsi was a fast write with ya but should add a !kick and a !quit an on yur !ban add a kick commands there no point in nbaning with out a kick.`-.-