;OmegaScript v2.6 ;Written by Adam- on *:CONNECT: { mode $me +TBpR ;.timercc $+ $network 0 120 chancheck } on *:DISCONNECT: { timers off unsetall } off *:INVITE:#: { if ($chan(0) >= 30) { notice $nick $c2($nick,I am currently full, please try again later.) halt } if ($readini(botinfo.ini,n,kicks,$chan) < 5) || ($readini(botinfo.ini,n,kicks,$chan) == $null) { ;msg #OmegaScript $+($chr(3),07,$nick,$chr(3)) has invited me to $+($chr(3),07,$chan,$chr(3)) $+ . join $chan .timer 1 2 msg $chan Hello! I'm $me $+ . I was invited by $nick $+ . Go to $+($chr(3),07,http://freewebs.com/omegascript/,$chr(3)) to view my commands. If I am kicked 5 times this channel is blacklisted, kicks left: $+($chr(3),07,$iif($readini(botinfo.ini,n,kicks,$chan),$calc(5 - $v1),5),/5,$chr(3),.) To remove me type $+($chr(3),07,!part $me,$chr(3)) ignore -iu300 $iif($address($nick,2),$v1,$nick) } else { notice $nick You can not invite me because your channel is blacklisted, join #OmegaScript to get this appealed. ignore -iu300 $iif($address($nick,2),$v1,$nick) } } on *:PART:#: { if ($nick != $me) { if ($nick($chan,0) < 4) { part $chan You need at least two other people to keep me. } } if ($nick == $me) { ;msg #omegascript I have just parted $+($chr(3),07,$chan,$chr(3),.) } } on *:KICK:#: { if ($knick == $me) { ignore -iu300 $iif($address($nick,2),$v1,$nick) if ($readini(botinfo.ini,n,kicks,$chan) == $null) { writeini botinfo.ini kicks $chan 1 } else { var %x $readini(botinfo.ini,n,kicks,$chan) inc %x writeini botinfo.ini kicks $chan %x } ;msg #omegascript I was just kicked from $+($chr(03),07,$chan,$chr(03)) by $+($chr(03),07,$nick,$chr(03),.) } } on *:TEXT:*:?: close -m on $*:TEXT:/^[!@]define/Si:#: haltdef on $*:TEXT:/youtube\.com\//Si:#: { if ($istok($readini(botinfo.ini,n,IgnoreChannel,Channels),$chan,32)) halt var %x 1 while ($gettok($1-,%x,32)) { if ($regex($v1,/(?:http:\/\/)?(?:www\.)?youtube\.com\//)) { var %link $gettok($1-,%x,32) } inc %x } %link = $remove(%link,http://,www.) var %y 1 while ($sock(youtube. $+ %y)) inc %y sockopen $+(youtube.,%y) www.youtube.com 80 sockmark $+(youtube.,%y) msg $chan $+ ~ $gettok(%link,2-,47) $+ ~ $+ $nick } on *:SOCKOPEN:youtube.*: { tokenize 126 $sock($sockname).mark sockwrite -n $sockname GET / $+ $remove($2,$chr(32)) HTTP/1.1 sockwrite -n $sockname Host: www.youtube.com sockwrite -n $sockname $crlf } on *:SOCKREAD:youtube.*: { tokenize 126 $sock($sockname).mark var %read sockread %read if (