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

	<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-26T22:05:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-12-26T16:16:26-04:00</updated>

		<published>2010-12-26T16:16:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95482#p95482</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95482#p95482"/>
		<title type="html"><![CDATA[Modify tcl by bind willyw]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95482#p95482"><![CDATA[
I have replied to your PM here, that I think was regarding this.<br><br>Part of it, I offered something for you to try.<br><br>Unfortunately, most of it - I was unsure of exactly what it is that you are requesting.<br><br>Maybe it would be better if we kept it here in the forum, and not in PM.  Perhaps some others could help too, not just with the TCL itself,  but with getting the point across clearly.<br>Whatever anyone can offer, will be good.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Dec 26, 2010 4:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[irclove]]></name></author>
		<updated>2010-12-26T22:05:28-04:00</updated>

		<published>2010-12-24T12:08:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95457#p95457</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95457#p95457"/>
		<title type="html"><![CDATA[Modify tcl by bind willyw]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95457#p95457"><![CDATA[
please someone to modify these changes<br>Sorry for my bad English, greetings from peru<br><br>I want to do it for private notice and not by the channel<div class="codebox"><p>Code: </p><pre><code> putserv "privmsg $mainchan :$nick will help in seconds"</code></pre></div><strong class="text-strong">in private msg to &lt;imnick&gt;</strong><blockquote class="uncited"><div>&lt;eggdrop&gt; admin1 will help in secods</div></blockquote>---------------------------------------------------------------------------------<br>and also inform once<div class="codebox"><p>Code: </p><pre><code>       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 "       }    }             </code></pre></div>thus:<br><strong class="text-strong">in private msg bot:</strong><blockquote class="uncited"><div>&lt;imnick&gt; hello I can help<br>&lt;eggdrop&gt; I am a bot if you need help write: !helpme<br>&lt;imnick&gt; dasda<br>&lt;imnick&gt; ghjgh<br>&lt;imnick&gt; asdas</div></blockquote>----------------------------------------------------------------------------------<br><strong class="text-strong">and also that the !helpme either by private</strong><div class="codebox"><p>Code: </p><pre><code>bind pub - "!helpme" do:helpme</code></pre></div>thus:<br>in private msg bot:<blockquote class="uncited"><div>&lt;imnick&gt; asfasd<br>&lt;eggdrop&gt; I am a bot if you need help write: !helpme<br>&lt;imnick&gt; !helpme<br>&lt;eggdrop&gt; Please describe your problem, in a single line<br>&lt;imnick&gt; my problem asdasd</div></blockquote>-----------------------------------------------------------------------------------<br><strong class="text-strong">in the channel: $helpchan</strong><br>if someone already wrote !helper Nick, reply bot:<blockquote class="uncited"><div>&lt;eggdrop&gt; <strong class="text-strong">&lt;imnick&gt;</strong>  has the following problem: my problem asdasd<br>&lt;eggdrop&gt; If you want to help &lt;imnick&gt; write !Helper &lt;imnick&gt;<br>&lt;<strong class="text-strong">admin1</strong>&gt; !helper &lt;imnick&gt;<br>&lt;eggdrop&gt; notifying &lt;imnick&gt;<br>&lt;<strong class="text-strong">admin2</strong>&gt; !helper &lt;imnick&gt;<br>&lt;eggdrop&gt; <strong class="text-strong">admin1 </strong>is helping &lt;imnick&gt;</div></blockquote><br><br>Full code by: willyw<blockquote class="uncited"><div>in chan #123 <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>in chan #help <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>in chan #123 Private msg &lt;andrec&gt;. <br>&lt;bothelper&gt; &lt;@othernick&gt; will help in seconds. </div></blockquote><div class="codebox"><p>Code: </p><pre><code>### begin configuration #### # set main channel here set mainchan "#123" # set help channel here set 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 bot set 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 here bind pub - "!helpme" do:helpme bind msgm - * do:prob bind pub - "!helper" do:helpchanreply set 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 $nick    set replytime $replywindow    utimer $timewindow [list set nick2help 0]    utimer $replywindow [list set replytime 0]   } } proc do:prob {nick uhost handle text} { global nick2help helpchan mainchan    if {![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 replytime    if {![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=11451">irclove</a> — Fri Dec 24, 2010 12:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
