<?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/18283" />

	<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>2014-02-01T19:02:06-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SmasHinG]]></name></author>
		<updated>2014-02-01T19:02:06-04:00</updated>

		<published>2014-02-01T19:02:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102574#p102574</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102574#p102574"/>
		<title type="html"><![CDATA[peak.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102574#p102574"><![CDATA[
Someone can tell me how to include this line in script <div class="codebox"><p>Code: </p><pre><code>puthelp "PRIVMSG $chan :Channel $chan MaX Record: [lindex $peak 0] (predi [timeago [lindex $peak 1]] posledno na [clock format [lindex $peak 1] -format %d.%b.%Y] v [clock format [lindex $peak 1] -format %H:%M]h)."</code></pre></div>I try to replace with line but have a errors and problems. I want and one more thing to work to public and to msg. Thank you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11766">SmasHinG</a> — Sat Feb 01, 2014 7:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2011-02-01T17:14:04-04:00</updated>

		<published>2011-02-01T17:14:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95890#p95890</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95890#p95890"/>
		<title type="html"><![CDATA[peak.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95890#p95890"><![CDATA[
Thank you iRoc!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Tue Feb 01, 2011 5:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-02-01T15:39:49-04:00</updated>

		<published>2011-02-01T15:39:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95889#p95889</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95889#p95889"/>
		<title type="html"><![CDATA[peak.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95889#p95889"><![CDATA[
You can also remove the 'timeago' proc if you don't use it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Feb 01, 2011 3:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2011-02-01T14:08:40-04:00</updated>

		<published>2011-02-01T14:08:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95888#p95888</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95888#p95888"/>
		<title type="html"><![CDATA[peak.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95888#p95888"><![CDATA[
Find:<div class="codebox"><p>Code: </p><pre><code>      puthelp "PRIVMSG $chan :Channel Peak Record: [lindex [set peak [getpeak $chan]] 0] ([timeago [lindex $peak 1]] ago)." </code></pre></div>and replace it with:<div class="codebox"><p>Code: </p><pre><code>      puthelp "PRIVMSG $chan :Channel Peak Record: [lindex [set peak [getpeak $chan]] 0] ([clock format [lindex $peak 1]])"</code></pre></div><p>Statistics: Posted by Guest — Tue Feb 01, 2011 2:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2011-02-01T08:34:09-04:00</updated>

		<published>2011-02-01T08:34:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95886#p95886</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95886#p95886"/>
		<title type="html"><![CDATA[peak.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95886#p95886"><![CDATA[
Hey, I`m using peak1.8.tcl by FireEgl@EFNet <br><br>I was wondering if someone could modify it so it will state on what Date &amp; time the recent peak was reached?<br><br>Currently it just displays how many minutes/hours or days ago it was achieved:<br><br>[14:28:30] &lt;+Football&gt; !peak<br>[14:28:32] &lt;@EPL&gt; Channel Peak Record: 4 (1 minute ago).<br><br>Would be nice if it was<br>[14:28:30] &lt;+Xabriel&gt; !peak<br>[14:28:32] &lt;@EPL&gt; Channel Peak Record: 4 (February 1st, 2011. 13:33 CET).<br><br><div class="codebox"><p>Code: </p><pre><code># peak1.8.tcl - FireEgl@EFNet &lt;EggTCL@FireEgl.CJB.Net&gt; - 6/25/04### Description:# Keeps up with the peak number of people in the# channel and announces it when a new record is set.### Usage:# To enable peak tracking for a channel:#   .chanset #channel +peak# There's also a !peak public command.# Note:# This is an old script of mine, I only make bugfixes to it nowadays.# Do not ask for feature requests.### History:# 1.8 - Fixed a bug.# 1.7 - Fixed a bug relating to the case of the channel name.# 1.6 - Added support for a +peak chanset. To enable, type: .chanset #channel +peak#     - No longer counts bots.# 1.5 - Oh no! The peak.*.txt files got reset when you restarted the bot..#     - Also the thinger that's sposta clean-up unused peak.*.txt's was deleting used ones.# 1.4 - Minor changes.# 1.3 - Now loads peak data from file on demand (if it's not already in memory).# 1.2 - Now uses a file to store peak data.#     - Added !peak public command.#     - Now says how long ago the last record was set.#     - Removed mIRC colors. =P# 1.1 - uhmmmmm...# 1.0 - Released.### Begin Script:setudef flag peakbind join - * join:peakproc join:peak {nick host hand chan} {if {(([lsearch -exact [channel info $chan] {+peak}] != -1) &amp;&amp; ([set curnum [llength [chanlist $chan -b]]] &gt; [set lastmax [lindex [set peak [getpeak $chan]] 0]]))} {puthelp "PRIVMSG $chan :New channel user peak! (\002$curnum\002) Last peak was [timeago [lindex $peak 1]] ago."setpeak $chan $curnum [clock seconds]}}# Loads the peak data from file if it's not already in memory and returns the data:proc getpeak {chan} { global peakif {[info exists peak([set chan [string tolower $chan]])]} {set peak($chan)} elseif {[file readable "peak.$chan.txt"]} {if {[gets [set fid [open "peak.$chan.txt" {RDONLY}]] peak($chan)] &lt; 9} { set peak($chan) [list 0 [clock seconds]] }close $fidset peak($chan)} else {set peak($chan) [list [llength [chanlist $chan -b]] [clock seconds]]}}# Sets peak data to file:proc setpeak {chan curnum unixtime} { global peakset chan [string tolower $chan]puts [set fid [open "peak.$chan.txt" {WRONLY CREAT}]] [set peak($chan) [list $curnum $unixtime]]close $fid}# Provides the !peak public command:bind pub fomn|fomn !peak pub:peakproc pub:peak {nick host hand chan arg} {if {[lsearch -exact [channel info $chan] {+peak}] != -1} {puthelp "PRIVMSG $chan :Channel Peak Record: [lindex [set peak [getpeak $chan]] 0] ([timeago [lindex $peak 1]] ago)."} elseif {[matchattr $hand n|n $chan]} { channel set $chan +peakputhelp "PRIVMSG $chan :Peak is now enabled for this channel.  To disable again, use: .chanset $chan -peak"savechannels}return 1}# Thanks To slann@EFNet &lt;slann@bigfoot.com&gt; for the timeago proc, which is really from seen.tcl by Ernst, which is really by robey.proc timeago {lasttime} {set totalyear [expr [clock seconds] - $lasttime]if {$totalyear &gt;= 31536000} {set yearsfull [expr $totalyear/31536000]set years [expr int($yearsfull)]set yearssub [expr 31536000*$years]set totalday [expr $totalyear - $yearssub]}if {$totalyear &lt; 31536000} {set totalday $totalyearset years 0}if {$totalday &gt;= 86400} {set daysfull [expr $totalday/86400]set days [expr int($daysfull)]set dayssub [expr 86400*$days]set totalhour 0}if {$totalday &lt; 86400} {set totalhour $totaldayset days 0}if {$totalhour &gt;= 3600} {set hoursfull [expr $totalhour/3600]set hours [expr int($hoursfull)]set hourssub [expr 3600*$hours]set totalmin [expr $totalhour - $hourssub]if {$totalhour &gt;= 14400} { set totalmin 0 }}if {$totalhour &lt; 3600} {set totalmin $totalhourset hours 0}if {$totalmin &gt; 60} {set minsfull [expr $totalmin/60]set mins [expr int($minsfull)]set minssub [expr 60*$mins]set secs 0}if {$totalmin &lt; 60} {set secs $totalminset mins 0}if {$years &lt; 1} {set yearstext ""} elseif {$years == 1} {set yearstext "$years year, "} {set yearstext "$years years, "}if {$days &lt; 1} {set daystext ""} elseif {$days == 1} {set daystext "$days day, "} {set daystext "$days days, "}if {$hours &lt; 1} {set hourstext ""} elseif {$hours == 1} {set hourstext "$hours hour, "} {set hourstext "$hours hours, "}if {$mins &lt; 1} {set minstext ""} elseif {$mins == 1} {set minstext "$mins minute"} {set minstext "$mins minutes"}if {$secs &lt; 1} {set secstext ""} elseif {$secs == 1} {set secstext "$secs second"} {set secstext "$secs seconds"}string trimright "$yearstext$daystext$hourstext$minstext$secstext" {, }}putlog "peak1.8.tcl by FireEgl@EFNet &lt;EggTCL@FireEgl.CJB.Net&gt; - Loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Tue Feb 01, 2011 8:34 am</p><hr />
]]></content>
	</entry>
	</feed>
