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

	<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>2014-12-14T14:36:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2014-12-14T14:36:45-04:00</updated>

		<published>2014-12-14T14:36:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103364#p103364</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103364#p103364"/>
		<title type="html"><![CDATA[Re: automsg chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103364#p103364"><![CDATA[
thanks SpiKe^^ for the help friend works of marvel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Sun Dec 14, 2014 2:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2014-12-14T14:10:01-04:00</updated>

		<published>2014-12-14T14:10:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103363#p103363</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103363#p103363"/>
		<title type="html"><![CDATA[Please try this]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103363#p103363"><![CDATA[
Please try this, it does not include the [timers] command.<br><div class="codebox"><p>Code: </p><pre><code>############## Random Auto Talk tcl ver.0.1 ################ Set the next line as the channels you want to run in:  #### For all channels, just type "*"                        #### For only specific channels, type "#channel1 #channel2" ##set speaks_chans "#beni #beni2 #pando #lapaz #cremacamba"# Set the number of minutes between sending random lines: ##set speaks_time "8"## Set the text lines to send as Random Auto Talks: ####  -&gt;   %c will be replaced by the channel name    ##set speaks_msg {Hi chat hi to all :) hi %cThat so beautiful day, and that day is today.welcome to channel :DRemember that the mutual respect is always indispensable in the channel}############## !! End Of Settings !! ##############set speaks_msg [split [string trim $speaks_msg] "\n"]if {![info exists speaks_running]} {  set speaks_running 1  timer $speaks_time [list time:speaks]}proc time:speaks {} {  global speaks_chans speaks_msg  if {$speaks_chans eq "*"} {    set chanlist [channels]  } else {    set chanlist [split [string trim $speaks_chans]]  }  foreach {chan} $chanlist {    set randmsg [lindex $speaks_msg [rand [llength $speaks_msg]]]    puthelp "PRIVMSG $chan :[string map [list %c $chan] $randmsg]"   }  timer $::speaks_time [list time:speaks]}putlog "Random Auto Talk tcl ver.0.1 loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Dec 14, 2014 2:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2014-12-10T23:07:15-04:00</updated>

		<published>2014-12-10T23:07:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103359#p103359</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103359#p103359"/>
		<title type="html"><![CDATA[automsg chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103359#p103359"><![CDATA[
I see you fixed the above script some, adding the missing settings.<br>Since you say the script works for some hours before giving those strange timer errors, <br>I am fairly sure you are being trashed by the dreaded Eggdrop 1.6.21 timers/utimers bug.<br><br>The error starts when this line if code in proc time_speaks executes...<div class="codebox"><p>Code: </p><pre><code>if {![string match "*time_speaks*" [timers]]} { </code></pre></div>... and the badly flawed Eggdrop refuses to give an accurate list of running timers!<br><br>Try running your script on the 1.6.20 Eggdrop, which is the last good version in the 1.6 line, and does not come packaged with the bug.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Wed Dec 10, 2014 11:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2014-12-01T21:47:58-04:00</updated>

		<published>2014-12-01T21:47:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103345#p103345</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103345#p103345"/>
		<title type="html"><![CDATA[automsg chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103345#p103345"><![CDATA[
First off, you have no settings for channel or time.<br>Not sure why it's working at all:)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Mon Dec 01, 2014 9:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2014-12-10T14:54:47-04:00</updated>

		<published>2014-12-01T20:23:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103344#p103344</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103344#p103344"/>
		<title type="html"><![CDATA[automsg chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103344#p103344"><![CDATA[
good to all <br>this tcl sends msg to several channels in form random, the detail of error of the tcl is that spent the two hour provokes a mistake of time of mailing<br>example in partyline:<br><br>&lt;(Kantuta&gt; [10:31:01] Tcl error in script for 'timer6196':<br>&lt;(Kantuta&gt; [10:31:01] invalid command name ""<br><br>and once this mistake goes out the tcl stops working and does not throw any more msg phrases.<br>please someone who could help me.<br><div class="codebox"><p>Code: </p><pre><code>####### tcl ################# SPEAK ###  set spoken.v "Auto talk"## -=[ SPEAK ]=-  Set the next line as the channels you want to run in ### for all channel just type "*" if only for 1 channel or 2 chnnel just ### type "#channel1 #channel2"#set speaks_chans "#beni #beni2 #pando #lapaz #cremacamba"# Set you want in XXX minute you bot always talk on minute #set speaks_time "8"# Set the next lines as the random speaks msgs you want to say #set speaks_msg {"hi chat hi to all :) hi $chan""that so beautiful day, and that day is today.""welcome to channel :D""remember that the mutual respect is always indispensable in the channel"}if {![string match "*time_speaks*" [timers]]} {  timer $speaks_time time_speaks}proc time_speaks {} {  global speaks_msg speaks_chans speaks_time  if {$speaks_chans == "*"} {    set speaks_temp [channels]  } else {    set speaks_temp $speaks_chans  }  foreach chan $speaks_temp {    set speaks_rmsg [subst [lindex $speaks_msg [rand [llength $speaks_msg]]]]    foreach msgline [split $speaks_rmsg \n] {      putserv "PRIVMSG $chan :$msgline"     }  }  if {![string match "*time_speaks*" [timers]]} {    timer $speaks_time time_speaks  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Mon Dec 01, 2014 8:23 pm</p><hr />
]]></content>
	</entry>
	</feed>
