Gateway heartbeat works

This commit is contained in:
2024-07-22 12:25:27 +02:00
parent 6df9346de1
commit be80cad0cc
6 changed files with 117 additions and 10 deletions
+13 -2
View File
@@ -1,2 +1,13 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");
using Discord.API;
using Serilog;
Log.Logger=new LoggerConfiguration()
.WriteTo.Console(Serilog.Events.LogEventLevel.Verbose)
.MinimumLevel.Verbose()
.CreateLogger();
string api_key = File.ReadAllText("api_key.txt");
DiscordClient client = new DiscordClient(api_key);
Console.ReadLine();
+9
View File
@@ -1,5 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ProjectReference Include="..\Discord.API\Discord.API.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Serilog" Version="4.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
</ItemGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>