Modmail

A Discord bot that functions as a shared inbox between staff and members, similar to Reddit's Modmail.

AGPL-3.0 License

Stars
1.6K
Committers
61

Bot releases are hidden (Show)

Modmail - Final v2.13.x release - ability to disable sent and blocked emoji

Published by Taaku18 almost 5 years ago

What's new?

Added the ability to disable the sent_emoji and blocked_emoji when a user messages modmail.

You can do this via ?config set sent_emoji disable

Fixed

The bot now handles having too many roles to show in the thread created embed.

Modmail - Style Update

Published by Taaku18 almost 5 years ago

What's new?

Added image link in title in case discord fails to embed an image.

Modmail - Implement account age

Published by Taaku18 almost 5 years ago

What's new?

  • Introduced a new configuration variable account_age for setting a minimum account creation age.
    • Users blocked by this reason will be stored in blocked along with other reasons for being blocked.
    • account_age needs to be an ISO-8601 Duration Format (examples: P12DT3H 12 days and 3 hours, P3Y5M 3 years and 5 months PT4H14M999S 4 hours 14 minutes and 999 seconds). https://en.wikipedia.org/wiki/ISO_8601#Durations.
    • You can set account_age using config set account_age time where "time" can be a simple human readable time string or an ISO-8601 Duration Format string.

Changed

  • block reason cannot start with System Message: as it is now reserved for internal user blocking.
  • block, like close, now supports a block duration (temp blocking).
Modmail - Bug Fix

Published by Taaku18 almost 5 years ago

Fixed

  • Fixed an issue where status and activity do not work if they were modified wrongly in the database.
    • This was especially an issue for older Modmail users, as the old status configuration variable clashes with the new status variable.
Modmail - Bug Fix

Published by Taaku18 over 5 years ago

Fixed

  • Fixed a bug where an error was raised when a message with received during a scheduled closure.
Modmail - Bug Fix

Published by Taaku18 over 5 years ago

Fixed

  • A bug where a thread was blocked from sending messages when multiple images were uploaded, due to a typo.

changed

Modmail - Stable Release

Published by Taaku18 over 5 years ago

Added

  • The ability to enable typing interactions.
    • If you want the bot to type in the thread channel if the user is also typing, add the config variable user_typing, the value doesn't matter, just it's the presence. use config del to disable the functionality. The same thing in reverse is also possible if you want the user to see the bot type when someone is typing in the thread channel add the mod_typing config variable.
  • New status command, change the bot's status to online, idle, dnd, invisible, or offline.
    • To remove the status (change it back to default), use status clear.
    • This also introduces a new internal configuration variable: status. Possible values are online, idle, dnd, invisible, and offline.

Changed

  • The internals for activity has drastically changed to accommodate the new status command.
Modmail - Bug Fix

Published by Taaku18 over 5 years ago

Fixed

  • Fixed a bug in the contact command where the response message did not send.
Modmail - Stable Release

Published by Taaku18 over 5 years ago

Added

  • You will no longer need to view your bot debug logs from Heroku. debug will show you the recent logs within 24h through a series of embeds.
    • If you don't mind your data (may or may not be limited to: user ID, guild ID, bot name) be on the internet, debug hastebin will upload a formatted logs file to https://hasteb.in.
    • debug clear will clear the locally cached logs.
    • Local logs are automatically cleared at least once every 27h for bots hosted on Heroku.

Fixed

  • Will no longer show Unclosed client session and Task was destroyed but it is pending! when the bot terminates.
  • thread.create is now synchronous so that the first message sent can be queued to be sent as soon as a thread is created.
    • This fixes a problem where if multiple messages are sent in quick succession, the first message sent (which triggers the thread creation) is not sent in order.
  • Trying to reply to someone who has DMs disabled or has blocked the bot is now handled and the bot will send a message saying so.

Changed

  • print is replaced by logging.
    • New environment variable introduced: LOG_LEVEL.
    • This influences the number of messages received in Heroku logs.
    • Possible options, from least to most severe, are: INFO, DEBUG, WARNING, ERROR, CRITICAL.
    • In most cases, you can ignore this change.
  • on_error and CommandNotFound are now logged.
Modmail - Stable Release

Published by Taaku18 over 5 years ago

Changed

  • ?contact no longer raise a silent error in Heroku logs when the recipient is a bot. Now Modmail responds with an error message.
Modmail - Bug Fix

Published by Taaku18 over 5 years ago

Fixed

  • Fixed a typo in the config options.
Modmail - Bug Fix

Published by Taaku18 over 5 years ago

Fixed

  • Installing requirements.txt files in plugins.
Modmail - Bug Fix

Published by Taaku18 over 5 years ago

Fixed

  • Reading requirements.txt files in plugins.
Modmail - Plugins

Published by Taaku18 over 5 years ago

Added

  • Plugins:
    • Think of it like addons! Anyone (with the skills) can create a plugin, make it public and distribute it. Add a welcome message to Modmail, or moderation commands? It's all up to your imagination! Have a niche feature request that you think only your server would benefit from? Plugins are your go-to!
    • Creating Plugins Documentation.
Modmail - Bug Fix

Published by Taaku18 over 5 years ago

Fixed

  • config del command will now work properly on self-hosted db bots.
Modmail - Named colors

Published by Taaku18 over 5 years ago

Added

  • Named colors are now supported! Over 900 different common color names are recognized. A list of color names can be found in core/_color_data.py.
    • Named colors can be set the same way as hex. But this can only be done through config set, which means database modifications will not work.
    • For example: config set main_color yellowish green.
  • New config var main_color allows you to customize the main Modmail color (as requested by many). Defaults to Discord blurple.
Modmail - Bug Fix

Published by Taaku18 over 5 years ago

Fixed

  • Patched a bug where logs sub-commands were accessible by anyone.
  • Patched a bug where an error was raised if there was an open thread where the recipient had left the server.

Huge thanks to Sasiko for reporting these issues.

Modmail - Bug Fix

Published by Taaku18 over 5 years ago

Fixed

  • Fixed a bug in self-hosted ?update command.

Note:

  • If you're experiencing an issue where the bot is unable to update itself using the ?update command, please join our Discord server (link's in the homepage). Our moderators will be able to help you sort things out.
Modmail - Stable Release

Published by Taaku18 over 5 years ago

Changed

  • logs search now also searches usernames present in thread logs.
Modmail - Stable Release

Published by Taaku18 over 5 years ago

Important

In the future, the Modmail API (https://modmail.tk) will be deprecated. This is due to the fact that we are providing a free service without getting anything in return, and thus we do not have the resources to scale to accommodate for more users. We recommend using your own database for logs. In the future, you will soon get a backup command so you can download all your pre-existing data and migrate to your own database.


Changed

  • A lot of painful code cleanup, which is good for us (the devs), but shouldn't affect you.
  • The appearance of the logs command. Should be clearer with better info now.
  • Bot owners get access to all commands regardless of server permissions.

Added

Note: The following commands only work if you are self-hosting your logs. We recommend you to use your own database.

  • Log search queries, in the form of two new commands.
  • logs search [query] - this searches all log messages for a query string.
  • logs closed-by [user] this returns all logs closed by a certain user

Fixed

  • ?activity listening to music no longer results in two "to"s ("listening to to music").
    • This may require you to change your activity message to accommodate this fix.
  • A problem where main_category_id and log_channel_id weren't updated when their corresponding channel or category get deleted.