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

	<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-01-16T09:52:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2014-01-16T09:52:09-04:00</updated>

		<published>2014-01-16T09:52:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102507#p102507</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102507#p102507"/>
		<title type="html"><![CDATA[simple timed advertise script with trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102507#p102507"><![CDATA[
<blockquote class="uncited"><div>I was having a problem with the trigger<br><br>Changed it to bind pub - !notify pub_advert and it works.</div></blockquote>That would do it.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Then, the bind would trigger for anybody.<br><blockquote class="uncited"><div>*edit <br>went back and changed it to <br><br>bind pub o|o !notify pub_advert and now it works from bot userfile.</div></blockquote>That makes it such that the bind can trigger if the user has either the +o global flag or the +o channel flag for the current channel.<br><br>Whatever it takes...  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>I'm glad you got it working, and I hope that it helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Jan 16, 2014 9:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2014-01-16T09:43:58-04:00</updated>

		<published>2014-01-16T09:43:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102506#p102506</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102506#p102506"/>
		<title type="html"><![CDATA[simple timed advertise script with trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102506#p102506"><![CDATA[
<blockquote class="uncited"><div>bot sees me as owner and i even added the +o flag to be sure. </div></blockquote>As owner, you probably (should have) already had the global +o flag.<br><blockquote class="uncited"><div>added the flag with .chattr freelance +o... my global flags are +hjlmnoptx</div></blockquote>When I tested, my flags were :   jlmnoptxMT<br>(ignore the MT flags, they are for other scripts)<br><blockquote class="uncited"><div>I do !notify test 5  - nothing<br>!notify list - nothing<br>!notify off - nothing</div></blockquote>Not sure as to why.   .... did you .rehash? ...  was the script even loaded?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Jan 16, 2014 9:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[freelance]]></name></author>
		<updated>2014-01-16T01:25:34-04:00</updated>

		<published>2014-01-16T01:25:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102502#p102502</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102502#p102502"/>
		<title type="html"><![CDATA[simple timed advertise script with trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102502#p102502"><![CDATA[
I was having a problem with the trigger<br><br>Changed it to bind pub - !notify pub_advert and it works.<br><br><br>*edit <br>went back and changed it to <br><br>bind pub o|o !notify pub_advert and now it works from bot userfile.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12320">freelance</a> — Thu Jan 16, 2014 1:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[freelance]]></name></author>
		<updated>2014-01-16T00:42:55-04:00</updated>

		<published>2014-01-16T00:42:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102501#p102501</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102501#p102501"/>
		<title type="html"><![CDATA[simple timed advertise script with trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102501#p102501"><![CDATA[
bot sees me as owner and i even added the +o flag to be sure. added the flag with .chattr freelance +o... my global flags are +hjlmnoptx<br><br>I do !notify test 5  - nothing<br>!notify list - nothing<br>!notify off - nothing<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12320">freelance</a> — Thu Jan 16, 2014 12:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2014-01-16T00:24:47-04:00</updated>

		<published>2014-01-16T00:24:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102500#p102500</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102500#p102500"/>
		<title type="html"><![CDATA[simple timed advertise script with trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102500#p102500"><![CDATA[
<blockquote class="uncited"><div>I put this in just as it was written but I can't get it to trigger when I do !notify.</div></blockquote><blockquote class="uncited"><div>As it is above, bot will only respond to the !notify command when it is from a user that has +o in the bot's user list. </div></blockquote>Do you have +o in the bot's user list?<br>Does the bot recognize you?<br><br>(If you don't know how to check these things, just say so and we will cover it before you try to answer)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Jan 16, 2014 12:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[freelance]]></name></author>
		<updated>2014-01-16T00:02:59-04:00</updated>

		<published>2014-01-16T00:02:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102499#p102499</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102499#p102499"/>
		<title type="html"><![CDATA[simple timed advertise script with trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102499#p102499"><![CDATA[
I put this in just as it was written but I can't get it to trigger when I do !notify.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12320">freelance</a> — Thu Jan 16, 2014 12:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2014-01-15T22:55:40-04:00</updated>

		<published>2014-01-15T22:55:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102498#p102498</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102498#p102498"/>
		<title type="html"><![CDATA[Re: simple timed advertise script with trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102498#p102498"><![CDATA[
Experiment with this:<div class="codebox"><p>Code: </p><pre><code># January 15, 2014# http://forum.egghelp.org/viewtopic.php?t=19599############## Usage:# !notify &lt;message&gt; &lt;number&gt;# !notify off# !notify list##############bind pub o "!notify" pub_advertproc pub_advert {nick uhost handle chan text} {global botnickif {![llength [split $text]] } {putserv "privmsg $chan :Syntax: !notify &lt;message&gt; &lt;number&gt; or !notify off or !notify list"return 0}if {[lindex [split $text] 0] == "off" &amp;&amp; [llength [split $text]] == 1} {if {![llength [timers]]} {putserv "notice $nick :Sorry $nick, no matching timers found to kill"            return 0}        foreach t_el [timers] {if {[lindex $t_el 1 1] == $chan &amp;&amp; [lindex $t_el 1 0] == "do_chan_announce"} {killtimer [lindex $t_el 2]                putserv "notice $nick :killed timer id = [lindex $t_el 2]"}}        return 0}    if {[lindex [split $text] 0] == "list" &amp;&amp; [llength [split $text]] == 1} {if {![llength [timers]]} {putserv "notice $nick :Sorry $nick, no running timers for notify found"            return 0}        foreach t_el [timers] {putserv "notice $nick :$t_el"}return 0}set timer_min [lindex [split $text] end]if {![string is integer $timer_min]} {putserv "privmsg $chan :Sorry $nick, \"$timer_min\"  is not a valid number for timer minutes."putserv "privmsg $chan :Syntax: !notify &lt;message&gt; &lt;number&gt;"return 0}set message [lrange [split $text] 0 end-1]timer $timer_min [list do_chan_announce $chan $timer_min $message]putserv "notice $nick :Timer is set. $botnick will announce in $chan \"$message\" every $timer_min minutes."}proc do_chan_announce {chan timer_min message} {putserv "privmsg $chan :$message"timer $timer_min [list do_chan_announce $chan $timer_min $message]}## References for you:## http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html## http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm</code></pre></div>As it is above, bot will only respond to the !notify command when it is from a user that has +o in the bot's user list.<br>If the user is a chan op or not, in the channel is not relevant.<br><br>I hope this helps.<br><br>p.s. Tested briefly.  It worked, and seemed to do what you requested.  I hope nothing was lost in copy-n-paste to here.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Wed Jan 15, 2014 10:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[freelance]]></name></author>
		<updated>2014-01-15T05:43:44-04:00</updated>

		<published>2014-01-15T05:43:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102492#p102492</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102492#p102492"/>
		<title type="html"><![CDATA[simple timed advertise script with trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102492#p102492"><![CDATA[
I was looking for an advertise script where a user can set the advertise message via a trigger and also have the timer set via the same trigger. How hard would it be to write a simple program to do the following. <br><br><br>&lt;op&gt; !notify &lt;message&gt; &lt;timer&gt; (time bind to time user used trigger, not to server clock.)<br><br><br>Example<br>12:55&lt;op&gt; !notify Forum is running slow, admins are working on the issue. 5 minutes<br>1:00&lt;bot&gt; Forum is running slow, admins are working on the issue<br>1:05&lt;bot&gt; forum is running slow, admins are working on the issue<br>1:10&lt;bot&gt; forum is running slow, admins are working on the issue<br>1:11&lt;op&gt;!notify off<br><br><br>Oh and it would need to be only able to be activated by an op.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12320">freelance</a> — Wed Jan 15, 2014 5:43 am</p><hr />
]]></content>
	</entry>
	</feed>
