This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

simple trigger script that says current time in channel

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
M
MacGyver
Voice
Posts: 9
Joined: Mon Apr 26, 2004 3:12 am
Location: Dark side of the moon

simple trigger script that says current time in channel

Post by MacGyver »

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
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind pub - !time show:time

proc show:time {nick uhost hand chan arg} {
 puthelp "privmsg $chan :The time is, [strftime %r]"
}
Post Reply