mirror of
https://github.com/pragma-/pbot.git
synced 2025-07-12 08:27:24 +02:00

Allows changing of bot configuration values without needing to restart bot instance or needing to edit pbot.pl script. Registry will initially be populated with default values from pbot.pl, but if a registry file exists then the registry values will take precedence over the pbot.pl values. For instance, if you regset the bot trigger to '%' then the trigger will be '%' even if pbot.pl has '!' or something else explicitly set. Some registry items can have trigger hooks associated with them. For instance, the irc->botnick registry entry has a change_botnick_trigger associated with it which changes the IRC nick on the server when a new value is set via regset/regadd. Tons of other fixes and improvements throughout.
21 lines
304 B
Perl
21 lines
304 B
Perl
# File: VERSION.pm
|
|
# Author: pragma_
|
|
#
|
|
# Purpose: Keeps track of bot version.
|
|
|
|
# $Id$
|
|
|
|
package PBot::VERSION;
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
# These are set automatically by the build/commit script
|
|
use constant {
|
|
BUILD_NAME => "PBot",
|
|
BUILD_REVISION => 582,
|
|
BUILD_DATE => "2014-05-17",
|
|
};
|
|
|
|
1;
|