1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-07 16:45:40 -04:00
perlbuut/plugins/restart.pm

11 lines
330 B
Perl

no warnings 'void';
sub {
my( $said, $pm ) = @_;
push @{$said->{special_commands}}, [ bb3_restart=> 1 ];
print "Attempting to restart..";
}
__DATA__
restart. Attempts to rexecute the bot in the exact manner it was first execute. This has the effect of reloading all config files and associated plugins. Typically root only.