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

	<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>2010-12-09T23:00:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[irclove]]></name></author>
		<updated>2010-12-09T23:00:59-04:00</updated>

		<published>2010-12-09T23:00:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95299#p95299</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95299#p95299"/>
		<title type="html"><![CDATA[Re: bot helper]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95299#p95299"><![CDATA[
thank you thank you very much friend<br>is there any way of knowing if $ nick already helped<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11451">irclove</a> — Thu Dec 09, 2010 11:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-12-09T21:54:30-04:00</updated>

		<published>2010-12-09T21:54:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95298#p95298</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95298#p95298"/>
		<title type="html"><![CDATA[Re: bot helper]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95298#p95298"><![CDATA[
Find this:<blockquote class="uncited"><div># set main channel here<br>set mainchan "#123"<br><br># set help channel here<br>set helpchan "#help" </div></blockquote>in the below, and edit to reflect your actual channel names.<br>Edit only those two things.<br><br>Then load the script, and test it.<br>(If you need help with loading scripts, see: <a href="http://www.egghelp.org/enhance.htm#tclscripts" class="postlink">http://www.egghelp.org/enhance.htm#tclscripts</a> )<br><br><br>I tested, and compared to your request, it seemed to do what you asked.<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><div class="codebox"><p>Code: </p><pre><code>### begin configuration ##### set main channel hereset mainchan "#123"# set help channel hereset helpchan "#help"# set time window here ( in seconds )# this is the amount of time that a user has, after sending !helpme, to then reply to the /msg sent to user by the botset timewindow "45"# set repy window time here ( in seconds )# this is the amount of time that a helper has in which to send !helper &lt;nick&gt;set replywindow "120"#### end configuration ######  script starts herebind pub - "!helpme" do:helpmebind msgm - * do:probbind pub - "!helper" do:helpchanreplyset nick2help "0"set replytime "0"proc do:helpme {nick uhost handle chan text} {global nick2help timewindow mainchan replywindow replytime helpchan  if {![botonchan $helpchan]} {putserv "privmsg $chan : Sorry, help function is temporarily Off"return 0     }  if {"$chan"=="$mainchan"} {putserv "privmsg $nick :Please describe your problem, in a single line:"set nick2help $nickset replytime $replywindowutimer $timewindow [list set nick2help 0]utimer $replywindow [list set replytime 0]  }}proc do:prob {nick uhost handle text} {global nick2help helpchan mainchanif {![botonchan $helpchan]} {putserv "privmsg $nick :Sorry, help function is temporarily Off"return 0         }if {"$nick"=="$nick2help"} {putserv "privmsg $helpchan :$nick has the following problem: $text "putserv "privmsg $helpchan : If you want to help $nick write !Helper $nick"putserv "privmsg $nick :Your text describing your problem has been sent"putserv "privmsg $nick :Please stand by a few minutes. If help is available now, you will be notified shortly."return 0         } else {putserv "privmsg $nick :To enable a short window of time for you to send help requests via /msg to the bot, you must first send   !helpme       in $mainchan "   }}proc do:helpchanreply {nick uhost handle chan text} {global helpchan mainchan nick2help replytimeif {![botonchan $mainchan]} {putserv "privmsg $chan :Sorry, bot is not in $mainchan"return       }if {"$replytime"=="0"} {putserv "privmsg $chan :Sorry, no one has recently asked for help"return   }if {"$chan"=="$helpchan"} { putserv "privmsg $chan :notifying $text"putserv "privmsg $mainchan :$nick will help in seconds"  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Dec 09, 2010 9:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[irclove]]></name></author>
		<updated>2010-12-09T15:29:51-04:00</updated>

		<published>2010-12-09T15:29:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95297#p95297</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95297#p95297"/>
		<title type="html"><![CDATA[bot helper]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95297#p95297"><![CDATA[
Could anyone be nice. please excuse my English: (<br>I need to do this my bot:<br><blockquote class="uncited"><div><strong class="text-strong">in chan #123</strong><br>andrec has joined #123<br>&lt;andrec&gt; !helpme<br>// in private msg //<br>&lt;bothelper&gt; Please describe your problem, in a single line:<br>&lt;andrec&gt; my pc has virus.<br><br><strong class="text-strong">in chan #help</strong><br>&lt;bothelper&gt; &lt;andrec&gt; has the following problem: my pc has virus.<br>&lt;bothelper&gt; If you want to help &lt;andrec&gt; write !Helper &lt;andrec&gt;<br>&lt;@othernick&gt; !helper andrec<br>&lt;bothelper&gt; notifying &lt;andrec&gt;...<br><br><strong class="text-strong"> in chan #123 Private msg &lt;andrec&gt;.</strong><br>&lt;bothelper&gt; &lt;@othernick&gt; will help in seconds.</div></blockquote>[/b]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11451">irclove</a> — Thu Dec 09, 2010 3:29 pm</p><hr />
]]></content>
	</entry>
	</feed>
