mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
Plugins/Wttr: run get_wttr() as a process
This commit is contained in:
parent
6d2221e8f0
commit
8695ba4d19
@ -99,7 +99,8 @@ sub wttrcmd {
|
||||
delete $options{default};
|
||||
}
|
||||
|
||||
return $self->get_wttr($arguments, %options);
|
||||
$self->{pbot}->{process_manager}->execute_process($stuff, sub { $stuff->{result} = $self->get_wttr($arguments, %options) });
|
||||
return "";
|
||||
}
|
||||
|
||||
sub get_wttr {
|
||||
|
Loading…
Reference in New Issue
Block a user