The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Bot::IRC::Store::SQLite - Bot::IRC persistent data storage with SQLite

VERSION

version 1.29

SYNOPSIS

    use Bot::IRC;

    Bot::IRC->new(
        connect => { server => 'irc.perl.org' },
        plugins => ['Store::SQLite'],
        vars    => { store => 'bot.sqlite' },
    )->run;

DESCRIPTION

This Bot::IRC plugin provides a persistent storage mechanism with a SQLite database file. By default, it's the "store.sqlite" file, but this can be changed with the vars, store value.

EXAMPLE USE

This plugin adds a single sub to the bot object called store(). Calling it will return a storage object which itself provides get() and set() methods. These operate just like you would expect.

set

    $bot->store->set( user => { nick => 'gryphon', score => 42 } );

get

    my $score = $bot->store->set('user')->{score};

SEE ALSO

Bot::IRC

AUTHOR

Gryphon Shafer <gryphon@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2016-2021 by Gryphon Shafer.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)