Jafo232
11-07-2006, 02:30 PM
I have been tinkering for a while with a Perl script that runs as a bot that will allow interactions with Vbulletin. I have mostly concentrated on building the controller itself and not so much with the action scripts.
The controller is basically the AIM (AOL Instant Messenger) bot. The bot itself just receives commands and messages and routes them to the appropriate action script (just more Perl code).
The Perl script must run as a daemon (server) on your server. This means you would need shell access of some kind to execute the bot. I suppose you could do this with a cronjob, but you MAY not be able to kill it if you mess up the configuration.
You should also be able to install Perl modules on your server as there are some non-standard modules in use. Here are those used by the controller:
Data::Dumper
Getopt::Long
Net::OSCAR
Digest::MD5
IO::Poll
DBI
On most systems these should already be installed except for Net::OSCAR which is the module used to connect to AIM.
The possibilities are endless as far as what can be done with the bot. Just for illustration purposes, I have written a bot to display latest threads, display hello worlds for both admins and anonymous users. Admin can shut down bots with a command and rehash scripts.
You can add action scripts without restarting the bot (you must rehash it).
If anyone would be interested in testing this I would be more than happy to post it here and let you have at it.
The controller is basically the AIM (AOL Instant Messenger) bot. The bot itself just receives commands and messages and routes them to the appropriate action script (just more Perl code).
The Perl script must run as a daemon (server) on your server. This means you would need shell access of some kind to execute the bot. I suppose you could do this with a cronjob, but you MAY not be able to kill it if you mess up the configuration.
You should also be able to install Perl modules on your server as there are some non-standard modules in use. Here are those used by the controller:
Data::Dumper
Getopt::Long
Net::OSCAR
Digest::MD5
IO::Poll
DBI
On most systems these should already be installed except for Net::OSCAR which is the module used to connect to AIM.
The possibilities are endless as far as what can be done with the bot. Just for illustration purposes, I have written a bot to display latest threads, display hello worlds for both admins and anonymous users. Admin can shut down bots with a command and rehash scripts.
You can add action scripts without restarting the bot (you must rehash it).
If anyone would be interested in testing this I would be more than happy to post it here and let you have at it.