This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Text Files - Simple Request

Old posts that have not been replied to for several years.
Locked
H
Hypergrip

Post by Hypergrip »

Hi there.
I'm new to TCL and still have lots of problems with syntax or special commands.
I wanted to ask if anyone could tell me how the following programm is written (I learn best when i seen a complete script):

This script is a simple News-Script that uses a text-file.
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.
I think the text-files should be named "news.#channel.txt" or somewhat.
whenever the public command !news is triggered, the script shall write the text in the news.#channel.txt to the channel.
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".
"UserX" (better: every user having a special flag) should be able to use the public command !news with arguments that replaces the current news.
"!news Coke for free !!" should result in "Coke for free" replaceing the text in the news.#channel.txt

Hmm... this text is quite wired... Sorry i didn't know how to wirte this properly.
I hope anybody still can figure out what my problem is :wink:

Thanks a lot

(- Hypergrip -)
Locked