UNPKG
covilbot
Version:
beta (1.0.5)
latest (0.3.5)
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.3.5
Slack bot which connects with Mopidy and Spotify
github.com/100hz/fireworkweb
fireworkweb/covilbot
covilbot
/
lib
/
commands
/
state.js
12 lines
(11 loc)
•
285 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
module
.
exports
= {
command
:
'state'
,
desc
:
'Gets the current playback state'
,
aliases
: [
'status'
],
handler
:
function
(
argv
) {
if
(argv.
db
.
settings
.
history
===
true
) { argv.
db
.
updateHistoryState
() } argv.
db
.
post
(argv.
db
.
attachments
.
state
(argv.
db
.
state
)) } }