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;
|
_audioUtils = audioUtils;
|
||||||
}
|
}
|
||||||
|
|
||||||
[Command("join")]
|
// [Command("join")]
|
||||||
public async Task JoinChannel()
|
public async Task JoinChannel()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -27,12 +27,10 @@ namespace Geekbot.net.Commands.Audio
|
||||||
var channel = (Context.User as IGuildUser)?.VoiceChannel;
|
var channel = (Context.User as IGuildUser)?.VoiceChannel;
|
||||||
if (channel == null)
|
if (channel == null)
|
||||||
{
|
{
|
||||||
await Context.Channel.SendMessageAsync(
|
await Context.Channel.SendMessageAsync("You must be in a voice channel.");
|
||||||
"User must be in a voice channel, or a voice channel must be passed as an argument.");
|
|
||||||
return;
|
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();
|
var audioClient = await channel.ConnectAsync();
|
||||||
_audioUtils.StoreAudioClient(Context.Guild.Id, audioClient);
|
_audioUtils.StoreAudioClient(Context.Guild.Id, audioClient);
|
||||||
await ReplyAsync($"Connected to {channel.Name}");
|
await ReplyAsync($"Connected to {channel.Name}");
|
||||||
|
@ -43,7 +41,7 @@ namespace Geekbot.net.Commands.Audio
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Command("disconnect")]
|
// [Command("disconnect")]
|
||||||
public async Task DisconnectChannel()
|
public async Task DisconnectChannel()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -66,7 +64,7 @@ namespace Geekbot.net.Commands.Audio
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Command("ytplay")]
|
// [Command("ytplay")]
|
||||||
public async Task ytplay(string url)
|
public async Task ytplay(string url)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||||
<ApplicationIcon>derp.ico</ApplicationIcon>
|
<ApplicationIcon>derp.ico</ApplicationIcon>
|
||||||
<Version>3.6.0</Version>
|
<Version>3.7.0</Version>
|
||||||
<Company>Pizza and Coffee Studios</Company>
|
<Company>Pizza and Coffee Studios</Company>
|
||||||
<Authors>Pizza and Coffee Studios</Authors>
|
<Authors>Pizza and Coffee Studios</Authors>
|
||||||
<Description>A Discord bot</Description>
|
<Description>A Discord bot</Description>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
public class Constants
|
public class Constants
|
||||||
{
|
{
|
||||||
public const string Name = "Geekbot";
|
public const string Name = "Geekbot";
|
||||||
public const double BotVersion = 3.6;
|
public const double BotVersion = 3.7;
|
||||||
public const double ApiVersion = 1;
|
public const double ApiVersion = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -30,7 +30,7 @@ namespace Geekbot.net.Lib.Logger
|
||||||
OptimizeBufferReuse = true,
|
OptimizeBufferReuse = true,
|
||||||
MessagesPerRequest = 10,
|
MessagesPerRequest = 10,
|
||||||
RetryInterval = 5000,
|
RetryInterval = 5000,
|
||||||
Name = "GeekbotBeta"
|
Name = "Geekbot"
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue