Bump version to 3.7
This commit is contained in:
parent
7958c87de5
commit
49392703f2
4 changed files with 7 additions and 9 deletions
|
@ -18,7 +18,7 @@ namespace Geekbot.net.Commands.Audio
|
|||
_audioUtils = audioUtils;
|
||||
}
|
||||
|
||||
[Command("join")]
|
||||
// [Command("join")]
|
||||
public async Task JoinChannel()
|
||||
{
|
||||
try
|
||||
|
@ -27,12 +27,10 @@ namespace Geekbot.net.Commands.Audio
|
|||
var channel = (Context.User as IGuildUser)?.VoiceChannel;
|
||||
if (channel == null)
|
||||
{
|
||||
await Context.Channel.SendMessageAsync(
|
||||
"User must be in a voice channel, or a voice channel must be passed as an argument.");
|
||||
await Context.Channel.SendMessageAsync("You must be in a voice channel.");
|
||||
return;
|
||||
}
|
||||
|
||||
// For the next step with transmitting audio, you would want to pass this Audio Client in to a service.
|
||||
var audioClient = await channel.ConnectAsync();
|
||||
_audioUtils.StoreAudioClient(Context.Guild.Id, audioClient);
|
||||
await ReplyAsync($"Connected to {channel.Name}");
|
||||
|
@ -43,7 +41,7 @@ namespace Geekbot.net.Commands.Audio
|
|||
}
|
||||
}
|
||||
|
||||
[Command("disconnect")]
|
||||
// [Command("disconnect")]
|
||||
public async Task DisconnectChannel()
|
||||
{
|
||||
try
|
||||
|
@ -66,7 +64,7 @@ namespace Geekbot.net.Commands.Audio
|
|||
}
|
||||
}
|
||||
|
||||
[Command("ytplay")]
|
||||
// [Command("ytplay")]
|
||||
public async Task ytplay(string url)
|
||||
{
|
||||
try
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<ApplicationIcon>derp.ico</ApplicationIcon>
|
||||
<Version>3.6.0</Version>
|
||||
<Version>3.7.0</Version>
|
||||
<Company>Pizza and Coffee Studios</Company>
|
||||
<Authors>Pizza and Coffee Studios</Authors>
|
||||
<Description>A Discord bot</Description>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
public class Constants
|
||||
{
|
||||
public const string Name = "Geekbot";
|
||||
public const double BotVersion = 3.6;
|
||||
public const double BotVersion = 3.7;
|
||||
public const double ApiVersion = 1;
|
||||
}
|
||||
}
|
|
@ -30,7 +30,7 @@ namespace Geekbot.net.Lib.Logger
|
|||
OptimizeBufferReuse = true,
|
||||
MessagesPerRequest = 10,
|
||||
RetryInterval = 5000,
|
||||
Name = "GeekbotBeta"
|
||||
Name = "Geekbot"
|
||||
})
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue