I`m using public_quotes.tcl, when you add a quote it adds it to "/home/user/eggdrop/quotes.db" in the form of:
#Quotenumber Date Time #Channel Who-Added-the-quote Quote
Example:
1 10/19/2009 16:41:19 #shishkebab [17:21] <+saethr> usa owns kuwait | [17:21] <+Ropaz^> lol where do you know that? | [17:21] <+Ropaz^> kuwait is a state on iraq | [17:22] <+Ropaz^> its like Lyon in france
I could really need a script that once a day, scans that file and makes a new file in that folder called "quoteupload.txt" - the script should remove the all the necessary details except for the quote itself.
So if the quote was:
1 10/19/2009 16:41:19 #shishkebab [17:21] <+saethr> usa owns kuwait | [17:21] <+Ropaz^> lol where do you know that? | [17:21] <+Ropaz^> kuwait is a state on iraq | [17:22] <+Ropaz^> its like Lyon in france
The script will make a new file with this output:
[17:21] <+saethr> usa owns kuwait | [17:21] <+Ropaz^> lol where do you know that? | [17:21] <+Ropaz^> kuwait is a state on iraq | [17:22] <+Ropaz^> its like Lyon in france
tomekk@tweety:~# cat test.txt
1 10/19/2009 16:41:19 #shishkebab [17:21] <+saethr> usa owns kuwait | [17:21] <+Ropaz^> lol where do you know that? | [17:21] <+Ropaz^> kuwait is a state on iraq | [17:22] <+Ropaz^> its like Lyon in france
2 10/19/2009 16:41:19 #shishkebab [17:21] <+saethr> usa owns kuwait | [17:21] <+Ropaz^> lol where do you know that? | [17:21] <+Ropaz^> kuwait is a state on iraq | [17:22] <+Ropaz^> its like Lyon in france
2341 10/19/2009 16:41:19 #shishkebab [17:21] <+saethr> usa owns kuwait | [17:21] <+Ropaz^> lol where do you know that? | [17:21] <+Ropaz^> kuwait is a state on iraq | [17:22] <+Ropaz^> its like Lyon in france
tomekk@tweety:~# cat quoteupload.txt
[17:21] <+saethr> usa owns kuwait | [17:21] <+Ropaz^> lol where do you know that? | [17:21] <+Ropaz^> kuwait is a state on iraq | [17:22] <+Ropaz^> its like Lyon in france
[17:21] <+saethr> usa owns kuwait | [17:21] <+Ropaz^> lol where do you know that? | [17:21] <+Ropaz^> kuwait is a state on iraq | [17:22] <+Ropaz^> its like Lyon in france
[17:21] <+saethr> usa owns kuwait | [17:21] <+Ropaz^> lol where do you know that? | [17:21] <+Ropaz^> kuwait is a state on iraq | [17:22] <+Ropaz^> its like Lyon in france
I wrote exactly what you wrote, but I didn't get the same result, theres another part it needs to remove.
1 10/19/2009 16:41:19 #shishkebab Tony [17:21] <+saethr> usa owns kuwait | [17:21] <+Ropaz^> lol where do you know that? | [17:21] <+Ropaz^> kuwait is a state on iraq | [17:22] <+Ropaz^> its like Lyon in france
Tony <-= the person who added the quote, I need that removed too..