Skip to content

Commit

Permalink
Merge pull request #21 from pi4erd/development
Browse files Browse the repository at this point in the history
Lavalink v4 support and Victoria v7
  • Loading branch information
pi4erd authored Jul 24, 2024
2 parents a4d7958 + a54140d commit 60209ed
Show file tree
Hide file tree
Showing 21 changed files with 790 additions and 1,200 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/debug-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ jobs:
context: .
file: ./Dockerfile
push: true
platforms: linux/amd64 #,linux/arm64
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }} # the debug shouldn't upload to the 'latest' tag
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ jobs:
context: .
file: ./Dockerfile
push: true
platforms: linux/amd64 #,linux/arm64
platforms: linux/amd64
tags: ${{ secrets.DOCKER_USERNAME }}/talkingbot:latest,${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -371,4 +371,5 @@ build
TalkingBot/.DS_Store
.DS_Store

Cache
Config.json
4 changes: 1 addition & 3 deletions TalkingBot/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public static Task Main(string[] args) =>
private static async Task MainAsync(string[] args)
{
string cnfpath = "Config.json";
string jsonconfig = "";
if(args.Length > 1)
{
int idx = Array.FindIndex(args, 0, args.Length, str => str == "-C");
Expand All @@ -36,7 +35,7 @@ private static async Task MainAsync(string[] args)
Console.WriteLine("Config not found at: {0}\nCreating new one...", cnfpath);
await Config.CreateDefaultConfig(cnfpath);
}
jsonconfig = File.ReadAllText(cnfpath);
string jsonconfig = File.ReadAllText(cnfpath);
TalkingBotConfig config = JsonConvert.DeserializeObject<TalkingBotConfig>(jsonconfig)!;

Console.Clear();
Expand All @@ -45,7 +44,6 @@ private static async Task MainAsync(string[] args)

Console.CancelKeyPress += delegate
{
client.Dispose();
Environment.Exit(0);
};

Expand Down
2 changes: 1 addition & 1 deletion TalkingBot/TalkingBot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Discord.Net" Version="3.12.0" />
<PackageReference Include="Discord.Net" Version="3.15.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

Expand Down
Loading

0 comments on commit 60209ed

Please sign in to comment.