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

	<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>2006-03-07T16:25:22-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2006-03-07T16:25:22-04:00</updated>

		<published>2006-03-07T16:25:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60932#p60932</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60932#p60932"/>
		<title type="html"><![CDATA[help with switch commmand]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60932#p60932"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>switch $arg {   1-2 {set str "one or two"}   3-4 {set str "three or for"}   5 {set str "five"}}puthelp "privmsg $nick :$str" </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Mar 07, 2006 4:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-03-06T23:03:43-04:00</updated>

		<published>2006-03-06T23:03:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60916#p60916</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60916#p60916"/>
		<title type="html"><![CDATA[help with switch commmand]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60916#p60916"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>switch $arg {   1 {set str "one"}   2 {set str "two"}   3 {set str "three"}}puthelp "privmsg $nick :$str"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Mar 06, 2006 11:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ghostscript]]></name></author>
		<updated>2006-03-06T22:32:11-04:00</updated>

		<published>2006-03-06T22:32:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60914#p60914</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60914#p60914"/>
		<title type="html"><![CDATA[help with switch commmand]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60914#p60914"><![CDATA[
Hi guys, I am running eggdrop 1.6.17; I am trying to make my bot respond to comments made in private msg between the bot and user. We are having trouble getting the bot to respond dynamically to user input. Here is a sample of my code; any suggestions would be greatly appreciated.<div class="codebox"><p>Code: </p><pre><code>bind pub - !takethis pub_takethisbind msg - !question pub_questionproc pub_takethis {nick mask hand channel args} {        set args_list [split $args "."]        set tnick [lindex $args_list 0]        set tcase [lindex $args_list 1]        set tchannel [lindex $args_list 2]        putquick "PRIVMSG #bot_city :$tchannel"        putquick "PRIVMSG $tchannel :!take"        putquick "PRIVMSG #bot_city :!taken $tcase.$tchannel"putquick "PRIVMSG $tnick :Hello there\! My name is AgentBot. Give me a few moments to open and read over the case notes. I'll be right with you."      }proc pub_question {nick mask hand channel args} {putquick "PRIVMSG #bot_city :$nick it Worked!!"switch {$arg} {1 putquick { "PRIVMSG $nick :So this is a video issue." }2 putquick { "PRIVMSG $nick :so this is an audio issue." }3 putquick { "PRIVMSG $nick :so this is a startup issue." }default putquick { "PRIVMSG $nick :It could be anything." }    }       }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7352">ghostscript</a> — Mon Mar 06, 2006 10:32 pm</p><hr />
]]></content>
	</entry>
	</feed>
