| View previous topic :: View next topic |
| Author |
Message |
MacGyver Voice
Joined: 26 Apr 2004 Posts: 9 Location: Dark side of the moon
|
Posted: Fri Jun 29, 2007 1:38 pm Post subject: simple trigger script that says current time in channel |
|
|
want this as an example I been pouring over the script help forums but didn't see any examples of this that I could understand.
like !time
eggdrop ' the time is, $time'
I know thats a poor explanation but i want to use this script to learn
how you intergrate system commands into variables and put them out for real world use.
thanks so much _________________ Mac |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Fri Jun 29, 2007 7:58 pm Post subject: |
|
|
| Code: | bind pub - !time show:time
proc show:time {nick uhost hand chan arg} {
puthelp "privmsg $chan :The time is, [strftime %r]"
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|