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

	<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>2012-12-23T23:14:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[[_-S1L3NC3-_]]]></name></author>
		<updated>2012-12-23T23:14:25-04:00</updated>

		<published>2012-12-23T23:14:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100493#p100493</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100493#p100493"/>
		<title type="html"><![CDATA[What I Wanted]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100493#p100493"><![CDATA[
Yup It works as expected thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12164">[_-S1L3NC3-_]</a> — Sun Dec 23, 2012 11:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-12-23T22:49:15-04:00</updated>

		<published>2012-12-23T22:49:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100492#p100492</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100492#p100492"/>
		<title type="html"><![CDATA[(Custom Triggers Script)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100492#p100492"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># leave this empty for all channels the bot is on# or set the channel(s) for the script to run on# Example:  set quitChans {#yourchannel}# Example:  set quitChans {#chan #chan2 #chan3}set quitChans {}# set the  trigger|reply|reply2|reply3|morereplies  text here. ## put each different trigger on its own line.# each trigger can have as many replies as you want.set quitText {*Spark Out,Roger?*|Confirmed, Catch Ya Later.|Message Recieved.|Until Next Time.} ;# end of quitText ########### END SETTINGS ##########bind sign - * quit:sayset quitChans [split [string tolower [string trim $quitChans]]]set quitText [split [string trim $quitText] "\n"]proc quit:say {nk uh hn ch rsn} {  set ch [string tolower $ch]  if {$::quitChans ne "" &amp;&amp; [lsearch -exact $::quitChans $ch]=="-1"} { return }  if {[string equal -nocase $::botnick $nk] || $rsn eq ""} { return }  foreach item $::quitText {  set item [split $item |]    if {[string match -nocase [string trim [lindex $item 0]] $rsn]} {      set reply [lrange $item 1 end]      puthelp "PRIVMSG $ch :[lindex $reply [rand [llength $reply]]]"  ;  break    }  }  return}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Dec 23, 2012 10:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[[_-S1L3NC3-_]]]></name></author>
		<updated>2012-12-23T22:24:35-04:00</updated>

		<published>2012-12-23T22:24:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100491#p100491</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100491#p100491"/>
		<title type="html"><![CDATA[Another Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100491#p100491"><![CDATA[
Great It works, but can you add a randomized option so it wont respond with the same output? EX -   # set the trigger|reply text here. # <br>set quitText *Spark Out,Roger?*|Acknowledged, Echo Out. <br>*Quit: Spark Out,Roger?*|Confirmed, Catch Ya Later.  <br>*Quit: Spark Out,Roger?*|Message Recieved| Until Next Time<br>} <br>  So It one of those are randomly selected once at a time<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12164">[_-S1L3NC3-_]</a> — Sun Dec 23, 2012 10:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-12-23T20:15:13-04:00</updated>

		<published>2012-12-23T20:15:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100488#p100488</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100488#p100488"/>
		<title type="html"><![CDATA[(Custom Triggers Script)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100488#p100488"><![CDATA[
Try this and see if it's what yer lookin for:)<div class="codebox"><p>Code: </p><pre><code># leave this empty for all channels the bot is on# or set the channel(s) for the script to run on# Example:  set quitChans {#yourchannel}# Example:  set quitChans {#chan #chan2 #chan3}set quitChans {}# set the trigger|reply text here. #set quitText {*Read error*|Ouch! That hurts.*Bye*|See you later.}########## END SETTINGS ##########bind sign - * quit:sayset quitChans [split [string tolower [string trim $quitChans]]]set quitText [split [string trim $quitText] "\n"]proc quit:say {nk uh hn ch rsn} {  set ch [string tolower $ch]  if {$::quitChans ne "" &amp;&amp; [lsearch -exact $::quitChans $ch]=="-1"} { return }  if {[string equal -nocase $::botnick $nk] || $rsn eq ""} { return }  foreach item $::quitText {  set item [split $item |]    if {[string match -nocase [lindex $item 0] $rsn]} {      puthelp "PRIVMSG $ch :[lindex $item 1]"  ;  break    }  }  return}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Dec 23, 2012 8:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[[_-S1L3NC3-_]]]></name></author>
		<updated>2012-12-23T18:49:50-04:00</updated>

		<published>2012-12-23T18:49:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100486#p100486</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100486#p100486"/>
		<title type="html"><![CDATA[(Custom Triggers Script)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100486#p100486"><![CDATA[
<span style="color:darkred"></span> <strong class="text-strong">Hey Guys It's Me S1L3NC3</strong> Im wondering if someone can make or help me make a custom trigger's script. By custom triggers I mean you program to set a value the bot responds, only to that value and you edit the output in which the bot responds with --- EX  USER : user has quit) The Bot : See Ya Later Come Back! - - - -    As you can see the user has quit the server the bot identifies that message it acknowledges that it's in the word list to " look for " and responds with an edited response in this case "See Ya Later Come Back!"       <strong class="text-strong">So in other words i want a script that tell my eggdrop to look for a quit, when eggdrop see's that quit it sets a custom response I can edit          </strong><br>                                  <span style="text-decoration:underline">------ Thanks [_-S1L3NC3-0F-T4UTH-_] On FreeNode Eggdrops Help Channel</span><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12164">[_-S1L3NC3-_]</a> — Sun Dec 23, 2012 6:49 pm</p><hr />
]]></content>
	</entry>
	</feed>
