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 

anyone can do this script for me ?

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


Joined: 02 Feb 2006
Posts: 29

PostPosted: Thu Feb 09, 2006 9:54 pm    Post subject: anyone can do this script for me ? Reply with quote

hello. i need a tcl script to display my ircd uptime in the active channel with a public command.

ex

!statsu
<bot> Server Up 29 days, 15:41:09

thank u.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Feb 09, 2006 10:44 pm    Post subject: Reply with quote

The reply of stats u is numeric 242 on DALnet.
Code:
bind pub - !statsu statsu
bind raw - 242 show:statsu

proc statsu {nick uhost hand chan arg} {
 global statsu
 if {![info exists statsu([set chan [string tolower $chan]])]} {
  set statsu($chan) 0
  putserv "stats u"
 }
}

proc show:statsu {from kw arg} {
 global statsu
 foreach {c v} [array get statsu] {
  puthelp "privmsg $c :[string range $arg [expr {[string first : $arg]+1}] end]"
  array unset statsu $c
 }
}

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
kitsaras
Voice


Joined: 02 Feb 2006
Posts: 29

PostPosted: Fri Feb 10, 2006 2:55 am    Post subject: Reply with quote

thanks a lot Sir_Fz works perfect Very Happy
Back to top
View user's profile Send private message
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