### ### pedbot v1.1 ### ### pedram amini ### pedbot is an AOL instant messenger robot that provides many features through any standard AIM client. User features include: Eliza bot (need to create custom script), areacode lookup, random austin powers quote, calculator, dictionary, help system, google searcher, ip mapper, messaging system (leave messages for others, read/delete messages), password generator, pickup line generator, random quote, random fact, random quotes from the rock, spell checker, stock quotes, weather, zip to zip distance Admin features include: ping wrapper, nmap wrapper, traceroute wrapper, dig wrapper, whois wrapper, w wrapper, host wrapper, abilities to set configuration hash through messaging, write command (initiate conversation with others), block / warn command, view message queue I've seperated the database from the code for those of you who just want to check out the source. If you want to download the database, support files, or my quick PHP front-end script you can get them on the web from: http://pedram.redhive.com under the projects/toys section. If you want to play with a demo of pedbot instant message: zpedbot To install pedbot... - Incorporate pedbot.sql into mySQL. - Setup the DB config options on lines 76-81 of pedbot.pl appropriately. - Setup the config options in the pedbot.configuration table appropriately. Most importantly you need to set screenname, password, and admins. The format of admins is :user1:user2:user3: etc... surrounding the names with ':' is necessary. - Compile and install the jive and valspeak filters if you wish to use them. You can set the filter by changing the value for filter in the mySQL table pedbot.configuration to either jive or valspeak. To use pedbot... - All commands begin with a . (dot). - .list will list all available commands. - .help will list all available commands and provide a description. There are different lists for admins and non admins. - the command . (dot) by itself will repeat the last command. To add commands to pedbot... - All commands go in the command subdirectory. - pedbot will automatically load all files in that directory into memory. - You don't have to change anything in any of the other files to add your own command. - Check out any of the commands for samples. - Requirements: + All command sub{}'s are prefixed with pedbot_command if you don't do this your command won't be found. + All commands need to add a description entry to the COMMANDS hash. ex: $COMMANDS{my_command} = "my command does this" + The first argument to your command is always the screenname of the sender of the command. All other arguments come after that. + Most commands need to simply return a string. Some commands (like write) need to send a message and you can use the global variable $aim to do so. If you need database access use the $dbhandle global. - Familiarize yourself with what pedbot can do. All handlers are in the handlers sub directory. Check out the support functions I've written in the functions sub directory. - If your writing a command that is for administrators only simply include the string "(admin only)" in your command description ($COMMANDS).