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

	<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-08-08T09:40:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Fraud]]></name></author>
		<updated>2013-08-08T09:40:58-04:00</updated>

		<published>2013-08-08T09:40:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101968#p101968</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101968#p101968"/>
		<title type="html"><![CDATA[Quakenet, no Topic, Script checks and set Topic]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101968#p101968"><![CDATA[
Thanks a lot for your Help. Much appreciated!!!!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9931">Fraud</a> — Thu Aug 08, 2013 9:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-08-08T09:21:00-04:00</updated>

		<published>2013-08-08T09:21:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101967#p101967</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101967#p101967"/>
		<title type="html"><![CDATA[Quakenet, no Topic, Script checks and set Topic]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101967#p101967"><![CDATA[
I've edited my previous post and corrected this issue. Should work fine now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Aug 08, 2013 9:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fraud]]></name></author>
		<updated>2013-08-08T08:19:02-04:00</updated>

		<published>2013-08-08T08:19:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101966#p101966</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101966#p101966"/>
		<title type="html"><![CDATA[Quakenet, no Topic, Script checks and set Topic]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101966#p101966"><![CDATA[
I do get this error<blockquote class="uncited"><div>Tcl error [topic:save]: wrong # args: no script following "[channel get $chan saveTopic]" argument</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9931">Fraud</a> — Thu Aug 08, 2013 8:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-08-08T09:20:21-04:00</updated>

		<published>2013-07-30T01:37:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101922#p101922</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101922#p101922"/>
		<title type="html"><![CDATA[Quakenet, no Topic, Script checks and set Topic]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101922#p101922"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind cron - {?0*} topic:checkbind topc - * topic:savesetudef str topicsetudef flag saveTopicproc topic:check {min hour day month weekday} {foreach chan [channels] {if {![channel get $chan saveTopic]} continueif {![string length [topic $chan]]} {topic:restore $chan}}}proc topic:save {nick uhost hand chan topic} {if {[channel get $chan saveTopic]} {channel set $chan topic $topic}}proc topic:restore {chan} {if {![botisop $chan]} returnset topic [channel get $chan topic]if {![string lengtht $topic]} returnputhelp "TOPIC $chan $topic"}</code></pre></div>Just enable/disable it with <em class="text-italics">.chanset #channel +saveTopic</em> or <em class="text-italics">-saveTopic</em><br><br>Edit: fixed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jul 30, 2013 1:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-07-29T15:52:04-04:00</updated>

		<published>2013-07-29T15:52:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101918#p101918</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101918#p101918"/>
		<title type="html"><![CDATA[Quakenet, no Topic, Script checks and set Topic]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101918#p101918"><![CDATA[
<blockquote class="uncited"><div>Made mistakes,<br></div></blockquote><br>Welcome to the human race. <br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><blockquote class="uncited"><div>Both are working fine.</div></blockquote>Good to know.<br><blockquote class="uncited"><div>Maybe something that reminds me/or channel message, to op the bot</div></blockquote>Do:<br>.help chaninfo<br>and read about need-op<br>You could put a command in there to have the bot send you a private message, when it detects that it is not op'd.<br><blockquote class="uncited"><div> and an option for different channels would be great.</div></blockquote>I like caesar's method better than mine.  Let's wait for him to respond here, as he will probably just need to include something to make an On/Off switch on a channel-by-channel basis,  to have everything you wanted.<br><blockquote class="uncited"><div>Sorry for being confusing.</div></blockquote>No problem at all.   Communication is the key, and that's what forum's are for.<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Jul 29, 2013 3:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fraud]]></name></author>
		<updated>2013-07-29T15:41:43-04:00</updated>

		<published>2013-07-29T15:41:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101917#p101917</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101917#p101917"/>
		<title type="html"><![CDATA[Quakenet, no Topic, Script checks and set Topic]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101917#p101917"><![CDATA[
Made mistakes, just rehased the bot, after a restart it works all fine.<br><br><br>Both are working fine.<br><br>Maybe something that reminds me/or channel message, to op the bot and an option for different channels would be great.<br><br>Sorry for being confusing.<br><blockquote class="uncited"><div> 21:43.29          .•• me changed the topic to <br>  21:49.31          .•• myBot changed the topic to Test Test test</div></blockquote>Tell me if i can leave a donation<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9931">Fraud</a> — Mon Jul 29, 2013 3:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-07-29T15:41:47-04:00</updated>

		<published>2013-07-29T15:36:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101916#p101916</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101916#p101916"/>
		<title type="html"><![CDATA[Quakenet, no Topic, Script checks and set Topic]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101916#p101916"><![CDATA[
<blockquote class="uncited"><div>Ok yours is causing an error<br><br>Tcl error [savenewtopic]: couldn't open "home/eggdrop/myEggdrop/scripts/db/topicrefresh.db": no such file or directory<br>...<br><a href="http://abload.de/image.php?img=unbenannt43yj2.jpg" class="postlink">http://abload.de/image.php?img=unbenannt43yj2.jpg</a><br><br>...<br></div></blockquote>Carefully examine your configuration of:<br>set topic_file<br>as it must be incorrect.<br><br>From the .jpg that you posted, I will venture that you need to include a leading / , if you wish you to use absolute paths.<br><br>If you wish to use relative paths, then it looks like it might be:<br>scripts/db/topicrefresh.db<br><br><blockquote class="uncited"><div><br>Tcl error [topc_topicme]: wrong # args: should be "checktopic min hour day month weekday" <br></div></blockquote>What is [topc_topicme]  ?<br><br><br>As for that error, all I can say is that when I run the script it does not appear.<br>If you would like to post a copy of the script exactly as you are using it now, I'll see what I can see.   Others may too.<br><br>Use this pastebin:   <a href="http://paste.tclhelp.net/" class="postlink">http://paste.tclhelp.net/</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Jul 29, 2013 3:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fraud]]></name></author>
		<updated>2013-07-29T15:02:21-04:00</updated>

		<published>2013-07-29T15:02:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101915#p101915</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101915#p101915"/>
		<title type="html"><![CDATA[Quakenet, no Topic, Script checks and set Topic]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101915#p101915"><![CDATA[
ceasar´s is working well. It would be nice to have a possibility to turn it on off for channels<br><br>@willyw: Your´s also storing the topic, had forgotten to op the Bot, my fault :/<br>Maybe a check would be nice if the bot has op and if not an output to channel that the bot need op in order to work proper?!<br><br>Buts not adding the topic back. From what i see the cron should start after 10 mins?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9931">Fraud</a> — Mon Jul 29, 2013 3:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fraud]]></name></author>
		<updated>2013-07-29T14:54:38-04:00</updated>

		<published>2013-07-29T14:54:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101914#p101914</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101914#p101914"/>
		<title type="html"><![CDATA[Quakenet, no Topic, Script checks and set Topic]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101914#p101914"><![CDATA[
Did not tested them right now. Sorry, wanted to reply first.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9931">Fraud</a> — Mon Jul 29, 2013 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-07-29T14:45:11-04:00</updated>

		<published>2013-07-29T14:45:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101913#p101913</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101913#p101913"/>
		<title type="html"><![CDATA[Quakenet, no Topic, Script checks and set Topic]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101913#p101913"><![CDATA[
<blockquote class="uncited"><div>Hey Guys.<br>...</div></blockquote><br>You forgot to say how both of the above worked, when you carefully tested them separately.<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Jul 29, 2013 2:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fraud]]></name></author>
		<updated>2013-07-29T14:33:03-04:00</updated>

		<published>2013-07-29T14:33:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101912#p101912</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101912#p101912"/>
		<title type="html"><![CDATA[Quakenet, no Topic, Script checks and set Topic]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101912#p101912"><![CDATA[
Hey Guys.<br>Well seems i forget a bit.<br><br>I was just trying some refresh Script and most of them used Files where the topics have been stored. And because i dont know TCL i thought that might be a good idea. But hey i have really no idea.<br><br>It would be great to have it multi channel supporting.<br><br>And yes if you dont mind, an option to turn it off/on via .chanset? would gorgeous. <br><br>Appreciated<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9931">Fraud</a> — Mon Jul 29, 2013 2:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-07-29T13:07:09-04:00</updated>

		<published>2013-07-29T13:07:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101910#p101910</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101910#p101910"/>
		<title type="html"><![CDATA[Quakenet, no Topic, Script checks and set Topic]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101910#p101910"><![CDATA[
<blockquote class="uncited"><div>Why don't you<br></div></blockquote>Are you addressing me?<br><blockquote class="uncited"><div> just create a user defined flag like topic or whatever you want and write/read it from there?</div></blockquote>If you are -<br><br>I suppose I never thought of it, because he asked for it to be a file.<br>As long as he doesn't have some other specific reason that requires use of a file, then yours is an interesting idea. <br><blockquote class="uncited"><div>Also, if he's having this topic issue, shouldn't this be fixed for all channels?</div></blockquote>He didn't ask for it to be multi-channel, but that would be the next step.<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Might you want to also include a channel flag, so that it can be enabled/disabled via .chanset, on a channel-by-channel basis?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Jul 29, 2013 1:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-07-29T01:18:14-04:00</updated>

		<published>2013-07-29T01:18:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101909#p101909</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101909#p101909"/>
		<title type="html"><![CDATA[Quakenet, no Topic, Script checks and set Topic]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101909#p101909"><![CDATA[
Why don't you just create a user defined flag like topic or whatever you want and write/read it from there?<br><br>Also, if he's having this topic issue, shouldn't this be fixed for all channels?<div class="codebox"><p>Code: </p><pre><code>bind cron - {?0*} topic:checkbind topc - * topic:savesetudef str topicproc topic:check {min hour day month weekday} { foreach chan [channels] {if {![string length [topic $chan]]} {topic:restore $chan}}}proc topic:save {nick uhost hand chan topic} {channel set $chan topic $topic}proc topic:restore {chan} {if {![botisop $chan]} returnset topic [channel get $chan topic]if {![string lengtht $topic]} returnputhelp "TOPIC $chan $topic"}</code></pre></div>Haven't tested so let me know if you get any errors.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Jul 29, 2013 1:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-07-28T15:50:49-04:00</updated>

		<published>2013-07-28T15:50:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101907#p101907</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101907#p101907"/>
		<title type="html"><![CDATA[Quakenet, no Topic, Script checks and set Topic]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101907#p101907"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># July 28, 2013#  http://forum.egghelp.org/viewtopic.php?t=19487# This script is VERY basic. Has no checking in it.  For file, to see if bot is even on channel, to see if bot is op'd, etc.# If it suits your needs, you might like to edit those things in.# Name your channel hereset topic_chan "#eggdrop"# path and filename of the file to hold the topic line# Be sure this file exists - there is no checking for it in the script!# The easy way: let the script create it.  Load the script, change the topic as you would normally,  then check for existence of the file, and its contents.set topic_file "scripts/added/experiment_for_somebody/topic_file.txt"# Here you can change the frequency that script checks to see if topic exists# ref: http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html# ref: http://ss64.com/bash/crontab.htmlbind cron - "0,10,20,30,40,50 * * * *" checktopicbind topc - "$topic_chan *" savenewtopicproc checktopic {min hour day month weekday} {global topic_chan topic_file        if {[topic $topic_chan] == ""} {                #reference:   http://forum.egghelp.org/viewtopic.php?t=6885                set fname $topic_file                set fp [open $fname "r"]                set data [read -nonewline $fp]                close $fp                putserv "topic $topic_chan :$data"           } }proc savenewtopic {nick uhost handle chan topic} {global topic_file        if {$topic == ""} {                return 0           }        #reference:   http://forum.egghelp.org/viewtopic.php?t=6885        set fname $topic_file        set fp [open $fname "w"]        puts $fp [topic $chan]        close $fp }</code></pre></div>Tested briefly, and seemed to work.  That is, if I understood what you wanted.<br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Jul 28, 2013 3:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fraud]]></name></author>
		<updated>2013-07-28T12:54:00-04:00</updated>

		<published>2013-07-28T12:54:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101904#p101904</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101904#p101904"/>
		<title type="html"><![CDATA[Quakenet, no Topic, Script checks and set Topic]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101904#p101904"><![CDATA[
Problem is that i´m having a script with what i set special parts of the Topic.<br><br>So its needed that the script just checks if there is a topic set and if not set it.<br>So the Topic should be taken from the channel and saved in a txt File<br><br>Every Script i found in archive just does a refresh every X minutes, but´s not what i am looking for...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9931">Fraud</a> — Sun Jul 28, 2013 12:54 pm</p><hr />
]]></content>
	</entry>
	</feed>
