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

	<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>2018-07-24T02:33:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2018-07-24T02:33:57-04:00</updated>

		<published>2018-07-24T02:33:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106958#p106958</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106958#p106958"/>
		<title type="html"><![CDATA[Random part messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106958#p106958"><![CDATA[
I know this is a bit late..<div class="codebox"><p>Code: </p><pre><code>set partMessages {"message 1""message 2""message 3""message 4""message 5""message 6""message 7""message 8""message 9""message 10"}bind part - * part:messageproc part:message {nick uhost hand chan msg} {if {[isbotnick $nick]} returnglobal partMessagesset no [expr [rand [llength $partMessages]] - 1]set message [string map [list %nick $nick %chan $chan] [lindex $partMessages $no]]puthelp "PRIVMSG $nick :$message"}</code></pre></div>in your messages you can use %nick and %chan that will get replaced with actual values, so you could get something like "Thanks for visiting %chan channel %nick. Have a nice day!" to be turned into "Thanks for visiting #friends channel John. Have a nice day!"<br><br>Keep in mind that this works for all channels, so if you want to have it active just for a few before:<div class="codebox"><p>Code: </p><pre><code>if {[isbotnick $nick]} return</code></pre></div>add:<div class="codebox"><p>Code: </p><pre><code>if {![channel get $chan partMsg]} return</code></pre></div>and before:<div class="codebox"><p>Code: </p><pre><code>bind part - * part:message</code></pre></div>add:<div class="codebox"><p>Code: </p><pre><code>setudef flag partMsg</code></pre></div>Restart the bot and then all you have to do is get on Telnet/DCC Chat with the bot and <em class="text-italics">.chanset #channel +partMsg</em> where #channel is the actual name of the channel you want this active. Replace #channel with another to activate it there too.<br><br>Honestly I would implement user's <a href="http://forum.egghelp.org/viewtopic.php?t=9009#45537" class="postlink">throttled</a> function to prevent getting the bot flood itself off the network. <a href="http://forum.egghelp.org/viewtopic.php?p=103446#103446" class="postlink">Here's</a> and older post for another function where I used the <em class="text-italics">throttled</em> function.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jul 24, 2018 2:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MrBeta]]></name></author>
		<updated>2018-07-08T11:14:03-04:00</updated>

		<published>2018-07-08T11:14:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106926#p106926</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106926#p106926"/>
		<title type="html"><![CDATA[Random part messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106926#p106926"><![CDATA[
Yes, I found a French TCL for info and messages on part<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12321">MrBeta</a> — Sun Jul 08, 2018 11:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2018-07-07T15:35:57-04:00</updated>

		<published>2018-07-07T15:35:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106924#p106924</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106924#p106924"/>
		<title type="html"><![CDATA[Random part messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106924#p106924"><![CDATA[
check out <a href="https://tclarchive.org/search.php?Greet" class="postlink">https://tclarchive.org/search.php?Greet</a><br><br>ive seen some there for the greet on part as well<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Jul 07, 2018 3:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MrBeta]]></name></author>
		<updated>2018-07-06T05:00:28-04:00</updated>

		<published>2018-07-06T05:00:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106923#p106923</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106923#p106923"/>
		<title type="html"><![CDATA[Random part messages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106923#p106923"><![CDATA[
Hello,<br>I'm looking for a script that sends random messages to each channel part, I need at least 10 different messages to send to users (not together, of course) when they leave the room.<br>The ones I found allow only one default message<br><br>thx  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12321">MrBeta</a> — Fri Jul 06, 2018 5:00 am</p><hr />
]]></content>
	</entry>
	</feed>
