Posted: Mon Jun 05, 2006 10:42 pm Post subject: Maya bot replies
I have a maya bot that runs on msn and i would like to make it get its "replies" from a web folder instead of one on my pc. i am new to perl so i was wondering if any of you guys could possibly post or email me the code amendmants to help me do this.
Code:
opendir(DIR, "./replies/");
foreach $file (sort(grep(/\.txt$/, readdir(DIR)))) {
open (DATA, "Replies/$file");
@contents = <DATA>;
close (DATA);
I think thats the part i need to alter
Last edited by RobBoden on Tue Jun 06, 2006 10:48 pm; edited 1 time in total
Joined: 03 May 2006 Posts: 2292 Location: Colorado
Posted: Tue Jun 06, 2006 1:23 pm Post subject: Re: Maya bot replies
RobBoden wrote:
I have a maya bot that runs on msn and i would like to make it get its "replies" from a web folder instead of one on my pc. i am new to perl so i was wondering if any of you guys could possibly post or email me the code amendmants to help me do this. Robboden1988@hotmail.co.uk
Code:
opendir(DIR, "./replies/");
foreach $file (sort(grep(/\.txt$/, readdir(DIR)))) {
open (DATA, "Replies/$file");
@contents = <DATA>;
close (DATA);
I think thats the part i need to alter
Just an FYI. Don't post to any forum ever and request that people emial you. The entire point of a forum is to store the knowledge where every one can see and access it. If cer had responded via email no one here would have gotten the answer and we might have been wondering the same thing, or next week someone might be looking for the same answer.
Oh, and you probably don't want to ever put your email out there in plain text like that unless you wish to test your spam filter! lol. _________________ Eric256
Proud previous owner and current admin of Bot-depot.com