<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/14158" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2007-11-17T20:23:55-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/14158</id>

		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2007-11-17T20:23:55-04:00</updated>

		<published>2007-11-17T20:23:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78492#p78492</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78492#p78492"/>
		<title type="html"><![CDATA[Uptime+away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78492#p78492"><![CDATA[
<blockquote class="uncited"><div>thanks for reply yahoo<br><br>actually iam looking for script that will show bot uptime in his away msg..<br><br>ex. Bot is away:  Online: 22 days, 22:43 Hours</div></blockquote>then try botaway.tcl which does this already<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Sat Nov 17, 2007 8:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wac]]></name></author>
		<updated>2007-11-16T13:21:10-04:00</updated>

		<published>2007-11-16T13:21:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78451#p78451</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78451#p78451"/>
		<title type="html"><![CDATA[Uptime+away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78451#p78451"><![CDATA[
<blockquote class="uncited"><div>sk-4, you need to visit the <a href="http://www.egghelp.org/tclhtml/3478-4-0-0-1-uptime.htm" class="postlink">Tcl Archives</a>, and use the keyword <span style="text-decoration:underline">uptime</span>.  I found nine such scripts already written that will display your shell's uptime in your channel, <strong class="text-strong">plus many other features.</strong></div></blockquote>did you miss that part, and wth you didn't search before posting? come on dude... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8485">wac</a> — Fri Nov 16, 2007 1:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sk-4]]></name></author>
		<updated>2007-11-16T10:51:02-04:00</updated>

		<published>2007-11-16T10:51:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78446#p78446</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78446#p78446"/>
		<title type="html"><![CDATA[Uptime+away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78446#p78446"><![CDATA[
thanks for reply yahoo<br><br>actually iam looking for script that will show bot uptime in his away msg..<br><br>ex. Bot is away:  Online: 22 days, 22:43 Hours<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9352">sk-4</a> — Fri Nov 16, 2007 10:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2007-11-16T10:05:17-04:00</updated>

		<published>2007-11-16T10:05:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78444#p78444</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78444#p78444"/>
		<title type="html"><![CDATA[Uptime+away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78444#p78444"><![CDATA[
sk-4, you need to visit the <a href="http://www.egghelp.org/tclhtml/3478-4-0-0-1-uptime.htm" class="postlink">Tcl Archives</a>, and use the keyword <span style="text-decoration:underline">uptime</span>.  I found nine such scripts already written that will display your shell's uptime in your channel, plus many other features.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Fri Nov 16, 2007 10:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sk-4]]></name></author>
		<updated>2007-11-16T06:24:22-04:00</updated>

		<published>2007-11-16T06:24:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78435#p78435</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78435#p78435"/>
		<title type="html"><![CDATA[Uptime+away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78435#p78435"><![CDATA[
yes i just want it to show bot uptime in this way<br><br>bot Online: 22 days, 18:13 Hours<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9352">sk-4</a> — Fri Nov 16, 2007 6:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wac]]></name></author>
		<updated>2007-11-15T14:44:43-04:00</updated>

		<published>2007-11-15T14:44:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78396#p78396</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78396#p78396"/>
		<title type="html"><![CDATA[Uptime+away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78396#p78396"><![CDATA[
I'm guessing you would just take out the one's you don't want, like week, mins, seconds. That would be my first guess but don't quote me on that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8485">wac</a> — Thu Nov 15, 2007 2:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sk-4]]></name></author>
		<updated>2007-11-15T14:17:33-04:00</updated>

		<published>2007-11-15T14:17:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78395#p78395</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78395#p78395"/>
		<title type="html"><![CDATA[Uptime+away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78395#p78395"><![CDATA[
How to change the away output ,i want something like this<br><br>earlier away msg is<br>Bot has been up for: 0 weak(s) 0 day(s) 0 hour(s) 11 minute(s) 42 second(s). <br><br>how to make it show the day and time..maybe bot can set away or back according timer<br>Bot is away: 4 Online: 22 days, 02:03 Hours<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9352">sk-4</a> — Thu Nov 15, 2007 2:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wac]]></name></author>
		<updated>2007-10-31T16:20:31-04:00</updated>

		<published>2007-10-31T16:20:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77318#p77318</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77318#p77318"/>
		<title type="html"><![CDATA[Uptime+away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77318#p77318"><![CDATA[
Hey it's cool I'm not that great either I either learn from others or read it myself and then test it till I get it to work, I was just curious as to how something like that might get implemented. Thanks for your info though. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8485">wac</a> — Wed Oct 31, 2007 4:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-10-31T10:06:02-04:00</updated>

		<published>2007-10-31T10:06:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77310#p77310</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77310#p77310"/>
		<title type="html"><![CDATA[Uptime+away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77310#p77310"><![CDATA[
<blockquote class="uncited"><div>do you think that could work for multiple channels? (like space separated list) or would it just need to be run a seperate tcl for each channel? I'm just curious is all.</div></blockquote><br>If you change this:<br><div class="codebox"><p>Code: </p><pre><code>timer 60 set:eggtime proc set:eggtime {} { global mychannel foreach chan [channels] { putserv "PRIVMSG $mychannel :[eggtime]" timer 60 set:eggtime  } } </code></pre></div>Replace with:<br><div class="codebox"><p>Code: </p><pre><code>timer 60 set:eggtime proc set:eggtime {} { foreach chan [channels] { putserv "PRIVMSG $chan :[eggtime]" timer 60 set:eggtime  } } </code></pre></div>Then I think it should work, I am not sure or else you can add channels manually but adding: <br><div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG $chan1 :[eggtime]"putserv "PRIVMSG $chan2 :[eggtime]"putserv "PRIVMSG $chan3 :[eggtime]"</code></pre></div> <br><br>I am not that good coder so I am not sure what I am doing I test them to find out if they're working, so I need to test right now I am busy so I can't test <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>thanks<br>iamdeath[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Wed Oct 31, 2007 10:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wac]]></name></author>
		<updated>2007-10-31T02:48:35-04:00</updated>

		<published>2007-10-31T02:48:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77298#p77298</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77298#p77298"/>
		<title type="html"><![CDATA[Uptime+away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77298#p77298"><![CDATA[
do you think that could work for multiple channels? (like space separated list) or would it just need to be run a seperate tcl for each channel? I'm just curious is all.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8485">wac</a> — Wed Oct 31, 2007 2:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-10-31T01:39:40-04:00</updated>

		<published>2007-10-31T01:39:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77297#p77297</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77297#p77297"/>
		<title type="html"><![CDATA[Uptime+away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77297#p77297"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># Title: Simple eggdrop uptime script ############################################################################ # Description: #  - An os independent os script verry simple. I know to simple but seems #    hard to find a deasend script that doesn't use the shell uptime but #    but the actual uptime of the eggdrop. You can also use this in scripts #    Example: [eggtime] this will return the value that is returned in #             channel. #  - This has dcc, pub &amp; msg binds you can set them to your preference. # # Install: #  - Put this script into the scripts dir of the eggdrop #  - Add this to your eggdrop config: "source scripts/uptime.tcl" #  - Rehash the bot and your done. # # HomePage: http://www.ofloo.net/ # Mail: support[at]ofloo.net # # ChangeLog: #  - 15/12/2003 :: Weak fix &amp; adjusted msg little &amp; added n00b help ;) ############################################################################ ############################################################################ # SETTINGS # Set the triggers to you preference.. # Dcc is always with a . infront also you don't have to add it in the bind # I prefer for msg it to be a . as well so I always use . for msg (.uptime) # You can use whatever of course for example ?uptime # For channel triggers I always use ! you can change that as well to your # preference also it doesn't have to be uptime you can choose whatever set time(dcc) "uptime" set time(msg) ".uptime" set time(pub) "!uptime" set mychannel "#channel"# This is the flag to whom is able to use it if you would like only known # users to use it set it to "h" because the eggdrop will add users by default # as hp if you didn't change it of course. You can also limit it to channel # operators this means they have to be known to the eggdrop of course then # set it to "o" masters "m" owers "n" whatever you prefer of course. # read the doc files to find out more about flags set time(flag) "-" # How to edit the colors: # for an eggdrop to know its an color you always need \003 so then put your # favorite color behind it like mirc &lt;ctrl&gt; &lt;k&gt; you get a choice menu # &lt;ctrl&gt; &lt;k&gt; &lt;4&gt; = red so look below \0034 = red yellow \0038 orange = \0037 # and so on and so on think you get the idea ? set time(col1) "\00314" set time(col2) "\0034" ############################# DO NOT EDIT BELOW ############################ set vrs "0.2" ############################################################################ # BINDS bind pub "$time(flag)" "$time(pub)" uptime:pub bind dcc "$time(flag)" "$time(dcc)" uptime:dcc bind msg "$time(flag)" "$time(msg)" uptime:msg ############################################################################ # PROCS timer 60 set:eggtime proc set:eggtime {} { global mychannelforeach chan [channels] { putserv "PRIVMSG $mychannel :[eggtime]" timer 60 set:eggtime  } } proc uptime:pub {nick uhost hand chan arg} {   putserv "PRIVMSG $chan :[eggtime]" } proc uptime:msg {nick uhost hand arg} {   putserv "PRIVMSG $nick :[eggtime]" } proc uptime:dcc {hand idx arg} {   putdcc $idx "[eggtime]" } proc eggtime {} {   set ::time(uptime) [expr [clock seconds]-$::uptime]   set ::time(weak) [expr $::time(uptime)/604800]   set ::time(uptime) [expr $::time(uptime)-$::time(weak)*604800]   set ::time(days) [expr $::time(uptime)/86400]   set ::time(uptime) [expr $::time(uptime)-$::time(days)*86400]   set ::time(hour) [expr $::time(uptime)/3600]   set ::time(uptime) [expr $::time(uptime)-$::time(hour)*3600]   set ::time(mins) [expr $::time(uptime)/60]   set ::time(uptime) [expr $::time(uptime)-$::time(mins)*60]   set ::time(secs) $::time(uptime)   set ::time(return) "$::time(col2)$::botnick $::time(col1)has been up for:$::time(col2) $::time(weak) $::time(col1)weak\(s\)$::time(col2) $::time(days) $::time(col1)day\(s\)$::time(col2) $::time(hour) $::time(col1)hour\(s\)$::time(col2) $::time(mins) $::time(col1)minute\(s\)$::time(col2) $::time(secs) $::time(col1)second\(s\)."   return $::time(return) } ############################################################################ putlog "Sucsesfully loaded \002Ofloo\002 uptime script version\002 $vrs\002"</code></pre></div><br><span style="color:red">You need to set mychannel value and it will show uptime every 1 hour in that channel</span><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Wed Oct 31, 2007 1:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sydneybabe]]></name></author>
		<updated>2007-10-30T23:30:15-04:00</updated>

		<published>2007-10-30T23:30:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77293#p77293</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77293#p77293"/>
		<title type="html"><![CDATA[Uptime+away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77293#p77293"><![CDATA[
Hi iamdeath, can u help me regarding that showing bot uptime but i wanted it shows the uptime on channel every 1 hour w/o typing !uptime, .uptime.... thanks in advance  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8947">Sydneybabe</a> — Tue Oct 30, 2007 11:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wac]]></name></author>
		<updated>2007-10-29T14:44:58-04:00</updated>

		<published>2007-10-29T14:44:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77243#p77243</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77243#p77243"/>
		<title type="html"><![CDATA[:D]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77243#p77243"><![CDATA[
yeah np<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8485">wac</a> — Mon Oct 29, 2007 2:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-10-29T02:05:22-04:00</updated>

		<published>2007-10-29T02:05:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77235#p77235</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77235#p77235"/>
		<title type="html"><![CDATA[Uptime+away]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77235#p77235"><![CDATA[
I have set it to change away in 60 minutes == 1 hour. Should'nt be a problem now.<br><br>Thanks<br>iamdeath<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Mon Oct 29, 2007 2:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wac]]></name></author>
		<updated>2007-10-28T17:36:33-04:00</updated>

		<published>2007-10-28T17:36:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77225#p77225</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77225#p77225"/>
		<title type="html"><![CDATA[lol]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77225#p77225"><![CDATA[
You might try setting it higher like to an hour or so or a day or something and adding into the away message that it has an "uptime of x at y" like <br>"bot1 has had an uptime of 12 years at 3pm CST" or something similar to that <br><br>On a side note I found my answer to using the timer function I think. Yay!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8485">wac</a> — Sun Oct 28, 2007 5:36 pm</p><hr />
]]></content>
	</entry>
	</feed>
