Prefer this way I think

This commit is contained in:
ryan voots 2018-06-29 18:20:26 +00:00
parent eb1d26c6f6
commit 4a74af2615

View file

@ -26,7 +26,7 @@ my $timer = IO::Async::Timer::Periodic->new(
if ($data) {
my ($from, $contents) = $data->@{qw/sender text/};
$from =~ s/\+1//;
return UQMI::send_sms($from, "Command not recognized. Try again you dumbass. ".$contents);
UQMI::send_sms($from, "Command not recognized. Try again you dumbass. ".$contents)->get;
}
return Future->done();