We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2f3d7c commit b74a7dbCopy full SHA for b74a7db
t/lib/Testable.pm6
@@ -42,8 +42,13 @@ class Testable {
42
);
43
start $!irc-client.run;
44
45
- $!bot-proc = Proc::Async.new: ‘./bin/’ ~ $bot ~ ‘.p6’;
46
- $!bot-proc.start: :ENV(|%*ENV, PERL6LIB => ‘lib’);
+ $!bot-proc = Proc::Async.new: ‘perl6’, ‘./bin/’ ~ $bot ~ ‘.p6’;
+ $!bot-proc.bind-stdin: ‘config.json’.IO.open;
47
+ start react {
48
+ whenever $!bot-proc.start(:ENV(|%*ENV, PERL6LIB => ‘lib’)) {
49
+ note “Bot process finished (exit code={.exitcode}, signal={.signal})”
50
+ }
51
52
53
start { sleep 20; $ready.send: False }
54
$!bot-nick = $ready.receive;
0 commit comments