Posted: Mon Jun 13, 2005 11:27 pm Post subject: Note related Idea
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.
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.