diff options
| author | Jokler <jokler@protonmail.com> | 2020-01-28 03:04:58 +0100 |
|---|---|---|
| committer | Jokler <jokler@protonmail.com> | 2020-01-29 20:39:27 +0100 |
| commit | 985d6bd787c07ea65804d5c079537fb8d805075f (patch) | |
| tree | ff8afb047d6292566189ca0ebaf8740bbc658f71 /src/bot/music.rs | |
| parent | 09fc3800030b971da8c68217c22f5a0444d7b278 (diff) | |
| download | pokebot-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.rs | 6 |
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()) |
