TomKat commented on a Page, News Bot  -  Jun 23, 2009

This is great, and after modifying it some to work for my purpose, I have it -almost- working great! However, I'm having some struggles with getting to write new news to the text file. This is the modified segment of the code, but I dont think I changed anything important. Sorry I dont know how to insert code into here :(

n17= if (!problems == $strip($1)) {
n18= if (!$2) { .msg $chan Please specify the problem you're having. }
n19= if (!$read(problems.txt, w, $2- )) && ($2) { write problems.txt Problem reported by $nick on $fulldate $+ : $2- | .msg $chan Problem reported. Thank You. | halt }
n20= if ($read(problems.txt, w, $2-
)) && ($2) { write -dw $+ $+ $2- $+ problems.txt | write problems.txt Problem reported by $nick on $fulldate $+ : $2- | .msg $chan Problem reported, Thank You. | halt }
n21= }

Sometimes the user gets a message "Problem reported, Thank You."
I also get "Problem reported by $nick on added to the text file but no data. Some help would be extremely appreciated! And thanks so much to Aucun for PunkTuRed for your work on this!

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.