Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4.1.0 Release #3269

Merged
merged 57 commits into from
Nov 26, 2023
Merged

v4.1.0 Release #3269

merged 57 commits into from
Nov 26, 2023

Conversation

lorenzo132
Copy link
Member

@lorenzo132 lorenzo132 commented Mar 21, 2023

Drops support for Python 3.9. Python 3.10 and Python 3.11 are now the only supported versions.

Fixed

  • GIF stickers no longer cause the bot to crash.
  • ?alias make/create as aliases to ?alias add. This improves continuity between the bot and its command structure. (PR #3195)
  • Loading the blocked list with the ?blocked command takes a long time when the list is large. (PR #3242)
  • Reply not being forwarded from DM. (PR #3239)
  • Cleanup imports after removing/unloading a plugin. (PR #3226)
  • Fixed a syntactic error in the close message when a thread is closed after a certain duration. (PR #3233)
  • Removed an extra space in the help command title when the command has no parameters. (PR #3271)
  • Corrected some incorrect config help descriptions. (PR #3277)
  • Rate limit issue when fetch the messages due to reaction linking. (PR #3306)
  • Update command fails when the plugin is invalid. (PR #3295)

Added

  • ?log key <key> to retrieve the log link and view a preview using a log key. (PR #3196)
  • REGISTRY_PLUGINS_ONLY, environment variable, when set, restricts to only allow adding registry plugins. (PR #3247)
  • DISCORD_LOG_LEVEL environment variable to set the log level of discord.py. (PR #3216)
  • STREAM_LOG_FORMAT and FILE_LOG_FORMAT environment variable to set the log format of the stream and file handlers respectively. Possible options are json and plain (default). (PR #3305)
  • LOG_EXPIRATION environment variable to set the expiration time of logs. (PR #3257)
  • New registry plugins: autoreact and rename.
  • Improved join/leave message for multiple servers.

Changed

  • Repo moved to https://github.com/modmail-dev/modmail.
  • Channel name no longer shows -0 if the user has migrated to the new username system.
  • ?note and ?reply now allows you to send a sticker without any message.
  • Guild icons in embed footers and author urls now have a fixed size of 128. (PR #3261)
  • Discord.py internal logging is now enabled by default. (PR #3216)
  • The confirm-thread-creation dialog now uses buttons instead of reactions. (PR #3273)
  • ?disable all no longer overrides ?disable new. (PR #3278)
  • Dropped root privileges for Modmail running under Docker. (PR #3284)

Internal

  • Renamed Bot.log_file_name to Bot.log_file_path. Log files are now created at temp/logs/modmail.log. (PR #3216)
  • ConfigManager.get no longer accepts two positional arguments: the convert argument is now keyword-only.
  • Various dependencies have been updated to their latest versions.

StephenDaDev and others added 6 commits December 19, 2022 23:14
We already have all the information we need to mention a user (their
id) and fetching the information from discord will lead to rate
limiting and extremely poor performance on large block lists for
no gain.
* Fix replies not being sent

* Use a list instead of a set

---------

Co-authored-by: Taku <45324516+Taaku18@users.noreply.github.com>
StephenDaDev
StephenDaDev previously approved these changes Mar 21, 2023
@Taaku18
Copy link
Collaborator

Taaku18 commented Mar 21, 2023

Before we merge this, I'll check over and update project dependencies and update changelog / version.

suprovsky and others added 3 commits May 18, 2023 08:50
* Update .env.example

The removal of `modmail_guild_id` since its causing more confusion to people then it helps them. Features relying on this never were made.

Signed-off-by: lorenzo132 <50767078+lorenzo132@users.noreply.github.com>

* Update app.json

---------

Signed-off-by: lorenzo132 <50767078+lorenzo132@users.noreply.github.com>
- Rename the user from 'app' to 'modmail', and made it a system user instead.
- Moved user creation to a higher layer in the Dockerfile.


Signed-off-by: Taku <45324516+Taaku18@users.noreply.github.com>
Removed LICENSE, PRIVACY.md, and SPONSORS.json from .dockerignore. Although they don't affect the functionalities of the bot, we prefer to include them due to their respective purposes.

Signed-off-by: Taku <45324516+Taaku18@users.noreply.github.com>
@Taaku18 Taaku18 changed the title fix: blocked command, replies in dms. v4.1.0 Release Jul 12, 2023
baptiste0928 and others added 7 commits July 15, 2023 11:36
* Set size for guild icons on embeds

* Update changelog

* Format with black

* Fixed incorrect function return type

---------

Signed-off-by: Taku <45324516+Taaku18@users.noreply.github.com>
Co-authored-by: Taku <45324516+Taaku18@users.noreply.github.com>
* Update modmail.py

* Update clients.py

* Formatting

* Change log id to log key, added id as an alias

* Print the log even if it is closed and fix bug

* Update modmail.py

* Added a missing period

* Updated changelog

---------

Co-authored-by: Taku <45324516+Taaku18@users.noreply.github.com>
* Enable `discord.py` logger by default.

* Revert:

- Restore import orders
- Logging stuff is now completely handled in `core.models.configure_logging`

* Update logging configurations

* Updated changelog

* Fix overflow characters in logs when using `?debug` command.

* Update changelog

---------

Co-authored-by: Taku <45324516+Taaku18@users.noreply.github.com>
* Cleanup after unloading extension, resolve #3223.

* Remove leftover modules loaded from `plugins` path when purging.

---------

Co-authored-by: Taku <45324516+Taaku18@users.noreply.github.com>
* Fix typo

* Rephrase the silently close messsage

* Update changelog

---------

Co-authored-by: Taku <45324516+Taaku18@users.noreply.github.com>
* strip help command title

* Update changelog

---------

Co-authored-by: Taku <45324516+Taaku18@users.noreply.github.com>
* Reminder Plugin

Created a reminder plugin

* Fix indentations

* confirm_thread_creation Buttons instead of reactions

* Changelog+Small fixes

* Updated the react to confirm message, and removed changelog entry

* Code linting with black

* Update changelog

---------

Co-authored-by: Taku <45324516+Taaku18@users.noreply.github.com>
Taaku18 and others added 29 commits July 17, 2023 16:24
* Add JSON logging support

This adds support for JSON logging, along with the relevant options required.

This does not change the default log behaviour, so should be backwards compatible.

It is opt in via the LOG_FORMAT option, which can be 'json' to use the new logger, or anything else to fallback
to the old behaviour.

This is implemented in terms of a custom formatter, which is optionally applied to the stdout stream.
The debug stream is unaffected by this.

* Allow JSON to be selected when creating handlers

* Allow different formats to be selected for streams/files

* Remove old / unused code

* Add new config opts to helpfile

* Formatting, basic typing and reorder for consistency in project.

---------

Co-authored-by: Jerrie-Aries <hidzrie@gmail.com>
Co-authored-by: Taku <45324516+Taaku18@users.noreply.github.com>
* Fix rate limit issue on raw reaction add/remove events.

* Pasd message object to `find_linked_messages` since it is already fetched.

---------

Co-authored-by: Taku <45324516+Taaku18@users.noreply.github.com>
* Add config to change how long logs are stored

* Optimize deleting logs

* Update core/config_help.json

Co-authored-by: khakers <22665282+khakers@users.noreply.github.com>
Signed-off-by: Cordila <49218334+Cordila@users.noreply.github.com>

* Testing changes

* Update core/config_help.json (Fix copy paste)

Co-authored-by: Jerrie <70805800+Jerrie-Aries@users.noreply.github.com>
Signed-off-by: Cordila <49218334+Cordila@users.noreply.github.com>

---------

Signed-off-by: Cordila <49218334+Cordila@users.noreply.github.com>
Co-authored-by: Cordila <49218334+Cordila@users.noreply.github.com>
Co-authored-by: khakers <22665282+khakers@users.noreply.github.com>
Co-authored-by: Taku <45324516+Taaku18@users.noreply.github.com>
Co-authored-by: Jerrie <70805800+Jerrie-Aries@users.noreply.github.com>
* Add `rename` to `registry.json`

Signed-off-by: Nicklaus <100449899+Nicklaus-s@users.noreply.github.com>

* Change icon

Signed-off-by: Nicklaus <100449899+Nicklaus-s@users.noreply.github.com>

---------

Signed-off-by: Nicklaus <100449899+Nicklaus-s@users.noreply.github.com>
* fix: discord invite ( new server )

Signed-off-by: lorenzo132 <50767078+lorenzo132@users.noreply.github.com>

* Update link

Signed-off-by: Taku <45324516+Taaku18@users.noreply.github.com>

---------

Signed-off-by: lorenzo132 <50767078+lorenzo132@users.noreply.github.com>
Signed-off-by: Taku <45324516+Taaku18@users.noreply.github.com>
Co-authored-by: Taku <45324516+Taaku18@users.noreply.github.com>
@Taaku18 Taaku18 merged commit 61336bc into master Nov 26, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet