diff --git a/.coderabbit.yaml b/.coderabbit.yaml new file mode 100644 index 0000000..843d058 --- /dev/null +++ b/.coderabbit.yaml @@ -0,0 +1,20 @@ +language: "en" +early_access: false +reviews: + profile: "chill" + request_changes_workflow: false + high_level_summary: true + poem: false + review_status: true + collapse_walkthrough: false + auto_review: + enabled: true + drafts: false + path_filters: + - "!**/*.min.js" + - "!**/bin/**" + - "!**/obj/**" + - "!**/TestResults/**" + - "!**/*.Designer.cs" +chat: + auto_reply: true diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 09fe5ec..1a88e29 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -11,9 +11,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: 10.0.x - name: Run Unit Tests run: | diff --git a/README.md b/README.md index 5699395..c8cfd11 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,15 @@ +# NosCoreBot # +

- +

-# NosCoreBot # [![Codacy Badge](https://api.codacy.com/project/badge/Grade/5601a6d1e4224338b142c76bdeb8f9eb)](https://app.codacy.com/app/NosCoreIO/NosCoreBot?utm_source=github.com&utm_medium=referral&utm_content=NosCoreIO/NosCoreBot&utm_campaign=Badge_Grade_Settings) [![.NET](https://github.com/NosCoreIO/NosCoreBot/actions/workflows/dotnet.yml/badge.svg?branch=master)](https://github.com/NosCoreIO/NosCoreBot/actions/workflows/dotnet.yml) # Special Thanks for Contributions #

- - - +

## You want to contribute ? ## @@ -18,23 +17,21 @@ ## You like our work ? ## Sponsor me! -Buy Me a Coffee at ko-fi.com Become a Patron! +Buy Me a Coffee at ko-fi.com +Become a Patron! -## Achtung! ## +## Warning! ## We are not responsible of any damages caused by bad usage of our source. Please before asking questions or installing this source read this readme and also do a research, google is your friend. If you mess up when installing our source because you didnt follow it, we will laugh at you. A lot. ## Instructions to contribute ## ### Disclaimer ### -This project not for commercial use. - -## Disclaimer ## -This project is a community project not for commercial use. The result is to learn and program together for prove the study. +This project is a community project not for commercial use. The result is to learn and program together for prove the study. -## Legal ## +### Legal ### This is an independent and unofficial server for educational use ONLY. Using the Project might be against the TOS. -### Contribution is only possible with Visual Studio 2017 ### -We recommend usage of : +### Contribution is only possible with Visual Studio 2026 ### +We recommend usage of : * [Roslynator extension](https://github.com/JosefPihrt/Roslynator). * [Resharper](https://www.jetbrains.com/resharper/) diff --git a/src/NosCoreBot/NosCoreBot.csproj b/src/NosCoreBot/NosCoreBot.csproj index 30622b2..49135fd 100644 --- a/src/NosCoreBot/NosCoreBot.csproj +++ b/src/NosCoreBot/NosCoreBot.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net10.0 @@ -14,9 +14,9 @@ - - - + + + diff --git a/src/NosCoreBot/Program.cs b/src/NosCoreBot/Program.cs index acfd3d9..0dbe2f4 100644 --- a/src/NosCoreBot/Program.cs +++ b/src/NosCoreBot/Program.cs @@ -44,43 +44,4 @@ public static IHostBuilder CreateHostBuilder(string[] args) } } - - public class Worker : BackgroundService - { - private readonly DiscordSocketClient _client; - private readonly CommandService _cmservice; - private readonly CommandHandlingService _chservice; - private readonly TimeHandlingService _thservice; - - public Worker(DiscordSocketClient client, CommandService cmservice, CommandHandlingService chservice, - TimeHandlingService thservice) - { - _client = client; - _cmservice = cmservice; - _chservice = chservice; - _thservice = thservice; - } - - protected override async Task ExecuteAsync(CancellationToken stoppingToken) - { - _client.Log += LogAsync; - _cmservice.Log += LogAsync; - - // Tokens should be considered secret data, and never hard-coded. - await _client.LoginAsync(TokenType.Bot, Environment.GetEnvironmentVariable("token")); - await _client.StartAsync(); - - await _chservice.InitializeAsync(); - await _thservice.UploadInputFilesAsync(); - - await Task.Delay(-1); - } - - private Task LogAsync(LogMessage log) - { - Console.WriteLine(log.ToString()); - - return Task.CompletedTask; - } - } } diff --git a/tests/NosCoreBot.Tests/NosCoreBot.Tests.csproj b/tests/NosCoreBot.Tests/NosCoreBot.Tests.csproj index f00ecbb..9d0f9f4 100644 --- a/tests/NosCoreBot.Tests/NosCoreBot.Tests.csproj +++ b/tests/NosCoreBot.Tests/NosCoreBot.Tests.csproj @@ -1,15 +1,15 @@ - net8.0 + net10.0 false - - - + + +