Skip to content

Commit

Permalink
Update to .NET 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Bond-009 committed Nov 17, 2024
1 parent 758bb31 commit 78d2724
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 135 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 as builder
FROM mcr.microsoft.com/dotnet/sdk:9.0 as builder
WORKDIR /repo
COPY . .
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
RUN dotnet publish src/iTool.DiscordBot --configuration Release --output="/app"

FROM mcr.microsoft.com/dotnet/runtime:8.0
FROM mcr.microsoft.com/dotnet/runtime:9.0
COPY --from=builder /app /app
WORKDIR /app
VOLUME /app/settings /app/data
Expand Down
6 changes: 0 additions & 6 deletions NuGet.Config

This file was deleted.

10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# iTool.DiscordBot

![.NET][github-actions-badge] [![codecov][codecov-badge]][codecov-link] [![Discord][discord-badge]][discord-invite]
![.NET][github-actions-badge] [![codecov][codecov-badge]][codecov-link] [![Discord][discord-badge]][discord-invite]

i-Tool bot is a general purpose bot that has moderation commands, can check your CS:GO, Battlefield 3, 4, H and HOTS stats and a lot more!
i-Tool bot is a general purpose bot that has moderation commands, can check your CS:GO, Battlefield 3, 4, H stats and a lot more!

## Commands

Expand Down Expand Up @@ -82,12 +82,6 @@ i-Tool bot is a general purpose bot that has moderation commands, can check your
| prefix | | | Returns the current prefix |
| prefix | setprefix, prefix set | | Sets the current prefix |

## HOTS commands

| Command | Aliases | Permission | Description |
| ------- | ------- | ---------- | ----------- |
| hotsstats | | | Returns the HOTS stats of the player |

## Steam commands

| Command | Aliases | Permission | Description |
Expand Down
109 changes: 0 additions & 109 deletions src/iTool.DiscordBot/Modules/HOTSModule.cs

This file was deleted.

15 changes: 7 additions & 8 deletions src/iTool.DiscordBot/iTool.DiscordBot.csproj
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Battlelog.Net" Version="0.2.0" />
<PackageReference Include="Battlelog.Net.Bf3" Version="0.2.0" />
<PackageReference Include="Battlelog.Net.Bf4" Version="0.2.1" />
<PackageReference Include="Battlelog.Net.BfH" Version="0.2.0" />
<PackageReference Include="Battlelog.Net" Version="0.3.0" />
<PackageReference Include="Battlelog.Net.Bf3" Version="0.3.0" />
<PackageReference Include="Battlelog.Net.Bf4" Version="0.3.0" />
<PackageReference Include="Battlelog.Net.BfH" Version="0.3.0" />
<PackageReference Include="Discord.Net.Commands" Version="3.16.0" />
<PackageReference Include="Discord.Net.WebSocket" Version="3.16.0" />
<PackageReference Include="HOTSLogs.Net" Version="0.1.3" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.11.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.1" />
<PackageReference Include="Nett" Version="0.15.0" />
<PackageReference Include="OpenWeather.Net" Version="1.0.0" />
Expand Down
2 changes: 1 addition & 1 deletion tests/iTool.DiscordBot.Tests/iTool.DiscordBot.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down

0 comments on commit 78d2724

Please sign in to comment.