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

	<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>2008-06-28T22:05:47-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2008-06-28T22:05:47-04:00</updated>

		<published>2008-06-28T22:05:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83792#p83792</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83792#p83792"/>
		<title type="html"><![CDATA[Public alarm.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83792#p83792"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>Have you contacted the creator of the script?</div></blockquote>His website is entirely in russian  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"></div></blockquote>Send an e-mail to <a href="mailto:format_c@mail.ru">format_c@mail.ru</a> (site administrator). I am sure you will get pointed in the right direction.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sat Jun 28, 2008 10:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Torrevado]]></name></author>
		<updated>2008-06-28T14:44:30-04:00</updated>

		<published>2008-06-28T14:44:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83786#p83786</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83786#p83786"/>
		<title type="html"><![CDATA[Public alarm.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83786#p83786"><![CDATA[
<blockquote class="uncited"><div>Have you contacted the creator of the script?</div></blockquote>His website is entirely in russian  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8047">Torrevado</a> — Sat Jun 28, 2008 2:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-06-28T14:23:18-04:00</updated>

		<published>2008-06-28T14:23:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83785#p83785</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83785#p83785"/>
		<title type="html"><![CDATA[Public alarm.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83785#p83785"><![CDATA[
Have you contacted the creator of the script?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Sat Jun 28, 2008 2:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Torrevado]]></name></author>
		<updated>2008-06-28T14:10:48-04:00</updated>

		<published>2008-06-28T14:10:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83784#p83784</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83784#p83784"/>
		<title type="html"><![CDATA[Public alarm.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83784#p83784"><![CDATA[
Hi, <br>I'd like to allow all users (of the chan, not only eggdrop users) to use this reminder script:<br><div class="codebox"><p>Code: </p><pre><code># Version: 1.0 beta# Copyright © 2005 stalker# Look for updates @ www.IRCWorld.ru# Command format !alarm &lt;time&gt; &lt;text&gt; or !remind &lt;time&gt; &lt;text&gt;# After passing  &lt;time&gt; bot will send you &lt;text&gt; in private and in notice# Hear you can set the prefix for commands (reaction on .alarm or !alarm). You may use any symbol:set cmdpr "!"#Max.time of reminding in minutesset alarm(time) "120"#Max. number of remindersset alarm(lim) "20"bind pubm - "* ${cmdpr}help alarm*" :alarm:helpbind msgm - "${cmdpr}alarm*" :alarm:sets:timerbind msgm - "${cmdpr}reminders" :alarm:listbind msgm - "${cmdpr}forget" :alarm:deletebind part - * :alarm:partbind sign - * :alarm:partbind join - * :alarm:joinproc :alarm:help {nick uhost hand chan text} {        global alarm cmdpr        if {![validuser $hand]} { return }        puthelp "privmsg $nick :Commands are writing into bot's private" -next        puthelp "privmsg $nick :\002${cmdpr}alarm \[minutes\] \[text\]\002 - Set after how much \002minutes\002(not more than $alarm(time)) bot will say into your private  \002text\002;"        puthelp "privmsg $nick :\002${cmdpr}forget\002 - Delete reminder;"        if {[matchattr $hand o]} { puthelp "privmsg $nick :\002${cmdpr}reminders\002 - View the list of active reminders." }        return}proc :alarm:sets:timer {nick uhost hand text} {        if {![validuser $hand] || ![handonchan $hand]} { return }        global alarm        set l 0        foreach i [timers] {                if {[string range [lindex $i 1] 0 5] == "altim:"} {                        incr l                }        }        if {$l &gt; $alarm(lim)} {                puthelp "privmsg $nick :\00312Sorry, can not set reminder now, try again later"                return        }        set mins [expr int(abs({[lindex $text 1]}))]        if {![isnumber $mins]} {                puthelp "privmsg $nick :\002Time\002 is not set"                return        }        if {$mins &gt; $alarm(time)} {                 puthelp "privmsg $nick :\00314No...it's a very long time to wait. Max. \002$alarm(time) minutes."                return        }        set notice [lrange $text 2 end]        if {$notice == ""} {                puthelp "privmsg $nick :\002Text\002 must be\002 set"                return        }        if {[regexp -nocase -- \{.*?\ altim:$hand\ (timer.*?)\} [timers] g id]} {                killtimer $id                rename altim:$hand ""        }        setuser $hand XTRA notice $notice        timer $mins [list altim:$hand]        proc altim:$hand { } {                set procname [lindex [info level 0] 0]                set hand [lindex [split $procname ":"] 1]                if {[hand2nick $hand] != ""} {                                putserv "privmsg [hand2nick $hand] :[getuser $hand XTRA notice]"                                 putserv "notice [hand2nick $hand] :[getuser $hand XTRA notice]"                                utimer 5 [list putserv "notice [hand2nick $hand] :[getuser $hand XTRA notice]"]                                utimer 10 [list putserv "notice [hand2nick $hand] :[getuser $hand XTRA notice]"]                        }                rename $procname ""                setuser $hand XTRA notice ""        }        puthelp "privmsg $nick :\00303Ok, I will call you in \002$mins\002 minutes"        return}proc :alarm:list {nick uhost hand text} {if {![matchattr $hand o]} {return }         foreach i [timers] {                if {[string range [lindex $i 1] 0 5] == "altim:"} {                        lappend out "\00310[hand2nick [string range [lindex $i 1] 6 end]]\00314(\00305[lindex $i 0]\00314)"                 }        }        if {[info exists out]} {                if {[llength $out] == 1} { set al "reminder" } elseif {[llength $out] &lt; 5} { set al "reminders" } else {set al "reminders" }                puthelp "privmsg $nick :\00314Total\00304 [llength $out]\00314 $al."                puthelp "privmsg $nick :\00314They were set - [join $out ","]."        } else {                puthelp "privmsg $nick :\00314No active reminders now"        }        return}proc :alarm:delete {nick uhost hand text} {        if {![validuser $hand]} { return }        if {[regexp -nocase -- \{.*?\ altim:$hand\ (timer.*?)\} [timers] g id]} {                killtimer $id                rename altim:$hand ""                puthelp "privmsg $nick :\00314Reminder was deleted"        }        return}         proc :alarm:part {nick uhost hand chan text} {utimer 1 [list :alarm:partoff $hand]}proc :alarm:partoff {hand} {        if {![handonchan $hand]} {                foreach i [timers] {                                if {[string first "altim:$hand" [lindex $i 1]] != -1} {                                utimer 60 "[list :alarm:del [lindex $i 2] $hand]"                        }                }        }}proc :alarm:del {id hand} {        killtimer $id        rename altim:$hand ""        return}proc :alarm:join {nick uhost hand chan} {        foreach i [utimers] {                if {[string match ":alarm:del timer* $hand" "[lindex $i 1]"]} {                                killutimer [lindex $i 2]        }}}putlog "Alarm script by stalker loaded"</code></pre></div>Thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8047">Torrevado</a> — Sat Jun 28, 2008 2:10 pm</p><hr />
]]></content>
	</entry>
	</feed>
