All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog. This project mostly adheres to Semantic Versioning; however, insignificant breaking changes do not guarantee a major version bump, see the reasoning here. If you're a plugins developer, note the "BREAKING" section.
Fixed discord.py issue.
- A confirmation when you manually delete a thread message embed.
- Config var
enable_eval
defaults true, setenable_eval=no
to disable the eval command. (GH #2803) - Added
?plugins reset
command to completely reset everything related to plugins. This will fix some problems caused by broken plugins in the file system. - Support private GitHub repos for plugins (thanks to @officialpiyush pr#2767)
- Bump discord.py version to v1.3.3.
- Renamed
bot.owner_ids
tobot.bot_owner_ids
as the attribute is now defined internally for team support. - Deleting channel manually will now close the thread.
- Deleting messages will no longer cause the bot to produce warnings.
- Plugins will automatically be removed when it fails to load.
- Moved all database-related activities to clients.py under MongoDBClient, with possible future hook for additional database support.
bot.db
is deprecated in favour ofbot.api.db
and will be removed in the future.- Deprecated
bot.plugin_db.get_partition
in favour ofbot.api.get_plugin_partition
(not final). - Deprecated
MONGO_URI
config var (but will keep support in the future) in favour ofCONNECTION_URI
andDATABASE_TYPE
. Right now there is one supported database - "mongodb", which is the default.
- Plugins not loading in Windows OS. Now uses proactor event loop for asyncio which should fix this.
- Masked a bunch of noise errors when deleting messages.
- Added more checks for deleting messages.
thread_initiate
will be dispatched at the beginning of the setup process.thread_create
is dispatched when the thread is registered as a thread by Modmail (i.e., when channel topic is edited).thread_ready
is dispatched when a thread finishes its setup steps.
- Thread cooldown!
- Set via the new config var
thread_cooldown
. - Specify a time for the recipient to wait before allowed to create another thread.
- Set via the new config var
- Fallback Category (thanks to DAzVise PR#636)
- Automatically created upon reaching the 50 channels limit.
- Manually set fallback category with the config var
fallback_category_id
.
- "enable" and "disable" support for yes or no config vars.
- Added "perhaps you meant" section to
?config help
. - Multi-command alias is now more stable. With support for a single quote escape
\"
. - New command
?freply
, which behaves exactly like?reply
with the addition that you can substitute{channel}
,{recipient}
, and{author}
to be their respective values. - New command
?repair
, repair any broken Modmail thread (with help from @officialpiyush). - Recipients get feedback when they edit their messages.
- Chained delete for DMs now comes with a message.
- poetry (in case someone needs it).
- The look of alias and snippet when previewing.
- The database now saves the message ID of the thread embed, instead of the original message.
- Swapped the position of user and category for
?contact
. - The log file will no longer grow infinitely large.
- A hard limit of a maximum of 25 steps for aliases.
?disable
is now?disable new
.
- Setting config vars using human time wasn't working.
- Fixed some bugs with aliases.
- Fixed many issues with
?edit
and?delete
and recipient message edit. - Masked the error: "AttributeError: 'int' object has no attribute 'name'"
- Channel delete event will not be checked until discord.py fixes this issue.
- Chained reaction add/remove.
- Chained delete for thread channels.
- Commit to black format line width max = 99, consistent with PyLint.
- No longer requires shlex for alias parsing.
- New checks with thread create / find.
- No more flake8 and Travis.
- An oversight with the permission system.
- Fixed a recent issue with an animation KeyError due to Discord API update.
- Recommend all users to unblock and re-block all blocked users upon updating to this release.
- Three new config vars:
enable_plugins
(yes/no default yes)- When set to no, Modmail will not load plugins.
error_color
(color format, defaults discord red)- The color of error messages.
anon_reply_without_command
(yes/no default no) (Thanks to papiersnipper PR#288)- When set, all non-command messages sent to thread channels are forwarded to the recipient anonymously without the need of
?anonreply
. - This config takes precedence over
reply_without_command
.
- When set, all non-command messages sent to thread channels are forwarded to the recipient anonymously without the need of
?logs responded [user]
command. It will show all the logs that the user has sent a reply. (Thanks to papiersnipper PR#288)user
when not provided, defaults to the user who ran the command.
- Open threads in limbo now auto-close if Modmail cannot find the channel. Modmail does this check every time the bot restarts.
- Ability to disable new threads from getting created.
?disable
.
- Ability to fully disable Modmail DM.
?disable all
.
- To re-enable DM:
?enable
, and to see the current status:?isenable
. - This disabled Modmail interface is customizable with the following config vars:
disabled_new_thread_title
disabled_new_thread_response
disabled_new_thread_footer
disabled_current_thread_title
disabled_current_thread_response
disabled_current_thread_footer
- Ability to delete notes when providing their ID. (Thanks to papiersnipper PR#402)
- Ability to delete log entries. (Thanks to papiersnipper PR#402)
?contact
no longer send the "thread created" message to where the command was run, instead, it's now sent to the newly created thread channel. (Thanks to DAzVise)- Automatically delete notes command
?note
when there're no attachments attached. - Embed author links used to be inaccessible in many cases, now:
?anonreply
,?reply
, and?note
in the thread channel will link to the sender's profile.?reply
and the recipient's DM will also link the sender's profile.?anonreply
in DM channel will link to the first channel of the main guild.
- Plugins update (mostly internal).
git
is no longer used to install plugins; it now downloads through zip files.?plugins enabled
renamed to?plugins loaded
whileenabled
is still an alias to that command.- Reorganized plugins folder structure.
- Logging / plugin-related messages change.
- Updating one plugin will not update other plugins; repositories no longer separate plugins, but the plugin name itself.
- The help command is in alphabetical order grouped by permissions.
- Notes are no longer always blurple; it's set to
MAIN_COLOR
now. - Added
?plugins update
for updating all installed plugins. - Reintroduce flake8 and use bandit for security issues detection.
- Add Travis checks for 3.6 in Linux and 3.7 for macOS and Windows.
- Debug logs not logs eval commands.
- Presence updates 30 minutes instead of 45 now.
- Fixed an assortment of problems to do with
?block
. - Existing aliases can be used when creating new aliases. (Thanks to papiersnipper PR#402)
- Reworked
config.get
andconfig.set
, it feeds through the converters before setting/getting.- To get/set the raw value, access through
config[]
.
- To get/set the raw value, access through
- The prerelease naming scheme is now
x.x.x-devN
. trigger_typing
has been moved tocore.utils.trigger_typing
, the original location is deprecated.- Simpler status and activity logic.
- New logging logic.
Security update!
- Supporter permission users used to be able to "hack" snippets to reveal all your config vars, including your token and MongoURI.
- Implemented some changes to address this bug:
- All customizable variables used in snippets, close messages, etc., using the
{}
syntax, now forbids chaining two or more attributes and attributes that start with_
.
- All customizable variables used in snippets, close messages, etc., using the
- We advise you to update to this version.
- If you felt your credentials had been leaked, consider changing your bot token / MongoURI.
- Can't set hex for main_color, recipient_color, etc.
- Discord colors by default when addressing them by names.
- Ability to change permission levels of individual commands.
- See
?permissions override
for more information.
- See
thread_move_notify
andthread_move_response
to notify recipients if a thread is moved. (Thanks to Flufster PR#360)- IDs of messages sent to Modmail are now viewable. (Thanks to Flufster PR#360)
?help <some sub command>
, will returnPerhaps you meant: <some sub command>
, now it's fixed.- For example,
?help add
used to returnPerhaps you meant: add
, now it wouldn't do this.
- For example,
- Aliases and Permissions command names are always saved lowercase now.
- An improved Dockerfile.
- Use regex to parse Changes, Added, Fixed, etc. and description.
- Adds
PermissionLevel.INVALID
when commands don't have a permission level.
- An issue when reading
config_help.json
for Windows users due to an encoding problem.
disable_recipient_thread_close
is removed, a new configuration variablerecipient_thread_close
replaces it which defaults to False.- Truthy and falsy values for binary configuration variables are now interpreted respectfully.
LOG_URL_PREFIX
cannot be set to "NONE" to specify no additional path in the future, "/" is the new method.
?sfw
, mark a thread as "safe for work", undos?nsfw
.- New config variable,
thread_auto_close_silently
, when set to a truthy value, no message will be sent when a thread is auto-closed. - New configuration variable
thread_self_closable_creation_footer
— the footer whenrecipient_thread_close
is enabled. - Added a minimalistic version of requirements.txt (named requirements.min.txt) that contains only the absolute minimum of Modmail.
- For users having trouble with pipenv or any other reason.
- Multi-step alias, see
?help alias add
. Public beta testing might be unstable. - Misc commands without cogs are now displayed in
?help
. ?help
works for alias and snippets.?config help <config-name>
shows a help embed for the configuration.- Support setting permissions for subcommands.
- Support numbers (1-5) as substitutes for Permission Level REGULAR - OWNER in
?perms
subcommands.
thread_auto_close_response
has a configurable variable{timeout}
.?snippet
is now the default command name instead of?snippets
(?snippets
is still usable). This is to make this consistent with?alias
/?aliases
.colorama
is no longer a necessity; this is due to some unsupported OS.- Changelog command can now take a version argument to jump straight to the specified version.
?plugin enabled
results are now sorted alphabetically.?plugin registry
results are now sorted alphabetically, helps users find plugins more easily.?plugin registry page-number
plugin registry can specify a page number for quick access.- A reworked interface for
?snippet
and?alias
.- Add an
?snippet raw <name>
command for viewing the raw content of a snippet (escaped markdown). - Add an
?alias raw <name>
command for displaying the raw content of an alias (escaped markdown).
- Add an
- The placeholder channel for the streaming status changed to https://www.twitch.tv/discordmodmail/.
- Removed unclear
rm
alias for someremove
commands. - Paginate
?config options
. - All users configured with a permission level higher than REGULAR has access to the main Modmail category.
- Category overrides also changes when a level is removed or added to a user or role.
@everyone
is now accepted for?perms add
.
?notify
no longer carries over to the next thread.discord.NotFound
errors foron_raw_reaction_add
.mod_typing
and(user_typing
user_typing
is now by-design to show) will no longer show when the user is blocked.- Better
?block
usage message. - Resolved errors when mods sent messages after a thread is closed somehow.
- Recipient join/leave server messages are limited to only the guild set by
GUILD_ID
. - When creating snippets and aliases, it now checks if other snippets/aliases with the same name exist.
- Modmail looked for
config.json
in the wrong directory.
- Removed supporting code for GitHub interaction.
- All default config values moved to
core/config.py
. config.cache
is no longer accessible, useconfig['key']
for getting,config['key'] = value
for setting,config.remove('key')
for removing.- Dynamic attribute for configs are removed, must use
config['key']
orconfig.get('key')
. - Removed helper functions
info()
anderror()
for formatting logging, it's formatted automatically now. - Bumped discord.py version to 1.2.3.
- Use discord tasks for metadata loop.
- More debug based logging.
- Reduce redundancies in
?perms
sub commands. - paginator been split into
EmbedPaginatorSession
andMessagePaginatorSession
, both subclassingPaginatorSession
.
- New commands,
?alias edit <name> <target>
and?snippets edit <name> <target>
.- They can be used to edit aliases and snippets, respectively.
- A new command,
?blocked whitelist <user>
, this command prevents users from getting blocked by any means.
- Removed some aliases from
?oauth
.
- Many bugs with
thread_auto_close
.
?sponsors
command will list sponsors.- An alert will now be sent to the log channel if a thread channel fails to create. This could be due to a variety of problems such as insufficient permissions, or the category channel limit is met.
- Threads will close automatically after some time when
thread_auto_close
is set. - Custom closing messages can be configured with
thread_auto_close_response
.
- Removed auto-update functionality and the
?update
command in favor of the Pull app.
Read more about updating your bot here
- Channel names now can contain Unicode characters.
- Debug logs are now located in a different file for each bot. (Internal change)
- Default cogs always appear first in the help command now.
- Editing notes now work, minor bug with edit command is fixed.
- Bug in the
?oauth
command where the response message fails to send when an ID is provided. - Plugin requirement installation now works in virtual environments
Fixed a bug with branches and ?plugin update
.
Branch support for ?plugin add
and in the registry. Typically for developers.
Added a "Mutual servers" field to the genesis embed if: a) The user is not in the main guild. b) The user shares more than one server with the bot.
Notes with the ?note
command are now automatically pinned within the thread channel.
Added a 🛑 reaction to the paginators to delete the embed.
?blocked
is now paginated using reactions. This fixes #249
New ?plugin registry compact
command which shows a more compact view of all plugins.
Plugin developers can now make a PR to include their plugin in the plugin registry
command.
Add your plugin in the plugins/registry.json
file in the main repository.
?debug
command now shows the most recent logs first. (Starts at the last page)
- New error message when using thread-only commands outside of threads.
?unnotify
, ability to undo?notify
.?notify
and?subscribe
now accepts other users.
This update contains mostly internal changes.
- Implemented support for the new discord.py v1.1.1.
- Improved help text for most commands.
- Completely revamped help command, few users changes.
- Removed ABC (internal).
New ?oauth whitelist
command, which allows you to whitelist users so they can log in via discord to view logs. To set up oauth login for your logviewer app, check the logviewer repo.
- Ability to force an update despite having the same version number. Helpful to keep up-to-date with the latest GitHub commit.
?update force
.
- Plugin developers now have a new event called
on_plugin_ready
; this is a coroutine and is awaited when all plugins are loaded. Useon_plugin_ready
instead ofon_ready
sinceon_ready
will not get called in plugins.
- New config variable
guild_age
, similar toaccount_age
,guild_age
sets a limit as to how long a user has to wait after they joined the server to message Modmail. guild_age
can be set the same way asaccount_age
.
Fix help command bug when using external plugins.
Fix the teams permission bug.
Commands now have better error messages. Instead of sending the help message for a command when an argument fails to be converted, the bot now says like "User 'bob' not found" instead.
Un-deprecated the OWNERS
config variable to support Discord developer team accounts.
- A brand new permission system! Replaced the old guild-based permissions (i.e., manage channels, manage messages), with the new system enables you to customize your desired permission level specific to a command or a group of commands for a role or user.
- There are five permission levels:
- Owner [5]
- Administrator [4]
- Moderator [3]
- Supporter [2]
- Regular [1]
You may add a role or user to a permission group through any of the following methods:
?permissions add level owner @role
?permissions add level supporter member-name
?permissions add level moderator everyone
?permissions add level moderator @member#1234
?permissions add level administrator 78912384930291853
The same applies to individual commands permissions:
?permissions add command command-name @member#1234
- and the other methods listed above.
To revoke permission, use remove
instead of add
.
To view all roles and users with permission for a permission level or command do:
?permissions get command command-name
?permissions get level owner
By default, all newly set up Modmail will have OWNER
set to the owner of the bot, and REGULAR
set to @everyone.
When updating to this version, all prior permission settings with guild-based permissions will be invalidated. You will need to convert to the above system.
OWNERS
will also get removed; you will need to set owners through ?permissions add level owner 212931293123129
or any way listed above.
- A
?delete
command, which is an alternative to manually deleting a message. This command is created to no longer require "manage messages" permission to recall thread messages.
- The help message no longer conceals inaccessible commands due to check failures.
- Logs search command will search through log keys as well now.
- For example,
?logs search e7499e82f8ff
.
Stricter fallback genesis embed search.
How Modmail checks if a channel is a thread:
- The bot first checks if the channel topic is in the format
User ID: XXXX
, this means it is a thread. - If a channel topic is not found, the bot searches through the message history of a channel to find the thread creation embed. This step should never yield a thread for an average user. Still, in the case of another bot messing up the channel topic (happened to a user before), this extra step was added.
Added a config option reply_without_command
, which, when present, enables the bot to forward any message sent in a thread channel to the recipient. (Replying without using a command)
To enable this functionality, do ?config set reply_without_command true
and to disable it, use ?config del reply_without_command
.
The move
command now only requires manage_messages
perms instead of manage_channels
.
An issue where a scheduled close would not execute over a long time if the recipient no shares any servers with the bot.
All support for Modmail API (api.modmail.tk) has terminated. If you're still using api.modmail.tk, you will need to migrate to the self-hosted database option ASAP. Your bot will not work unless you switch to the self-hosted option. Refer to the installation tutorial for information regarding self-hosted Modmail.
If a member leaves/joins (again) while they are a recipient of a thread, a message will be sent to notify you that this has occurred.
Emergency patch of a SyntaxError.
Added the ability to change the default close message via the introduction of two config variables.
thread_close_response
- when someone closes the thread.thread_self_close_response
- when the recipient closes their own thread.
They will be provided by string variables that you can incorporate into them:
closer
- the user object that closed the thread.logkey
- the key for the thread logs, e.g. (5219ccc82ad4
)loglink
- the full link to the thread logs, e.g. (https://logwebsite.com/logs/5219ccc82ad4
)
Example usage would be: ?config set thread_close_message {closer.mention} closed the thread, here is the link to your logs: [**`{logkey}`**]({loglink})
Added the ability to enable the recipient to close their own threads. This takes place in the form of a reaction that the user can click to close their thread. This functionality is now enabled by default.
To disable this, do ?config set disable_recipient_thread_close true
More config variables have been added that you can edit.
close_emoji
- the emoji that the user can click on to close a thread. Defaults to a lock (🔒)
You now have complete control of the look of the thread creation and close embeds the users see.
thread_creation_title
- the title of the embed. Defaults to 'Thread Created'thread_creation_footer
- the footer text in the embed. Defaults to 'Your message has been sent...'thread_close_title
- the title of the embed. Defaults to 'Thread Closed'thread_close_footer
- the footer text in the embed. Defaults to 'Replying will create a new thread'
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
.
The bot now handles having too many roles to show in the thread created embed.
Added image link in title in case discord fails to embed an image.
- 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 monthsPT4H14M999S
4 hours 14 minutes and 999 seconds). https://en.wikipedia.org/wiki/ISO_8601#Durations.- You can set
account_age
usingconfig set account_age time
where "time" can be a simple human-readable time string or an ISO-8601 Duration Format string.
- Users blocked by this reason will be stored in
?block
reason cannot start withSystem Message:
as it is now reserved for internal user blocking.?block
, like?close
, now supports a block duration (temp blocking).
- Fixed an issue where status and activity do not work if they were modified wrongly in the database.
- This was primarily an issue for older Modmail users, as the old
status
configuration variable clashes with the newstatus
variable.
- This was primarily an issue for older Modmail users, as the old
- Fixed a bug where an error was raised when a message with received during a scheduled closure.
- A bug where a thread was blocked from sending messages when multiple images were uploaded, due to a typo.
- Uses https://hasteb.in instead of https://hastebin.com for
?debug hastebin
.
- 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
and set it to "yes" or "true". Useconfig 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 themod_typing
config variable.
- If you want the bot to type in the thread channel if the user is also typing, add the config variable
- New
status
command, change the bot's status toonline
,idle
,dnd
,invisible
, oroffline
.- To remove the status (change it back to default), use
status clear
. - This also introduces a new internal configuration variable:
status
. Possible values areonline
,idle
,dnd
,invisible
, andoffline
.
- To remove the status (change it back to default), use
- The internals for
activity
has drastically changed to accommodate the newstatus
command.
- Fixed a bug in the contact command where the response message did not send.
- 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 erased at least once every 27h for bots hosted on Heroku.
- If you don't mind your data (may or may not be limited to user ID, guild ID, bot name) be on the internet,
- Will no longer show
Unclosed client session
andTask 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.
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.
- New environment variable introduced:
on_error
andCommandNotFound
are now logged.
?contact
no longer raise a silent error in Heroku logs when the recipient is a bot. Now Modmail responds with an error message.
- Fixed a typo in the config options.
- Installing
requirements.txt
files in plugins.
- Reading
requirements.txt
files in plugins.
- 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? Plugins are your go-to!
- Creating Plugins Documentation.
config del
command will now work correctly on self-hosted DB bots.
- 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
.
- Named colors can be set the same way as hex. But this can only be done through
- New config var
main_color
allows you to customize the main Modmail color (as requested by many). Defaults to Discordblurple
.
- Patched a bug where
logs
sub-commands were accessible by anyone. - Patched a bug where an error was raised when a thread is open where the recipient left the server.
Huge thanks to Sasiko for reporting these issues.
- Fixed a bug in self-hosted
?update
command.
logs search
now also searches usernames present in thread logs.
In the future, the Modmail API (https://modmail.tk) will be deprecated. This is because we are providing free service without getting anything in return. Thus we do not have the resources to scale to accommodate 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.
- A lot of painful code cleanup, which is good for us (the developers), but shouldn't affect you.
- The appearance of the
?logs
command. It should be clearer with better info now. - Bot owners get access to all commands regardless of server permissions.
- Blocked users no longer receive a message, only the blocked emoji will be sent.
- 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 particular user
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
andlog_channel_id
weren't updated when their corresponding channel or category get deleted.
loglink
command, returns the log link for the current thread.
- Your logs now track and show edited messages.
- Use reply author's top role for the mod tag by default.
anonreply
command to anonymously reply to the recipient. The username of the anonymous user defaults to themod_tag
(the footer text of a mod reply message) — the avatar defaults to the guild icon URL. However, you can change both of these via theanon_username
,anon_avatar_url
, andanon_tag
config variables.
- Your bot now logs all messages sent in a thread channel, including discussions that take place. You can now toggle to view them in the log viewer app.
- Small bug due to a typo.
- Forgot to enable custom embed colors.
- Ability to set a custom
mod_tag
(the text in the footer of the mod reply embed, which by default says "Moderator")
- Improve format of thread info embed. Slightly cleaner and simpler now.
- All commands are now blurple instead of green.
- Bug where the close command wouldn't work if you didn't configure a log channel.
- Ability to set your own custom
mod_color
andrecipient_color
for the thread message embeds.
- Changed order of arguments for
contact
. This is so that you can use aliases to their full potential. - For example:
contact "Recruitment Category" @somedude
- You can add an alias by doing:
alias add recruit contact "Recruitment Category"
.- Now you can use the alias via:
recruit @somedude
.
- Now you can use the alias via:
- New command
note
will add a system message to your thread logs. - - This is useful for noting the context of a conversation.
- Fixed bug where thread logs were getting duplicated when using the
contact
command. - Fixed bug where the wrong key was used for logs, which caused some
log
command log links to point to an HTTP 404 Not Found.- A minor oversight from commit 1ba74d9.
- Major improvement in viewing thread logs.
- Log links are now rendered in HTML instead of plain text.
config options
command to see a list of valid config variables that you can modify.
Thread channels will now default to being private (@everyone
's read message perms set to false
).
- If the thread creation category could not be resolved.
- This will save you from some trouble if, for whatever reason, your configuration gets messed up.
- All reference to "modmail" / "Mod Mail" / "ModMail" are changed to "Modmail".
log_channel_id
is now part of the config uponsetup
.- Added the ability to set where threads are created using the
main_category_id
configuration option.
- If your Modmail bot was set up a long time ago, you might experience an issue where messages were sent outside of the category.
- To fix this, set
main_category_id
to the ID of the Modmail category.
- To fix this, set
move
command now syncs thread channel permissions with the destination category.contact
command now supports an optional category argument (where the thread channel will be created).
- Fixed small issue with finding threads.
- Fixed log URLs for self-hosting users.
- Replaced the testing
API_BASE_URL
with the actual URL.
threads
is now a default alias tologs
.
- Log URLs are moved to their own collection.
- Log URLs are now
https://logs.modmail.tk/LOGKEY
, no more numbers before the log key. - We still support the numbers to not break everyone's URLs so quickly, but both work at the moment.
- This is a huge change to the backend logging, and there might be migration errors. If so, please contact us in our Discord server.
- Fixed a bug where requests sent when the API was not ready.
- Emergency patch to save configs.
- Bots hosted by Heroku restart at least once every 27 hours.
- During this period, local caches will be deleted, which results in the inability to set the scheduled close time to longer than 24 hours. This update resolves this issue.
- PR #135
- Created a new internal config var:
closures
. - Store closure details into
closures
when the scheduled time isn't "now".- Loaded upon bot restart.
- Deleted when a thread is closed.
- Use
call_later()
instead ofsleep()
for scheduling.
Fixed activity setting due to flawed logic in config.get()
function.
Fixed a bug in the ?activity
command where it would fail to set the activity on bot restart if the activity type was playing
.
- Moved self-hosted log viewer to a separate repo.
- Ability to set your own Twitch URL for
streaming
activity status.
- Small bug in
?activity
command.
- Added the
?activity
command for setting the activity - PR #131 this supports multiple activity types (
playing
,watching
,listening
, andstreaming
).
- Removed the deprecated
status
command. - This also means you will have to reset your bot status with the
?activity
command, as the?status
command was removed.
- Ability to self-host logs.
- Improved format for log channel embeds.
- Roles are now comma-separated in info embed.
- This only applies to separate server setups.
- Bug in subscribe command.
- It will now unsubscribe after a thread is closed.
-
Notify command
notify [role]
.- Notify a given role or yourself to the next thread message received.
- Once a thread message is received, you will be pinged once only.
-
Subscribe command
sub [role]
/unsub [role]
.- Subscribes yourself or a given role to be notified when thread messages are received.
- You will be pinged for every thread message received until you unsubscribe.
- Slightly improved log channel message format.
- Small bug in
close
command.
- Ability to set a custom thread-creation-response message.
- Via
config set thread_creation_response [message]
.
- Via
- Improve
?logs
command format. - Improve thread log channel messages to have more relevant info.
- Improve close command.
- You can now close the thread after a delay and use a custom thread close message.
- You also now can close a thread silently.
- Fix a bug where blocked users were still able to message Modmail.
- Support for custom blocked and sent emoji.
- Use the
config set blocked_emoji [emoji]
orsent_emoji
commands.
- Support multiple images and file attachments in one message.
- This is only possible on mobile, so its good to handle it in code.
- Added the ability to use your own log channel.
- You can do this via the
config set log_channel_id <id>
command.
- You can do this via the
- Added the ability to use your own main inbox category.
- You can do this via the
config set main_category_id <id>
command.
- You can do this via the
- You can now supply a reason when blocking a user.
- Blocked users are now stored in the database instead of in the channel topic.
- This means you can delete the top channel in the Modmail category now (after migrating the currently blocked users).
- Added a
changelog
command to view the bot's changelog within discord.
update
command now shows the latest changes directly from CHANGELOG.md.- Auto-update messages also show the latest changes from the GitHub repo.
- Removed the "latest changes" section from the
about
command.
- Fix logs sending duplicated thread close logs.
- The bot will now tell you that a user is no longer in the server when you try to reply to a thread.
- Before this, it looked like you replied to the thread, but in reality, the message was not sent.
alias
command now checks if you are adding a valid alias-command combo.- Manually deleting a channel will now correctly close the thread and post logs.
- Fixed a one-off bug where the channel topic disappears, but Modmail operations should continue.
- Fixed
linked_message_id
issues.
- The thread creation embed now shows the correct number of past logs.
- If using a separate server setup, roles in the info embed now are shown as names instead of mentions.
- This is because you can't mention roles across servers.
- Made the
logs
command require "manage messages" permissions to execute.- Before this patch, anyone could use the
logs
commands.
- Before this patch, anyone could use the
- Improved
block
/unblock
commands.- They now take a more comprehensive range of arguments: usernames, nicknames, mentions, and user IDs.
- Setup command now configures permissions correctly so that the bot will always be able to see the main operations category.
This release introduces the use of our centralized API service to enable dynamic configuration, auto-updates, and thread logs. To use this release, you must acquire an API token from https://modmail.tk. Read the updated installation guide here.
- Stability improvements through synchronization primitives.
- Refactor thread management and code.
- Update command now uses
api.modmail.tk
. contact
command no longer tells the user you messaged them 👻
status
command now changes playing status indefinitely.
- Dynamic
help
command (#84). - Dynamic configuration through
api.modmail.tk
. - Thread logs via
logs.modmail.tk
(#78).log
command added.
- Automatic updates (#73).
- Dynamic command aliases and snippets (#86).
- Optional support for using a separate guild as the operations center (#81).
- NSFW Command to change channels to NSFW (#77).
- Removed
archive
command.- Explanation: With thread logs (that lasts forever), there's no point in archiving.