User Control Panel
Advertisements

HELP US, HELP YOU!

Notes command

 
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol
View unanswered posts
Author Message
Scott
Member
Member


Joined: 29 Nov 2003
Posts: 134

Reputation: 32.3Reputation: 32.3Reputation: 32.3

PostPosted: Mon Dec 15, 2003 4:59 am    Post subject: Reply with quote

i need help with my notes command can someone please assist me

heres my code
Code:
    elsif($msg =~ /^\#view notes/)<br />    {<br />     open (DATA, ">>notes/$victim.txt");<br />     $self->sendmsg(DATA);<br />     close(DATA); <br />    }

put when i type notes it says
Quote:
HelplessBot says:
DATA
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Mon Dec 15, 2003 5:31 am    Post subject: Reply with quote

well after you open the file you need the read it into a variable
so either
$line = ;
or
@lines = ;
depending on if the file is one or more lines
Back to top
Nate
God Like
God Like


Joined: 12 Nov 2003
Posts: 553

Reputation: 41.3Reputation: 41.3Reputation: 41.3Reputation: 41.3

PostPosted: Mon Dec 15, 2003 1:58 pm    Post subject: Reply with quote

And also, the ">>" at the beginning of the file path means "append to" which should usually be used to add text to the end of the file. You should be able to just do this:

Code:
open (DATA, "notes/$victim.txt");
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol 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