From 985d6bd787c07ea65804d5c079537fb8d805075f Mon Sep 17 00:00:00 2001 From: Jokler Date: Tue, 28 Jan 2020 03:04:58 +0100 Subject: Block bots from joining channels with other bots --- src/bot/music.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/bot/music.rs') diff --git a/src/bot/music.rs b/src/bot/music.rs index 0bb5274..821087c 100644 --- a/src/bot/music.rs +++ b/src/bot/music.rs @@ -190,7 +190,11 @@ impl MusicBot { } } - fn my_channel(&self) -> ChannelId { + pub fn name(&self) -> &str { + &self.name + } + + pub fn my_channel(&self) -> ChannelId { self.teamspeak .as_ref() .map(|ts| ts.my_channel()) -- cgit v1.2.3-70-g09d2