mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-16 08:59:34 +01:00
40aa37bc7c
- refactor `wordlists` into structure with more details - added `name` field for language names - added `prompt` field for localized "Guess the word!" prompt - added `supp` field for supplemental wordlists (used to add words to list for guessing, e.g. urban with insane supplement allows initial word selection from urban list and then adds words from insane list for more options for guessing) - moved accents into added `accents` field - added `min_length` and `max_length` fields for lists that are different from default lengths - misc minor adjustments
43 lines
1.1 KiB
Perl
43 lines
1.1 KiB
Perl
# File: VERSION.pm
|
|
#
|
|
# Purpose: Sets the PBot version constants.
|
|
#
|
|
# Rather than each PBot::Core package having its own version identifier, all
|
|
# of PBot is considered a single package. The BUILD_REVISION constant is the
|
|
# count of git commits to the PBot repository.
|
|
#
|
|
# See also the version command in PBot::Core::Commands::Version. It can compare
|
|
# the local PBot version against latest version on GitHub (or the URL in
|
|
# the `version.check_url` registry entry) to notify users of the availability
|
|
# of a new version.
|
|
#
|
|
# TODO: The PBot::Plugin::* plugins probably should have their own version
|
|
# identifiers as a template for versioned $HOME/PBot/Plugin/ plugins.
|
|
|
|
# SPDX-FileCopyrightText: 2001-2023 Pragmatic Software <pragma78@gmail.com>
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
package PBot::VERSION;
|
|
use parent 'PBot::Core::Class';
|
|
|
|
use PBot::Imports;
|
|
|
|
# These are set by the /misc/update_version script
|
|
use constant {
|
|
BUILD_NAME => "PBot",
|
|
BUILD_REVISION => 4752,
|
|
BUILD_DATE => "2024-04-29",
|
|
};
|
|
|
|
sub initialize {}
|
|
|
|
sub version {
|
|
return BUILD_NAME . ' version ' . BUILD_REVISION . ' ' . BUILD_DATE;
|
|
}
|
|
|
|
sub revision {
|
|
return BUILD_REVISION;
|
|
}
|
|
|
|
1;
|