###################################################################### # Ultah By JoJo - #Botmaster Allnetwork # hillzx@gmail.com # Version 1.0 # 30 Januari 2010 ###################################################################### bind pub - !paypal pub:pp set activechan "#eggdrop" set txthope "/home/fast/indo/scripts/paypal.txt" set delay 10 set init-server { timer [expr $delay] gethop } proc pub:pp { nick uhost hand chan text } { global activechan set hope [lrange $text 0 end] if { $hope != "" } { if { [isvoice $nick $chan] } { savehope "13-=- $hope (by. $nick) -=-" putserv "NOTICE $nick :$nick NOT VERIFIED" putserv "NOTICE $nick : /msg pasnem !paypal " } else { putserv "PRIVMSG $nick : anda tidak memiliki voice +v" } } else { putserv "PRIVMSG $nick :Format salah! Ketik /msg pasnem !paypal " } } proc gethope {} { global txthope activechan delay set lines [getdatafromtxt $txthop] set line [lindex $lines [rand [llength $lines]]] putserv "PRIVMSG $activechan :$line" putserv "PRIVMSG $activechan :" timer [expr $delay] gethope } proc savehope { message } { global txthope set con [open $txthope r] set data [read $con] close $con set con [open $txthope "w"] puts $con "$message" puts -nonewline $con $data close $con } proc getdatafromtxt { filepath } { set con [open $filepat r] set data [read $con] close $con set data [split $data "\n"] return $data } putlog "paypal"