mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-26 03:54:21 +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};
|
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 {
|
sub get_wttr {
|
||||||
|
Loading…
Reference in New Issue
Block a user