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

	<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>2023-06-10T22:11:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Repdientu]]></name></author>
		<updated>2023-06-10T22:11:33-04:00</updated>

		<published>2023-06-10T22:11:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112000#p112000</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112000#p112000"/>
		<title type="html"><![CDATA[auto join / part channel with random time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112000#p112000"><![CDATA[
i have updated as above but the time of eggdrop join and part is not correct according to random install time. Looking forward to all the helpers<div class="codebox"><p>Code: </p><pre><code># Kênh để Eggdrop tự động tham giaset channelToJoin "#chatvn"# Hàm thực hiện tự động rời khỏi và tham gia kênh khi kết nối thành côngbind join - * ujoinproc ujoin {nick uhost handle chan} {   after 1000 autoPartJoinChannel}# Danh sách các câu danh ngôn# Hàm xử lý tự động rời khỏi và tham gia kênhproc autoPartJoinChannel {} {    set randomJoinTime [expr {int(rand() * 580) + 180}] ;# Thời gian ngẫu nhiên từ 2 đến 5 phút (120 đến 300 giây)    after [expr {$randomJoinTime * 1000}] {        channel remove $::channelToJoinautoJoinChannel}}proc autoJoinChannel {} {set randomPartTime [expr {int(rand() * 580) + 180}] ;# Thời gian ngẫu nhiên từ 2 đến 5 phút (120 đến 300 giây)after [expr {$randomPartTime * 1000}] {channel add $::channelToJoindelaypartchannel    }}proc delaypartchannel {} {set nextRandomTime [expr {int(rand() * 480) + 120}] ;# Thời gian ngẫu nhiên từ 2 đến 8 phút (120 đến 600 giây)after [expr {$nextRandomJoinTime * 1000}] autoPartJoinChannel}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>[09:03] * xavang (xavang@xxx) has joined #ChatVN[09:03] * xavang (xavang@xxx) has left #ChatVN</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10625">Repdientu</a> — Sat Jun 10, 2023 10:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Repdientu]]></name></author>
		<updated>2023-06-09T22:18:16-04:00</updated>

		<published>2023-06-09T22:18:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111994#p111994</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111994#p111994"/>
		<title type="html"><![CDATA[auto join / part channel with random time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111994#p111994"><![CDATA[
thank you, it worked<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10625">Repdientu</a> — Fri Jun 09, 2023 10:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2023-06-09T12:31:41-04:00</updated>

		<published>2023-06-09T12:31:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111993#p111993</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111993#p111993"/>
		<title type="html"><![CDATA[auto join / part channel with random time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111993#p111993"><![CDATA[
A bind must call a procedure, not sure you can make an anonymous one.<br><div class="codebox"><p>Code: </p><pre><code>bind join - * ujoinproc ujoin {nick uhost handle chan} {   after 1000 autoPartJoinChannel }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Jun 09, 2023 12:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Repdientu]]></name></author>
		<updated>2023-06-09T10:49:03-04:00</updated>

		<published>2023-06-09T10:49:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111992#p111992</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111992#p111992"/>
		<title type="html"><![CDATA[auto join / part channel with random time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111992#p111992"><![CDATA[
I wrote this piece of code, but it's not working correctly. I hope you can help me<div class="codebox"><p>Code: </p><pre><code>set channelToJoin "#chatvn"set quoteList {    "Sự thành công không phải là chìa khóa của sự hạnh phúc. Sự hạnh phúc là chìa khóa của sự thành công. Nếu bạn yêu những gì bạn đang làm, bạn sẽ thành công."    "Cách duy nhất để làm việc tốt là yêu những gì bạn đang làm."    "Không có bí mật để thành công. Đó là sự chuẩn bị, công việc chăm chỉ và học hỏi từ thất bại."    ...    # Danh sách câu danh ngôn tiếp theo...}proc autoPartJoinChannel {} {    set randomJoinTime [expr {int(rand() * 180) + 120}] ;    set randomPartTime [expr {int(rand() * 180) + 120}] ;        channel add $::channelToJoin    set afterId [after [expr {$randomJoinTime * 1000}] "channel remove $::channelToJoin"]    after [expr {($randomJoinTime + $randomPartTime) * 1000}] "channel add $::channelToJoin"        set randomQuoteIndex [expr {int(rand() * [llength $::quoteList])}]    set randomQuote [lindex $::quoteList $randomQuoteIndex]    after [expr {int(rand() * ($randomPartTime - $randomJoinTime)) * 1000}] {        putquick "PRIVMSG $::channelToJoin :$randomQuote"    }}bind join - * {    after 1000 autoPartJoinChannel}</code></pre></div><br>in party line<br>[21:40] &lt;Mina&gt; [14:40:17] Tcl error [<br>[21:40] &lt;Mina&gt;     after 1000 autoPartJoinChannel<br><br>and in irc eggdrop not join again<br><br>[21:42] * Mina (<a href="mailto:Mina@vps-880306e4.vps.ovh.ca">Mina@vps-880306e4.vps.ovh.ca</a>) has joined #ChatVN<br>[21:46] * Mina (<a href="mailto:Mina@vps-880306e4.vps.ovh.ca">Mina@vps-880306e4.vps.ovh.ca</a>) has left #ChatVN<br>[21:55] &lt;!Repdientu&gt; .<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10625">Repdientu</a> — Fri Jun 09, 2023 10:49 am</p><hr />
]]></content>
	</entry>
	</feed>
