egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

simple trigger script that says current time in channel

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
MacGyver
Voice


Joined: 26 Apr 2004
Posts: 9
Location: Dark side of the moon

PostPosted: Fri Jun 29, 2007 1:38 pm    Post subject: simple trigger script that says current time in channel Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Jun 29, 2007 7:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber