infobot_import - import an old infobot brain into new infrastructure
infobot-import dsn [user [password]]
If you're using a stock infobot then changing to the directory where the bot stores its config. There should be files lying around like <botname>-is.(dir|pag). Then do :
infobot-import <botname>
If it's a modified infobot using the DBI backend then doing something like
infobot-import dbi:mysql:<dbname> <username> <password>
should work.
You can also import factoids from factpacks such as the ones at
http://www.infobot.org/snapshots/factpacks/
by doing
infobot-import <filename>
where filename ends in .fact.
It should be noted that if you have a lot of items then the Storable backend, whilst quick, will bloat up to a lot of memory. the DBI backend is slow but efficient. The Deep backend is a good compromise.
This program will import the values for an existing, old style infobot into a new style.
it will look in the current directory for an infobot.config for which Bot::BasicBot::Pluggable::Store backend to use.
Bot::BasicBot::Pluggable::Store
See the infobot documentation for details on the Store config keys.
infobot
Store
Simon Wistow <simon@thegestalt.org>
Copyright 2005, Simon Wistow
Distributed under the same terms as Perl itself
To install Bot::Infobot::Config, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::Infobot::Config
CPAN shell
perl -MCPAN -e shell install Bot::Infobot::Config
For more information on module installation, please visit the detailed CPAN module installation guide.