Hello,
I have some problems with reading from a file and then output that read into a channel, so thing is like this I wrote a script which stores some data into a txt file in this way: order *here goes order* nick *nick who set orders* time *time when orders were set* day *day when orders were set*
and so on
so now part that I can`t figure out is:
I would like that when someone writes .order on channel bot would open up txt file and search for word in it (obviusly order) and then output everything thats behind behind that word, for .ordersby output would be nick who set orders so bot would have to open the file find word nick and output everything behind that word... and so on.
One more thing I need help with is time and date:
lets say that my day 1 started on 1/1/2012 @ 8h local computer time, now I would like to see my date and time to be:
day 64
time 13:03
Thx in advance with any help
You should try make the script using array it would be much easier for you to read the information and display it anywhere you want in any form you want. If you are still interested in this script i can guide you creating the script, if so reply to this topic and we will get started when i am around and have time.
NOTE: I don`t use files like that to store data. I only use array to store data's into the eggdrop . Much easier (for me)