chore: updated deps
This commit is contained in:
parent
fb04aa8266
commit
33619938c9
4 changed files with 32 additions and 25 deletions
|
@ -4,6 +4,8 @@ using System.Threading.Tasks;
|
|||
using DSharpPlus;
|
||||
using DSharpPlus.CommandsNext;
|
||||
using DSharpPlus.Entities;
|
||||
using DSharpPlus.Lavalink;
|
||||
using DSharpPlus.Net;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
@ -46,7 +48,6 @@ var services = new ServiceCollection()
|
|||
.BuildServiceProvider();
|
||||
|
||||
/*
|
||||
var lavalink = discord.UseLavalink();
|
||||
var interactivity = discord.UseInteractivity();
|
||||
var voice = discord.UseVoiceNext();
|
||||
*/
|
||||
|
@ -67,6 +68,9 @@ var commands = discord.UseCommandsNext(new CommandsNextConfiguration
|
|||
|
||||
commands.RegisterCommands(Assembly.GetExecutingAssembly());
|
||||
|
||||
// Register Lavalink
|
||||
var lavalink = discord.UseLavalink();
|
||||
|
||||
/*// Register Slash Commands
|
||||
var slash = discord.UseSlashCommands(new SlashCommandsConfiguration
|
||||
{
|
||||
|
@ -74,4 +78,24 @@ var slash = discord.UseSlashCommands(new SlashCommandsConfiguration
|
|||
});*/
|
||||
|
||||
await discord.ConnectAsync(new DiscordActivity("With DSharpPlus"));
|
||||
await lavalink.ConnectAsync(new LavalinkConfiguration
|
||||
{
|
||||
Password = config.GetSection("lavalink").GetValue<string>("password"),
|
||||
RestEndpoint = new ConnectionEndpoint
|
||||
{
|
||||
Hostname = config.GetSection("lavalink").GetValue<string>("host"),
|
||||
Port = config.GetSection("lavalink").GetValue<int>("port"),
|
||||
Secured = true
|
||||
},
|
||||
ResumeTimeout = 30,
|
||||
SocketAutoReconnect = true,
|
||||
SocketEndpoint = new ConnectionEndpoint
|
||||
{
|
||||
Hostname = config.GetSection("lavalink").GetValue<string>("host"),
|
||||
Port = config.GetSection("lavalink").GetValue<int>("port"),
|
||||
Secured = true
|
||||
},
|
||||
WebSocketCloseTimeout = 30
|
||||
});
|
||||
|
||||
await Task.Delay(-1);
|
||||
|
|
|
@ -34,12 +34,12 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="ByteSize" Version="2.0.0" />
|
||||
<PackageReference Include="DSharpPlus" Version="4.2.0-nightly-00973" />
|
||||
<PackageReference Include="DSharpPlus.CommandsNext" Version="4.2.0-nightly-00973" />
|
||||
<PackageReference Include="DSharpPlus.Interactivity" Version="4.2.0-nightly-00973" />
|
||||
<PackageReference Include="DSharpPlus.Lavalink" Version="4.2.0-nightly-00973" />
|
||||
<PackageReference Include="DSharpPlus.Rest" Version="4.2.0-nightly-00973" />
|
||||
<PackageReference Include="DSharpPlus.VoiceNext" Version="4.2.0-nightly-00973" />
|
||||
<PackageReference Include="DSharpPlus" Version="4.2.0-nightly-00987" />
|
||||
<PackageReference Include="DSharpPlus.CommandsNext" Version="4.2.0-nightly-00987" />
|
||||
<PackageReference Include="DSharpPlus.Interactivity" Version="4.2.0-nightly-00987" />
|
||||
<PackageReference Include="DSharpPlus.Lavalink" Version="4.2.0-nightly-00987" />
|
||||
<PackageReference Include="DSharpPlus.Rest" Version="4.2.0-nightly-00987" />
|
||||
<PackageReference Include="DSharpPlus.VoiceNext" Version="4.2.0-nightly-00987" />
|
||||
<PackageReference Include="Hardware.Info" Version="1.1.1" />
|
||||
<PackageReference Include="IDoEverything.DSharpPlus.SlashCommands" Version="2.0.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.0-preview.7.21377.19" />
|
||||
|
@ -55,8 +55,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Commands\Common" />
|
||||
<Folder Include="Commands\Slash" />
|
||||
<Folder Include="Commands\Msg\Music" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
FROM alpine:3.13.6
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add libgcc libstdc++
|
||||
|
||||
COPY CSharpBot/bin/x64/Release/net6.0/publish/linux-x64/CSharpBot .
|
||||
|
||||
ENTRYPOINT [ "./CSharpBot" ]
|
|
@ -1,7 +0,0 @@
|
|||
FROM debian:11.0
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY CSharpBot/bin/x64/Release/net6.0/publish/linux-x64/CSharpBot .
|
||||
|
||||
ENTRYPOINT [ "./CSharpBot" ]
|
Reference in a new issue