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

	<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>2002-06-16T16:26:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-16T16:26:00-04:00</updated>

		<published>2002-06-16T16:26:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8055#p8055</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8055#p8055"/>
		<title type="html"><![CDATA[Text Files - Simple Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8055#p8055"><![CDATA[
Hi there.<br>I'm new to TCL and still have lots of problems with syntax or special commands.<br>I wanted to ask if anyone could tell me how the following programm is written (I learn best when i seen a complete script):<br><br>This script is a simple News-Script that uses a text-file.<br>Let's say we got the channel #channel and the user "UserX" that is known to the bot with the local flags +ovf for #channel and the global flags +x.<br>I think the text-files should be named "news.#channel.txt" or somewhat. <br>whenever the public command !news is triggered, the script shall write the text in the news.#channel.txt to the channel.<br>If it's triggered in a channel where is no news.#channel.txt there should be something like "There a no news for this channel".<br>"UserX" (better: every user having a special flag) should be able to use the public command !news with arguments that replaces the current news.<br>"!news Coke for free !!" should result in "Coke for free" replaceing the text in the news.#channel.txt<br><br>Hmm... this text is quite wired... Sorry i didn't know how to wirte this properly.<br>I hope anybody still can figure out what my problem is <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br><br>Thanks a lot<br><br>(- Hypergrip -)<p>Statistics: Posted by Guest — Sun Jun 16, 2002 4:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
