mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
AdminCommands: reload
can now reload commands metadata
This commit is contained in:
parent
942a152681
commit
3eb8bd15a6
@ -316,6 +316,11 @@ sub reload {
|
||||
my ($from, $nick, $user, $host, $arguments) = @_;
|
||||
|
||||
my %reloadables = (
|
||||
'commands' => sub {
|
||||
$self->{pbot}->{commands}->load_metadata;
|
||||
return "Commands metadata reloaded.";
|
||||
},
|
||||
|
||||
'blacklist' => sub {
|
||||
$self->{pbot}->{blacklist}->clear_blacklist;
|
||||
$self->{pbot}->{blacklist}->load_blacklist;
|
||||
|
Loading…
Reference in New Issue
Block a user