mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 20:42:38 +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 ($from, $nick, $user, $host, $arguments) = @_;
|
||||||
|
|
||||||
my %reloadables = (
|
my %reloadables = (
|
||||||
|
'commands' => sub {
|
||||||
|
$self->{pbot}->{commands}->load_metadata;
|
||||||
|
return "Commands metadata reloaded.";
|
||||||
|
},
|
||||||
|
|
||||||
'blacklist' => sub {
|
'blacklist' => sub {
|
||||||
$self->{pbot}->{blacklist}->clear_blacklist;
|
$self->{pbot}->{blacklist}->clear_blacklist;
|
||||||
$self->{pbot}->{blacklist}->load_blacklist;
|
$self->{pbot}->{blacklist}->load_blacklist;
|
||||||
|
Loading…
Reference in New Issue
Block a user