Skip to content

Commit bc8a89c

Browse files
committed
Merge branch 'master' of https://github.com/SinusBot/api-php
2 parents f7edeea + 2bebbef commit bc8a89c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/currentTrack.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
$instances = $sinusbot->getInstances();
99

1010
foreach ($instances as $instance) {
11-
$status = $instance->getStatus();
12-
if ($status["playing"]) {
13-
echo "Instance: ".$instance->instance["nick"]." is playing";
11+
$isPlaying = $instance->isPlaying();
12+
if ($isPlaying) {
13+
echo "Instance: ".$instance->getNick()." is playing";
1414
} else {
15-
echo "Instance: ".$instance->instance["nick"]." is not playing";
15+
echo "Instance: ".$instance->getNick()." is not playing";
1616
}
1717
echo "\n";
1818
}

0 commit comments

Comments
 (0)