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

	<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>2012-08-21T18:33:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-08-21T18:33:18-04:00</updated>

		<published>2012-08-21T18:33:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99917#p99917</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99917#p99917"/>
		<title type="html"><![CDATA[Re: Try This.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99917#p99917"><![CDATA[
Let's also message the bot operator, if is online,:)<br><div class="codebox"><p>Code: </p><pre><code>set report(file) "scripts/report.txt"set report(thanks) "thanks for the report:)"set report(owner) ""  ;# set one nick to message, telling of the new report ("" = message off) #bind pub -|- .report report:tofile proc report:tofile {nk uh hn ch tx} {  set open [open $report(file) a] puts $open "$nk reported: $tx" close $open puthelp "PRIVMSG $ch :${nk}: $report(thanks)." if {$report(owner) ne "" &amp;&amp; [onchan $report(owner)]} {   puthelp "PRIVMSG $report(owner) :$nk submitted a report." }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Tue Aug 21, 2012 6:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Tannn3r]]></name></author>
		<updated>2012-08-21T16:52:19-04:00</updated>

		<published>2012-08-21T16:52:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99916#p99916</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99916#p99916"/>
		<title type="html"><![CDATA[Re: Try This.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99916#p99916"><![CDATA[
That's perfect. Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11466">Tannn3r</a> — Tue Aug 21, 2012 4:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-08-21T00:14:53-04:00</updated>

		<published>2012-08-21T00:14:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99913#p99913</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99913#p99913"/>
		<title type="html"><![CDATA[Try This.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99913#p99913"><![CDATA[
Let's try this.<div class="codebox"><p>Code: </p><pre><code>set report(file) "scripts/report.txt"set report(thanks) "thanks for the report:)"bind pub -|- .report report:tofile proc report:tofile {nk uh hn ch tx} { global report set open [open $report(file) a] puts $open "$nk reported: $tx" close $open puthelp "PRIVMSG $ch :${nk}: $report(thanks)."}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Tue Aug 21, 2012 12:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2012-08-20T23:55:45-04:00</updated>

		<published>2012-08-20T23:55:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99909#p99909</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99909#p99909"/>
		<title type="html"><![CDATA[Re: Command to add text to a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99909#p99909"><![CDATA[
<blockquote class="uncited"><div>... although I've been unable to extract it from them. <br>...</div></blockquote>Perhaps it will be easier to grasp here:<br><a href="http://forum.egghelp.org/viewtopic.php?t=6885&amp;sid=ac15bc225afd3c30f565335d349ca7b8" class="postlink">http://forum.egghelp.org/viewtopic.php? ... 5d349ca7b8</a><br><br>Particularly the part found under this heading:<blockquote class="uncited"><div>5. Add a line to the end of a file.</div></blockquote>but there is a lot of useful information in the rest of that thread too.<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> — Mon Aug 20, 2012 11:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Tannn3r]]></name></author>
		<updated>2012-08-20T19:52:04-04:00</updated>

		<published>2012-08-20T19:52:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99908#p99908</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99908#p99908"/>
		<title type="html"><![CDATA[Command to add text to a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99908#p99908"><![CDATA[
I've seen something like this in many scripts, although I've been unable to extract it from them. Basically, I want a script that when a command is called (.report) in a channel, it will add all the text to a new line in a file and then tell the user that it's done. I use something else for this that allows users to report problems with the bot, but this method would be much better.<br><br>So, I want it to:<br>Create the file for the reports<br>When the command is initiated, it will create a new line in the file with: Nickname reported: report here<br>Then tell the user Thanks for reporting!<br><br>Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11466">Tannn3r</a> — Mon Aug 20, 2012 7:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
