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

	<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>2013-01-26T18:14:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-01-26T17:01:23-04:00</updated>

		<published>2013-01-26T17:01:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100778#p100778</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100778#p100778"/>
		<title type="html"><![CDATA[New regular user alert]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100778#p100778"><![CDATA[
Well it is the first version maybe it has some bugs maybe it will need some more commands to be added etc <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> thats why is the first version. Just test this (i know i did) and see if it works.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Sat Jan 26, 2013 5:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2013-01-26T17:00:09-04:00</updated>

		<published>2013-01-26T17:00:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100777#p100777</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100777#p100777"/>
		<title type="html"><![CDATA[New regular user alert]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100777#p100777"><![CDATA[
What you mean by first version?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Sat Jan 26, 2013 5:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-01-26T18:14:28-04:00</updated>

		<published>2013-01-26T15:47:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100776#p100776</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100776#p100776"/>
		<title type="html"><![CDATA[New regular user alert]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100776#p100776"><![CDATA[
Informations are saved by $chan,$host<br>if you restart the eggdrop you never loose any informations<br><br>Sorry for my bad english (its not my native language so live with it) <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>set announce(time) "1"    ;#in hours<br><br>- So if you set it to '1' it will announce (only once for each user) the user that spent atleast that time on the channel<br><div class="codebox"><p>Code: </p><pre><code>#### ++++ Author: MadaliN &lt;madalinmen28@yahoo.com&gt;### ++++ TCL Name: Timespent## ++++# Commands:#   !timespent activate(local or global owner)#   !timespent deactivate(local or global owner)#   !timespent &lt;$nickname&gt; &lt;$chan&gt;(local or global owner)###### +++ Created: 1/26/2013####bind TIME - * egghelp:timespentbind PUB - !timespent timespent:pubset announce(time) "1" ;#setting is in hourssetudef flag timespentproc egghelp:timespent {min hour day month year} {global timespent announce noaset list ""foreach chan [channels] {if {[channel get $chan timespent]} {foreach u [chanlist $chan] {set host [lindex [split [getchanhost $u $chan] @] 1]if {![info exists timespent($chan,$host)]} {set timespent($chan,$host) "60 $u"timespent:save} else {set timespent($chan,$host) "[expr [lindex [split $timespent($chan,$host)] 0] + 60] $u"timespent:saveif {$announce(time) != ""} {if {[lindex [split $timespent($chan,$host)] 0] &gt; [expr $announce(time) * 3600]} {if {![info exists noa($chan,$host)]} {set noa($chan,$host) "[unixtime]"timespent:savelappend list "\00303[lindex [split $timespent($chan,$host)] 1]\003"}}}}}if {$list != ""} {putserv "PRIVMSG $chan :Users who spent more than \00312$announce(time)\003 hour    on \00304$chan\003 are: [join $list "\002,\002 "]"}}}}proc timespent:pub {nick uhost hand chan arg} {global timespentset host [lindex [split [getchanhost [lindex [split $arg] 0] $chan] @] 1]switch -exact -- [lindex [split $arg] 0] {activate {if {[matchattr $hand n] || [matchattr $hand |N $chan]} {channel set $chan +timespentputserv "PRIVMSG $chan :\002$nick\002 - TIMESPENT script \00312activated\003 succesfully"}}deactivate {if {[matchattr $hand n] || [matchattr $hand |N $chan]} {channel set $chan -timespentputserv "PRIVMSG $chan :\002$nick\002 - TIMESPENT script \00304deactivated\003 succesfully"}}default {if {[matchattr $hand n] || [matchattr $hand |N $chan]} {if {[string match -nocase "#*" [lindex [split $arg] 1]]} {if {![info exists timespent([lindex [split $arg] 1],$host)]} {putserv "PRIVMSG $chan :\002$nick\002 - Nickname \00303[lindex [split $arg] 0]\003 has no info on \00312[lindex [split $arg] 1]"} else {putserv "PRIVMSG $chan :\002$nick\002 - Nickname \00303[lindex [split $arg] 0]\003 idled on \00312[lindex [split $arg] 1]\003 for \00303[duration [lindex [split $timespent([lindex [split $arg] 1],$host)] 0]]"}} else {if {![info exists timespent($chan,$host)]} {putserv "PRIVMSG $chan :\002$nick\002 - Nickname \00303[lindex [split $arg] 0]\003 has no info on this channel"} else {putserv "PRIVMSG $chan :\002$nick\002 - Nickname \00303[lindex [split $arg] 0]\003 idled on \00312$chan\003 for \00303[duration [lindex [split $timespent($chan,$host)] 0]]"}}}}}}proc timespent:save {} {global timespentset ofile [open timespent w]puts $ofile "array set timespent [list [array get timespent]]"close $ofile}catch {source timespent}putlog "+++ Succesfully loaded: \00312Timpespent TCL Script"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Sat Jan 26, 2013 3:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2013-01-23T07:26:31-04:00</updated>

		<published>2013-01-23T07:26:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100731#p100731</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100731#p100731"/>
		<title type="html"><![CDATA[New regular user alert]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100731#p100731"><![CDATA[
hi - i am looking for a script that for each user it will count the total amount of time he was in that certain channel, it can also be viewed with<br>!timespent &lt;nickname&gt; &lt;#channel&gt;<br><br>Every time a user has spent more than a certain amount of time in a channel (set by the user), the script will send a message to that channel stating:<br><br>*Nickname* has spent over 10 hours (the certain amount of time set by the user) in this channel and is now considered a regular user and is added to the db<br><br>the user is added to the db.<br><br>the script will never alert about that user again.<br><br>an initial database of regular users can be added manually by the user<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Wed Jan 23, 2013 7:26 am</p><hr />
]]></content>
	</entry>
	</feed>
