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

	<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>2013-11-22T10:37:21-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sane]]></name></author>
		<updated>2013-11-22T10:37:21-04:00</updated>

		<published>2013-11-22T10:37:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102230#p102230</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102230#p102230"/>
		<title type="html"><![CDATA[Re: advertise tcl?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102230#p102230"><![CDATA[
The following script below is just like any other TCL script with the exception that you would add the advertisements you want the bot to say in an 'advertisements'.txt file (you need to create it) which you would put in the same location as the 'advertisement'.tcl file; which is the 'scripts' folder. To change the waiting time between each advertisement line you need to edit the 'utimer' (in seconds). So lets say you want your bot to go through and post the advertisements to the target channel every hour you'd need change the 'utimer' to: 'utimer 3600'. And you would type '!adverts on/off' in the target channel to turn the script on or off. Replacing '#CHANNEL' with yours.<br><br>advertisements.tcl<div class="codebox"><p>Code: </p><pre><code>bind pub - !adverts inputadverts       proc inputadverts { nick host hand chan text } {        global advertsonoff id        if { $text == "on" } {            set advertsonoff 1            adverts        }        if { $text == "off" } {            clearqueue all            set advertsonoff 0                }}    proc adverts {  } {        global advertsonoff        set advertstxt "scripts/advertisements.txt"        set advertstxt [open $advertstxt r]        set advertsread [split [read $advertstxt] \n]        close $advertstxt        putquick "PRIVMSG #CHANNEL :[lindex $advertsread [rand [llength $advertsread]]]"        if {$advertsonoff == 1} {            utimer 3600 adverts        }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12294">Sane</a> — Fri Nov 22, 2013 10:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Smartiees]]></name></author>
		<updated>2012-05-20T08:12:27-04:00</updated>

		<published>2012-05-20T08:12:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99436#p99436</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99436#p99436"/>
		<title type="html"><![CDATA[advertise tcl?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99436#p99436"><![CDATA[
is there any advertise tcl like this if we add a advertise with long one txt length then bot convert that long message length into two msgs for example like this?<div class="codebox"><p>Code: </p><pre><code>&lt;Bot&gt;first really long line&lt;bot&gt;second really long line</code></pre></div>like this? at the same time bot complete msg into two line??? <br>is there anyone have that type of code or script or anyone can make?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9550">Smartiees</a> — Sun May 20, 2012 8:12 am</p><hr />
]]></content>
	</entry>
	</feed>
