aboutsummaryrefslogtreecommitdiffstats
path: root/src/bot/music.rs
diff options
context:
space:
mode:
authorJokler <jokler@protonmail.com>2020-02-03 01:14:05 +0100
committerJokler <jokler@protonmail.com>2020-02-22 23:20:10 +0100
commit5eea11a03c11551091b2c72f48590aec7f5410f0 (patch)
tree4767841f341b82539c2586ef04e67fe72e52bd4b /src/bot/music.rs
parent2831c2b60cb61a14c7efee4ab5c0389eb3ad5469 (diff)
downloadpokebot-5eea11a03c11551091b2c72f48590aec7f5410f0.tar.gz
pokebot-5eea11a03c11551091b2c72f48590aec7f5410f0.zip
Add a json /api/bots endpoint for data retrieval
Diffstat (limited to 'src/bot/music.rs')
-rw-r--r--src/bot/music.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bot/music.rs b/src/bot/music.rs
index d53e4a8..0def280 100644
--- a/src/bot/music.rs
+++ b/src/bot/music.rs
@@ -5,6 +5,7 @@ use std::thread;
use humantime;
use log::{debug, info};
+use serde::Serialize;
use structopt::StructOpt;
use tokio02::sync::mpsc::UnboundedSender;
use tsclientlib::{data, ChannelId, ClientId, ConnectOptions, Identity, Invoker, MessageTarget};
@@ -44,7 +45,7 @@ fn parse_seek(mut amount: &str) -> Result<Seek, ()> {
}
}
-#[derive(Debug, PartialEq, Eq, Clone, Copy)]
+#[derive(Debug, PartialEq, Eq, Clone, Copy, Serialize)]
pub enum State {
Playing,
Paused,