Skip to content

Releases: bumseb1ene/discord-reports

4.2.0

09 Feb 10:45
Compare
Choose a tag to compare

Version 4.2.0

English

  • Added: Automatic message to the reporter if the reported player cannot be found.
  • Changed: Removed Kick, Temp-Ban, and Perma-Ban buttons when the target player is missing or has already left the server.
  • Enhanced: Shortened and clarified error messages for better user experience.
  • Updated: languages.json with a new key (player_not_found_auto_msg) to inform the reporter that the player was not located.

German (Deutsch)

  • Hinzugefügt: Automatische Benachrichtigung an den Melder, wenn der gemeldete Spieler nicht gefunden werden kann.
  • Geändert: Kick-, Temp-Ban- und Perma-Ban-Buttons werden nicht mehr angezeigt, wenn der gemeldete Spieler nicht mehr auf dem Server ist oder nicht ermittelt werden konnte.
  • Verbessert: Kürzere und verständlichere Fehlermeldungen für eine bessere Nutzererfahrung.
  • Aktualisiert: languages.json mit einem neuen Schlüssel (player_not_found_auto_msg), um den Melder darüber zu informieren, dass der Spieler nicht gefunden wurde.

Release date: 2025-02-09

4.1.0

08 Feb 18:39
Compare
Choose a tag to compare

English

Version 4.1.0

  • New Feature:
    Permanent ban actions now post an additional embed that displays the banned player's data along with a header.

  • Translations:
    The labels "Reason:" and "Evidence:" are now retrieved from translation keys (reason and evidence). Additionally, the extra note for Hack let Loose ("hack_let_loose_note") is now part of the translation.

  • Language Updates:
    New translation keys have been added to the languages.json:

    • banned_player_data_title (e.g., "Banned Player Data")
    • evidence (e.g., "Evidence")
    • hack_let_loose_note (e.g., "Note: For posting on Hack let Loose, evidence must be added.")
  • Code Improvements:
    The modals.py file has been cleaned up—redundant whitespace and superfluous formatting have been removed without affecting functionality.


Deutsch

Version 4.1.0

  • Neues Feature:
    Beim permanenten Bann wird nun ein zusätzliches Embed gepostet, das die Spielerdaten des gebannten Spielers inklusive einer Überschrift anzeigt.

  • Übersetzungen:
    Die Bezeichnungen "Begründung:" und "Beweise:" werden nun über die Translations-Schlüssel (reason und evidence) bezogen. Zudem fließt der zusätzliche Hinweis für Hack let Loose (über den Key hack_let_loose_note) in die Übersetzungen mit ein.

  • Sprachupdates:
    In der languages.json wurden folgende neue Keys hinzugefügt:

    • banned_player_data_title (z. B. "Spielerdaten des gebannten Spielers")
    • evidence (z. B. "Beweise")
    • hack_let_loose_note (z. B. "Hinweis: Für das Posten bei Hack let Loose müssen die Beweise noch hinzugefügt werden.")
  • Code-Verbesserungen:
    Die modals.py wurde aufgeräumt und optimiert – überflüssige Leerzeilen und redundante Formatierungen wurden entfernt, ohne die Funktionalität zu beeinträchtigen.


4.0.1

08 Feb 17:28
Compare
Choose a tag to compare

Version 4.0.1

Deutsch

Übersicht

  • Entfernt: Benutzername/Passwort-Authentifizierung. Stattdessen wird nur noch ein Bearer-Token verwendet.
  • Verbessert: Konsistente Verwendung des Bearer-Tokens in allen API-Methoden.
  • Aufgeräumt: Überflüssige Login-Methoden und Variablen entfernt (USERNAME, PASSWORD).
  • Behoben: Potenzielles Problem mit mehrfachen aiohttp.ClientSession-Erstellungen.

Details

  • APIClient:
    • Der Login-Flow wurde gelöscht; die Methoden login() und alle Verweise darauf sind entfernt.
    • Sämtliche Requests verwenden jetzt ausschließlich den Authorization: Bearer <API_TOKEN>-Header.
    • Der Code ist insgesamt schlanker und einfacher zu warten.
  • Bot-Logik:
    • Keine Aufrufe zu login_to_api(...) mehr; stattdessen wird lediglich base_url bei Bedarf gesetzt.
    • Reduzierter Konfigurationsaufwand in .env (kein Benutzername/Passwort mehr notwendig).

English

Overview

  • Removed: Username/Password authentication. Only a Bearer token is now used.
  • Improved: Consistent usage of Bearer token across all API methods.
  • Cleaned up: Removed unnecessary login methods and variables (USERNAME, PASSWORD).
  • Fixed: Potential issue with multiple aiohttp.ClientSession creations.

Details

  • APIClient:
    • The login flow has been removed; login() and all references to it are deleted.
    • All requests now rely exclusively on the Authorization: Bearer <API_TOKEN> header.
    • The codebase is slimmer and easier to maintain.
  • Bot Logic:
    • No more calls to login_to_api(...); only base_url is set when needed.
    • Reduced configuration overhead in .env (no more username/password required).

4.0.0

07 Feb 18:31
Compare
Choose a tag to compare

Changelog v4.0.0

English

  • Breaking Change: Replaced the deprecated /api/get_all_standard_message_config with the new /api/get_all_message_templates.
  • Dropdown selections now use title from the API for the label, and content is shown when creating or previewing messages.
  • Message actions pull their data from the MESSAGE category, while Kick/Temp-Ban/Perma-Ban/Punish actions use the REASON category.
  • Updated modal dialogs to display the full content from the selected template, giving users the ability to edit or confirm before sending.
  • Various code refactorings for improved clarity and maintainability.
  • Important: This version only works with CRCON version 11.

Deutsch

  • Breaking Change: Der veraltete Endpunkt /api/get_all_standard_message_config wurde durch den neuen /api/get_all_message_templates ersetzt.
  • In Dropdown-Menüs wird nun der title als Bezeichnung angezeigt und der content beim Erstellen oder Vorschauen von Nachrichten eingeblendet.
  • Message-Aktionen beziehen ihre Daten aus der MESSAGE-Kategorie, während Kick/Temp-Ban/Perma-Ban/Punish-Aktionen die REASON-Kategorie verwenden.
  • Die Modal-Dialogs wurden aktualisiert, um den vollständigen Inhalt aus der ausgewählten Vorlage anzuzeigen, mit der Möglichkeit, ihn vor dem Senden zu bearbeiten oder zu bestätigen.
  • Diverse Code-Refactorings zur Verbesserung von Übersicht und Wartbarkeit.
  • Wichtig: Diese Version funktioniert nur mit CRCON Version 11.

3.0.1 Fix

26 Aug 22:06
10cfae0
Compare
Choose a tag to compare

In diesem Update wurden folgende Änderungen vorgenommen:

  • Die API-Endpunkte wurden auf RCON umgestellt, um V10 zu unterstützen.
  • Die .env-Datei wurde angepasst, um Konflikte mit den Windows-Systemumgebungsvariablen zu vermeiden.
  • Es wurde eine Protokollierung der von Moderatoren durchgeführten Aktionen hinzugefügt. Diese Aktionen werden in einem Embed, als Kommentar in CRCON und in einer Logdatei protokolliert.
  • Das Ausgabeformat der Logdatei wurde geändert, um menschlich lesbare Zeitstempel hinzuzufügen.
  • Die Abfrage von Logs nutzt jetzt den RCON-seitigen Filter.
  • Logs werden nicht mehr automatisch ausgegeben; stattdessen wurde ein "Logs"-Button hinzugefügt.
  • Reaktionen auf Meldungen werden nun hinzugefügt, sobald eine Meldung bearbeitet wurde.
  • Ein Button zum manuellen Bearbeiten und Protokollieren von Meldungen wurde hinzugefügt.
  • Die Standardnachrichten von CRCON werden als voreingestellte Gründe verwendet.
  • Manuelles Bearbeiten von Gründen ist nun möglich.
  • Die Auswahl von Gründen für alle Aktionen wurde vereinheitlicht.
  • Ein "Bestrafen"-Button wurde hinzugefügt.
  • Der Filter zum Bearbeiten aller Nachrichten von CRCON wurde entfernt.
  • Spieler erhalten automatisch eine Antwort, wenn sie „!admin“ oder „!admin SPIELER GRUND“ eingeben (mögliche Breaking Change, finale Logs werden dies bestätigen).
  • Bestrafungen wie Kick oder Bann sind nun auch für Meldungen möglich, bei denen kein Spieler gefunden wurde.

Breaking Change:

  • Die .env-Datei muss gemäß den folgenden Anweisungen geändert werden:
    • Ersetzen Sie USERNAME, PASSWORD und API_TOKEN durch RCON_USERNAME, RCON_PASSWORD und RCON_API_TOKEN.

Vielen Dank an LordofAgents, der sich die Arbeit gemacht hat :)

English:

This update introduces the following changes:

  • Updated the API endpoints to switch from RCON to support V10.
  • Modified the .env file to prevent conflicts with Windows system environment variables.
  • Added logging of actions performed by moderators. Actions are now logged in an embed, as a comment in CRCON, and in a log file.
  • Changed the log file output to include human-readable timestamps.
  • Updated the retrieval of logs to utilize the RCON-side filter.
  • Logs are no longer printed automatically; a "Logs" button has been added instead.
  • Added a reaction to report messages when a report has been processed.
  • Introduced a button for manually processing and logging reports.
  • Standard messages from CRCON are now used as preset reasons.
  • Enabled manual editing of reasons.
  • Consolidated the process of selecting reasons for all actions.
  • Added a "Punish" button.
  • Removed the filter to process all messages from CRCON.
  • Players will now automatically receive a response if they type "!admin" or "!admin PLAYER REASON" (this might be a breaking change; final logs will confirm this).
  • It is now possible to issue punishments like kicks or bans for reports where no player was found.

This message will be updated if further changes are made.

Breaking Change:

  • Update the .env file according to the following instructions:
    • Replace USERNAME, PASSWORD, and API_TOKEN with RCON_USERNAME, RCON_PASSWORD, and RCON_API_TOKEN.

Thank you!

3.0.1 FIX: Empty ban reasons or too many caused the bot to crash

3.0.0

22 Aug 20:43
799a1ed
Compare
Choose a tag to compare

In diesem Update wurden folgende Änderungen vorgenommen:

  • Die API-Endpunkte wurden auf RCON umgestellt, um V10 zu unterstützen.
  • Die .env-Datei wurde angepasst, um Konflikte mit den Windows-Systemumgebungsvariablen zu vermeiden.
  • Es wurde eine Protokollierung der von Moderatoren durchgeführten Aktionen hinzugefügt. Diese Aktionen werden in einem Embed, als Kommentar in CRCON und in einer Logdatei protokolliert.
  • Das Ausgabeformat der Logdatei wurde geändert, um menschlich lesbare Zeitstempel hinzuzufügen.
  • Die Abfrage von Logs nutzt jetzt den RCON-seitigen Filter.
  • Logs werden nicht mehr automatisch ausgegeben; stattdessen wurde ein "Logs"-Button hinzugefügt.
  • Reaktionen auf Meldungen werden nun hinzugefügt, sobald eine Meldung bearbeitet wurde.
  • Ein Button zum manuellen Bearbeiten und Protokollieren von Meldungen wurde hinzugefügt.
  • Die Standardnachrichten von CRCON werden als voreingestellte Gründe verwendet.
  • Manuelles Bearbeiten von Gründen ist nun möglich.
  • Die Auswahl von Gründen für alle Aktionen wurde vereinheitlicht.
  • Ein "Bestrafen"-Button wurde hinzugefügt.
  • Der Filter zum Bearbeiten aller Nachrichten von CRCON wurde entfernt.
  • Spieler erhalten automatisch eine Antwort, wenn sie „!admin“ oder „!admin SPIELER GRUND“ eingeben (mögliche Breaking Change, finale Logs werden dies bestätigen).
  • Bestrafungen wie Kick oder Bann sind nun auch für Meldungen möglich, bei denen kein Spieler gefunden wurde.

Breaking Change:

  • Die .env-Datei muss gemäß den folgenden Anweisungen geändert werden:
    • Ersetzen Sie USERNAME, PASSWORD und API_TOKEN durch RCON_USERNAME, RCON_PASSWORD und RCON_API_TOKEN.

Vielen Dank an LordofAgents, der sich die Arbeit gemacht hat :)

English:

This update introduces the following changes:

  • Updated the API endpoints to switch from RCON to support V10.
  • Modified the .env file to prevent conflicts with Windows system environment variables.
  • Added logging of actions performed by moderators. Actions are now logged in an embed, as a comment in CRCON, and in a log file.
  • Changed the log file output to include human-readable timestamps.
  • Updated the retrieval of logs to utilize the RCON-side filter.
  • Logs are no longer printed automatically; a "Logs" button has been added instead.
  • Added a reaction to report messages when a report has been processed.
  • Introduced a button for manually processing and logging reports.
  • Standard messages from CRCON are now used as preset reasons.
  • Enabled manual editing of reasons.
  • Consolidated the process of selecting reasons for all actions.
  • Added a "Punish" button.
  • Removed the filter to process all messages from CRCON.
  • Players will now automatically receive a response if they type "!admin" or "!admin PLAYER REASON" (this might be a breaking change; final logs will confirm this).
  • It is now possible to issue punishments like kicks or bans for reports where no player was found.

This message will be updated if further changes are made.

Breaking Change:

  • Update the .env file according to the following instructions:
    • Replace USERNAME, PASSWORD, and API_TOKEN with RCON_USERNAME, RCON_PASSWORD, and RCON_API_TOKEN.

Thank you!

2.0.0

24 Jun 02:11
Compare
Choose a tag to compare

Added

  • Implemented KickReasonSelect dropdown to allow administrators to select a reason for kicking a player.
  • Added additional kick reasons: "Insults", "Cheating", and "Spamming", with translations for English and German.
  • Introduced confirm_kick function to handle the kick confirmation process, including sending messages to the author and updating the original message with a reaction and disabling the dropdown.
  • Updated the language file (languages.json) with new translations for kick reasons.
  • Implemented TempBanModal, TempBanButton, MessagePlayerModal, MessagePlayerButton, MessageReportedPlayerModal, and MessageReportedPlayerButton to handle various player moderation actions.
  • Added private message feature to notify the author when a kick action is taken.

Changed

  • Modified button_click function to include the original_message parameter for better context handling.
  • Updated the callback method of KickReasonSelect to disable the dropdown after a selection is made and to edit the original message to remove the view.
  • Improved logging throughout the bot for better debugging and traceability.

Fixed

  • Resolved an issue where the confirm_kick function was missing the reason parameter.
  • Corrected an error in KickReasonSelect where interaction.edit_original_message was incorrectly used instead of interaction.message.edit.
  • Addressed a bug where the dropdown values were not correctly translated.

1.9.0

23 Jun 23:14
Compare
Choose a tag to compare
  • Feature Added: Integrated MessagePlayerButton to appear when no player or squad leader is found in reports.
  • Enhancement: Updated find_and_respond_unit and find_and_respond_player methods to include the MessagePlayerButton for responding to report authors when no matches are found.
  • UI Improvement: Added a View with MessagePlayerButton to allow report authors to send messages when no matching players or squad leaders are identified.
  • Bug Fixes: Ensured the correct extraction of author names and added necessary logging for debugging purposes.

1.8.1

29 May 08:08
Compare
Choose a tag to compare

Fixed:

  • The message was not sent to the reporting player, but to the reported player

1.8.0

27 May 18:45
Compare
Choose a tag to compare
  • The log of the reported player will now be displayed in Discord