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.
2 parents f7edeea + 2bebbef commit bc8a89cCopy full SHA for bc8a89c
examples/currentTrack.php
@@ -8,11 +8,11 @@
8
$instances = $sinusbot->getInstances();
9
10
foreach ($instances as $instance) {
11
- $status = $instance->getStatus();
12
- if ($status["playing"]) {
13
- echo "Instance: ".$instance->instance["nick"]." is playing";
+ $isPlaying = $instance->isPlaying();
+ if ($isPlaying) {
+ echo "Instance: ".$instance->getNick()." is playing";
14
} else {
15
- echo "Instance: ".$instance->instance["nick"]." is not playing";
+ echo "Instance: ".$instance->getNick()." is not playing";
16
}
17
echo "\n";
18
0 commit comments