User Control Panel
Advertisements

HELP US, HELP YOU!

Maya bot replies

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help
View unanswered posts
Author Message
RobBoden
Newbie
Newbie


Joined: 31 May 2006
Posts: 7

Reputation: -5.6
votes: 1

PostPosted: Mon Jun 05, 2006 10:42 pm    Post subject: Maya bot replies Reply with quote

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
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Mon Jun 05, 2006 10:56 pm    Post subject: Reply with quote

Code:
use LWP::Simple;
@contents = split ("\n", get "http://domain.com/replies.txt");

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Tue Jun 06, 2006 1:23 pm    Post subject: Re: Maya bot replies Reply with quote

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
Back to top
RobBoden
Newbie
Newbie


Joined: 31 May 2006
Posts: 7

Reputation: -5.6
votes: 1

PostPosted: Tue Jun 06, 2006 10:49 pm    Post subject: Reply with quote

ok thanks everyone your allot of help Smile
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group