Esempio n. 1
0
        public async Task Join(IVoiceChannel channel = null)
        {
            channel = channel ?? (Context.User as IGuildUser)?.VoiceChannel;

            if (channel == null)
            {
                await Context.Channel.SendMessageAsync("User is not in channel and/or a channel was not provided as an argument.");

                return;
            }

            await TranscriberBot.SetVoiceChannel(channel);

            await Context.Channel.SendMessageAsync($"Successfully connected, please use \"{TranscriberBot.PREFIX}transcribe [Output Channel]\" to start transcribing.");
        }
Esempio n. 2
0
        public async Task Leave()
        {
            await TranscriberBot.CurrentChannel.DisconnectAsync();

            await TranscriberBot.SetVoiceChannel(null);
        }