Gateway heartbeat works
This commit is contained in:
+13
-2
@@ -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();
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user