mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 20:22:37 +01:00
updates: remove background-process
from recall
command metadata
This commit is contained in:
parent
d1df2d325c
commit
1b13123474
@ -25,8 +25,8 @@ use PBot::Imports;
|
||||
# These are set by the /misc/update_version script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 4352,
|
||||
BUILD_DATE => "2021-08-12",
|
||||
BUILD_REVISION => 4353,
|
||||
BUILD_DATE => "2021-08-13",
|
||||
};
|
||||
|
||||
sub initialize {}
|
||||
|
27
updates/4353_fix_recall.pl
Executable file
27
updates/4353_fix_recall.pl
Executable file
@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env perl
|
||||
|
||||
# Remove `background-process` metadata from `recall` command.
|
||||
|
||||
use warnings; use strict;
|
||||
|
||||
BEGIN {
|
||||
use File::Basename;
|
||||
my $location = -l __FILE__ ? dirname readlink __FILE__ : dirname __FILE__;
|
||||
unshift @INC, $location;
|
||||
}
|
||||
|
||||
use lib3512::HashObject;
|
||||
use lib3503::PBot;
|
||||
|
||||
my ($data_dir, $version, $last_update) = @ARGV;
|
||||
|
||||
print "Updating recall command; version: $version, last_update: $last_update, data_dir: $data_dir\n";
|
||||
|
||||
my $pbot = lib3503::PBot->new();
|
||||
|
||||
my $commands = lib3512::HashObject->new(name => 'Command metadata', filename => "$data_dir/commands", pbot => $pbot);
|
||||
$commands->load;
|
||||
|
||||
$commands->unset('recall', 'background-process');
|
||||
|
||||
exit 0;
|
Loading…
Reference in New Issue
Block a user