Communauté Eggdrop
Tcl heure - Version imprimable

+- Communauté Eggdrop (https://forum.eggdrop.fr)
+-- Forum : Eggdrop et TCL (https://forum.eggdrop.fr/forumdisplay.php?fid=8)
+--- Forum : Scripts TCL (https://forum.eggdrop.fr/forumdisplay.php?fid=4)
+--- Sujet : Tcl heure (/showthread.php?tid=910)



Tcl heure - Amilcar - 11/03/2011

Salut,

J'aimerais avoir SVP un Tcl qui me donne l'heure sur channel

exemple si je tappe !time il me donne ca : Il est 12h:47 et on es le vendredi 11 mars 2011

Merci d'avance.


RE: Tcl heure - djkenny - 11/03/2011

salut,

tcl
proc date {} {clock format [clock seconds] -format "%A %d %B %Y %H:%M:%S" -local fr}





RE: Tcl heure - Amilcar - 11/03/2011

Thinks but what's the command please (Trigger like !time)


RE: Tcl heure - djkenny - 11/03/2011

I nie mówiÄ… po angielsku


RE: Tcl heure - Amilcar - 11/03/2011

sorry I don't understand u


RE: Tcl heure - djkenny - 11/03/2011

http://translate.google.fr/#


RE: Tcl heure - Amilcar - 11/03/2011

j'ai rien compris de ca :

RE: Tcl heure

I nie mówiÄ… po angielsku


RE: Tcl heure - CrazyCat - 11/03/2011

Amilcar a écrit :I nie mówiÄ… po angielsku
C'est du polonais: "Je ne comprends pas l'anglais"

Sinon, pour le code demandé si poliment:
tcl
bind pub - "!time" say:time
proc say:time {nick uhost handle chan args} {
   set dt [clock format [clock seconds] -format "Il est %H:%M et nous sommes le %A %d %B %Y" -local fr]
   putserv "PRIVMSG $chan :$dt"
}





RE: Tcl heure - djkenny - 11/03/2011

merci CrazyCat lol Wink


RE: Tcl heure - Amilcar - 12/03/2011

Merci l'ami c'est très gentil

BRAVO