egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Text Files - Simple Request

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
Hypergrip
Guest





PostPosted: Sun Jun 16, 2002 4:26 pm    Post subject: Reply with quote

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 -)
Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber