Kod: Kodu kopyalamak için üzerine çift tıklayın!
alias swalias {
;eðer bot socketý açýksa
if $sock(bot) {
var %: = echo $color(info) -st > Socket bot:
if :VERSION iswm $4- { swbot NOTICE $gettok($gettok($1,1,33),1,58) : $+ $chr(1) $+ VERSION Jawa User %logo $+ $chr(1) }
if :FINGER iswm $4- { swbot NOTICE $gettok($gettok($1,1,33),1,58) : $+ $chr(1) $+ FINGER Jawa User %logo $+ $chr(1) }
if $1 == PING { swbot PiNG $2- }
if $2 == 474 { %: $4 kanalýnda banlý. }
if $2 == 366 { %: $4 kanalýna girdi. }
if $1 == error && $2 == :closing {
baslat 2
}
if $2 == NICK {
set %nickdegis $remove($gettok($1,1,33), | set %newnick $right($3,-1)
if (%parametre == sunucu) { nickbot | halt }
}
if $2 == JOIN {
if ($kanal isin $3) {
set %joinnick $remove($gettok($1,1,33),
if (%parametre == sunucu) { joinbot | halt }
}
}
if $2 == PART {
if ($3 == $kanal) {
set %partnick $remove($gettok($1,1,33),
if (%parametre == sunucu) { partbot | halt }
}
}
if $2 == quit {
set %quitnick $remove($gettok($1,1,33),
if (%parametre == sunucu) { quitbot | halt }
}
if ($2 == privmsg) {
var %n = $gettok($gettok($1,1,33),1,58), %k = $3
if (%k == #kanal) {
swbota os raw $+(:,%n) privmsg #mesajkanal $4-
}
}
}
}