User Control Panel
Advertisements

HELP US, HELP YOU!

Note related Idea

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Ideas
View unanswered posts
Author Message
Cheater
Senior Member
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Mon Jun 13, 2005 11:27 pm    Post subject: Note related Idea Reply with quote

Couldn't you make this command with perl for a bot (preferably nexusbot)

The command would work so that when the user enters a name for their note, and the note itself. Then, the bot creates a directory (called the users name) in the location specified by the master. The note is saved as a .txt file in that directory with the name specified by the user. The user then can enter a different command for the bot to have it list the name of all the files in that directory. The user can enter the name of a note to have it displayed in the IM window. There would also be a delete command to delete a note. Since there is a variable refering to the user's name, you could probably say something like this to make sure people don't read other peoples' notes. c:\bot\notes\$usernamevariable. I am not sure though.


Ex Conversation:

User: !createnote notename notemessage
Bot: Created note
User: !createnote notename2 notemessage2
Bot: Created note
User: !viewnote
Bot: notename
notename2
User: !viewnote notename2
Bot: notemessage2
User: !deletenote notename2
Bot: notename2 deleted
User: !viewnote notename2
Bot: Note does not ex


I know my explanation might not be good, but based on what I have heard perl can do, it seems like a very simple code. If you could make it (for nexusbot) it would be great.

P.S. I kind of just realized after making the post that I am pretty much begging for the command. Feel free to move it.
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Mon Jun 13, 2005 11:30 pm    Post subject: Reply with quote

Yeah it is simple code. It'll be a good learning experience for you.

The Perl functions you'll use are:
opendir, closedir, readdir
open, close, <filehandle>
Mess with arrays and foreach loops.

Have fun. Smile

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Cheater
Senior Member
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Mon Jun 13, 2005 11:33 pm    Post subject: Reply with quote

I have found out the perl commands for creating new files, creating new directories, writing to a file, and deleting a file. I just can't figure out how I would set them up to work with an AIM bot. I also still need to learn how to open a file (so it displays a .txt file in AIM) and show in txt format, the names of all the files in a directory. I also need to figure out how to make it so it automatically creates a directory when the user makes it's first note, and figure out how to make it so that each user may only view notes from the directory with their name on it. Help would be appreciated.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Ideas 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