KLoWnX — File Browser
abot.ini — 2.44 KB — Download this file
[aliases]
n0=/abot {
n1= if (%mbx == $null) { /set %mbx 14:15:1: }
n2= echo -a %mbx 9A3utobot
n3= if ($lines($mircdirtxt\abot.txt) < 1) { echo -a %mbx 9N3o bots in list Try: /abotadd | halt }
n4= if ($lines($mircdirtxt\abot.txt) >= 1) {
n5= set %loop 0
n6= :begin
n7= inc %loop 1
n8= if (%loop > $lines($mircdirtxt\abot.txt)) goto end
n9= abot.setvars
n10= goto begin
n11= :end
n12= }
n13= abot.getops
n14=}
n15=abot.setvars {
n16= if (%mbx == $null) { /set %mbx 14:15:1: }
n17= set %abot $read -l $+ %loop $mircdirtxt\abot.txt
n18= set %abot.nick $gettok(%abot,1,32)
n19= set %abot.password $gettok(%abot,2,32)
n20= set %abot.channel $gettok(%abot,3,32)
n21= if (%abot.nick isop %abot.channel) { write $mircdirtxt\abot.tmp %abot.nick op %abot.password }
n22=}
n23=abot.getops {
n24= if (%mbx == $null) { /set %mbx 14:15:1: }
n25= set %loop 0
n26= :begin
n27= inc %loop 1
n28= if (%loop > $lines($mircdirtxt\abot.tmp)) goto end
n29= msg $read -l $+ %loop $mircdirtxt\abot.tmp
n30= goto begin
n31= :end
n32= unset %abot*
n33= .remove $mircdirtxt\abot.tmp
n34=}
n35=/ab {
n36= if (%mbx == $null) { /set %mbx 14:15:1: }
n37= if ($1 == $null) {
n38= echo -a %mbx 9A3uto-bot list - 14/ab
n39= echo 15 -a %mbx add: Add bot to the auto-bot list
n40= echo 15 -a %mbx rem: Remove bot from the list
n41= echo 15 -a %mbx clean: Reset the auto-bot list
n42= echo 15 -a %mbx list: View the auto-bot list
n43= halt
n44= }
n45= if ($1 == add) {
n46= if ($2 == $null) { echo -a %mbx 14 /ab add <botnick> <password> <channel> | halt }
n47= if ($3 == $null) { echo -a %mbx 14 /ab add <botnick> <password> <channel> | halt }
n48= if ($4 == $null) { echo -a %mbx 14 /ab add <botnick> <password> <channel> | halt }
n49= /write $mircdirtxt\abot.txt
n50= echo -a %mbx 9A3dded bot: $2 3with password: $3 3for channel: $4
n51= halt
n52=
n53= }
n54= if ($1 == rem) {
n55= echo 15 -a %mbx 3Remove the bot's line then save the file
n56= run notepad $mircdirtxt\abot.txt
n57= }
n58= if ($1 == list) {
n59= echo 15 -a %mbx 3loading list...
n60= run notepad $mircdirtxt\abot.txt
n61= }
n62= if ($1 == clean) {
n63= echo 15 -a %mbx 9A3uto bot list - 14cleared.
n64= .remove $mircdirtxt\abot.txt
n65= halt
n66= }
n67=}