Jump to content

Archived

This topic is now archived and is closed to further replies.

coders-irc_Bot

Commande de ping pour bot

Recommended Posts

  • Administrators

J'ai entendu beaucoup de personne demander comment que l'on peut crée sa propre commande de ping pour son bot. Je répond a votre appelle.

 

On 1:text:*:#ton-salon: {
  If ($strip($1) == !ping) {
    Ver $nick | set %chan.ping $chan
  }
  If ($1 == !pong) {
    Ver $nick | set %chan.ping $chan
  }
}
On 1:CTCPREPLY:VERSION*:.msg %chan.ping %ping 3lag de 4 $calc($calc($ticks - %ticks)/1000) 13Secondes | unset %ping | unset %ticks | unset %chan.ping
Alias ver ctcp $1 version | %ticks = $ticks | %ping = $1

 

Link to comment
Share on other sites



×
×
  • Create New...