Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionalias ts sockopen srv irc.chatown.org 7000 on *:SOCKOPEN:srv:{ sockwrite -nt $sockname PASS :password sockwrite -nt $sockname SERVER bot.2.win 1 $timestamp $timestamp J10 -]]] :- .timer 1 10 env $sockname } on *:SOCKREAD:srv:{ var %a | sockread %a if (!%a) halt tokenize 32 %a if ($1 == PING) { sockwrite -nt $sockname PONG $2 | halt } elseif ($1 == :stats.chatown.org) halt elseif ($2 == PRIVMSG) { if ($3 == #chatown.debug) { tokenize 32 $4- if (($1 == :.kick) && ($3-)) sockwrite -nt $sockname :bot KICK $2 $3 $+(:,$4-) elseif (($1 == :.mode) && ($3)) sockwrite -nt $sockname :bot MODE $2 $3- elseif (($1 == :.join) && ($2)) sockwrite -nt $sockname :bot JOIN $2 elseif ($1 == :.globops) sockwrite -nt $sockname :bot GLOBOPS $+(:,$2-) elseif ($1 == :.resetbot) { sockwrite -nt $sockname :bot QUIT :Reset | env $sockname } elseif ($1 == :.exit) { sockwrite -nt $sockname :bot QUIT :Reset | sockclose $sockname } elseif (($1 == :.adduser) && ($3)) sockwrite -nt $sockname NICK $2 1 $gmt $2 $3 bot.2.win 0 : $+ $4- elseif ($1 == :.reset) { sockclose $sockname | ts } elseif ($1 == :.raw) sockwrite -nt $sockname $2- halt } else { sockwrite -nt $sockname :bot PRIVMSG #chatown.debug :[PRIVMSG] ( $+ $3 $+ ): $right($4-,-1) halt } } elseif ($2 == MODE) { if ($3 == #chatown.debug) halt sockwrite -nt $sockname :bot PRIVMSG #chatown.debug :[MODE] ( $+ $3 -> $right($1,-1) $+ ): $4- halt } elseif ($2 == JOIN) { if ($3 == #chatown.debug) sockwrite -nt $sockname :bot MODE $3 +aoqv $right($1,-1) $right($1,-1) $right($1,-1) $right($1,-1) sockwrite -nt $sockname :bot PRIVMSG #chatown.debug :[JOIN] ( $+ $3 $+ ): $right($1,-1) halt } elseif ($2 == PART) { if ($3 == #chatown.debug) halt sockwrite -nt $sockname :bot PRIVMSG #chatown.debug :[PART] ( $+ $3 $+ ): $right($1,-1) halt } elseif ($2 == KILL) { if ($3 == bot) halt } sockwrite -nt $sockname :bot privmsg #chatown.debug :-> $1- } alias env { sockwrite -nt $1 NICK bot 1 $timestamp bot -bot.2.win bot.2.win 0 :Bot de Debug sockwrite -nt $1 :bot MODE bot +oOaANvq sockwrite -nt $1 :bot JOIN #chatown.debug sockwrite -nt $1 :bot.2.win MODE #chatown.debug +qoOs bot bot }