summaryrefslogtreecommitdiffstats
path: root/src/bot/music.rs
diff options
context:
space:
mode:
authorJokler <jokler@protonmail.com>2020-01-28 03:04:58 +0100
committerJokler <jokler@protonmail.com>2020-01-29 20:39:27 +0100
commit985d6bd787c07ea65804d5c079537fb8d805075f (patch)
treeff8afb047d6292566189ca0ebaf8740bbc658f71 /src/bot/music.rs
parent09fc3800030b971da8c68217c22f5a0444d7b278 (diff)
downloadpokebot-985d6bd787c07ea65804d5c079537fb8d805075f.tar.gz
pokebot-985d6bd787c07ea65804d5c079537fb8d805075f.zip
Block bots from joining channels with other bots
Diffstat (limited to 'src/bot/music.rs')
-rw-r--r--src/bot/music.rs6
1 files changed, 5 insertions, 1 deletions
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())