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

	<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-03-04T05:13:19-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2014-03-04T05:13:19-04:00</updated>

		<published>2014-03-04T05:13:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102651#p102651</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102651#p102651"/>
		<title type="html"><![CDATA[long text help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102651#p102651"><![CDATA[
See <em class="text-italics">pubm</em> bind in tcl-commands.doc file.<br><br>Edit: I talked with tdmondo via PM's and helped him out with a piece of code. I'll post it here maybe someone else will find it useful.<div class="codebox"><p>Code: </p><pre><code>dict set responses "hello" "heya %nick, welcome to %chan channel!"dict set responses "beer?" "yeah %nick, hand me a cold one please!"bind pubm * * fetch:responseproc fetch:response {nick uhost hand chan text} {   global responses   set text [split $text]   if {[lsearch -nocase [dict keys $responses] $text] != -1} {      set message [string map [list %chan $chan %nick $nick] [dict get $responses $text]]      puthelp "PRIVMSG $chan :$message"   }}</code></pre></div>In the first line the <em class="text-italics">"hello"</em> is the word it will trigger and the <em class="text-italics">"heya %nick, welcome to %chan channel!"</em> is the answer it will give to that.<br><br>Notice the presence of %nick and %chan that will be replaced with actual nick of the user that triggered the response and the %chan will be replaced with the actual name of the channel.<br><br>Haven't tested anything but he said it's working. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Mar 04, 2014 5:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tdmondo]]></name></author>
		<updated>2014-03-04T04:28:31-04:00</updated>

		<published>2014-03-04T04:28:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102650#p102650</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102650#p102650"/>
		<title type="html"><![CDATA[long text help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102650#p102650"><![CDATA[
hello guys anyone can give me advise about scripting??<br><br>look i`ll explain<br><br>i want my eggdrop bot answer someone which will say hello on main channel<br><div class="codebox"><p>Code: </p><pre><code>bind pub - hello pub:helloproc pub:hello {nick host handle chan text} {  putserv "PRIVMSG $chan :hello $nick"}</code></pre></div>thats working super but..... i want something like this<br><br>i want my eggdrop bot answer someone which will say hello guys on main channel<br><br>for this what script i must to do?? i want my bot response only on hello guys and not only on hello<br><br>i made something this <br><div class="codebox"><p>Code: </p><pre><code>bind pub - hello_guys pub:hello_guysproc pub:hello_guys {nick host handle chan text} {  putserv "PRIVMSG $chan :hello $nick"}</code></pre></div>i type hello baby on main channel but my eggdrop still answering.... now u understood what i mean? i wanna only response on hello guys and not only on word hello<br><br>thanks before<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12345">tdmondo</a> — Tue Mar 04, 2014 4:28 am</p><hr />
]]></content>
	</entry>
	</feed>
