From 33f9989df92deebf589b1d0384a6fe485a5492d9 Mon Sep 17 00:00:00 2001 From: Jokler Date: Tue, 28 Jan 2020 18:42:33 +0100 Subject: Make local mode spawn a music bot directly --- src/bot/music.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/bot/music.rs') diff --git a/src/bot/music.rs b/src/bot/music.rs index 821087c..dee1514 100644 --- a/src/bot/music.rs +++ b/src/bot/music.rs @@ -368,6 +368,7 @@ impl MusicBot { } fn spawn_stdin_reader(tx: Arc>>) { + debug!("Spawning stdin reader thread"); thread::spawn(move || { let stdin = ::std::io::stdin(); let lock = stdin.lock(); @@ -375,7 +376,7 @@ fn spawn_stdin_reader(tx: Arc>>) { let line = line.unwrap(); let message = MusicBotMessage::TextMessage(Message { - target: MessageTarget::Server, + target: MessageTarget::Channel, invoker: Invoker { name: String::from("stdin"), id: ClientId(0), -- cgit v1.2.3-70-g09d2