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 - Scheduled Closure For More Than a Day

Published by Taaku18 over 5 years ago

Non-Breaking Internal Changes. (This shouldn't affect anyone.)

Background

Bots hosted by Heroku restart at least once every 27 hours.
During this period, local caches are deleted, which results in the inability to set the scheduled close time to longer than 24 hours. This update resolves this issue. PR #135

Changed

  • 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 of sleep() for scheduling.
Modmail - Bug Fix

Published by Taaku18 over 5 years ago

Fixed

  • Fixed activity setting due to flawed logic in config.get() function.
Modmail - Bug Fix

Published by Taaku18 over 5 years ago

Fixed

Fixed a bug in activity command where it would fail to set the activity on bot restart if the activity type was playing.

Modmail - Removed Log Viewer

Published by Taaku18 over 5 years ago

This update shouldn't affect anyone.

Changed

  • Moved self-hosted log viewer to a separate repo.
Modmail - Ability to Add Custom Twitch URL

Published by Taaku18 over 5 years ago

Added

  • Ability to set your own Twitch URL for streaming activity status.
Modmail - Bug Fix

Published by Taaku18 over 5 years ago

Fixed

  • Small bug in activity command.
Modmail - New Command "activity"

Published by Taaku18 over 5 years ago

Breaking changes.

Added

  • Added the activity command for setting the activity
  • PR #131 this supports multiple activity types (playing, watching, listening and streaming).

Removed

  • Removed the deprecated status command.
  • This also means you will have to reset your bot status with the activity command, as status command is removed.
Modmail - Stable Release

Published by Taaku18 over 5 years ago

Added

  • Ability to self-host logs.

Changed

  • Improved format for log channel embeds.
  • Roles are now comma separated in info embed.
  • This only applies to separate server setups.

Fixed

  • Bug in subscribe command, it will now unsubscribe after a thread is closed.
Modmail - New Command and Improvements

Published by Taaku18 over 5 years ago

Added

  • 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.

Changed

  • Slightly improved log channel message format.
Modmail - Bug Fix

Published by Taaku18 over 5 years ago

Fixed

  • Small bug in close command.
Modmail - Stable Release

Published by Taaku18 over 5 years ago

Added

  • Ability to set a custom thread creation response message.
    • Via config set thread_creation_response [message].

Changed

  • Improve logs command format.
  • Improve thread log channel message to have more relevant info.
  • Improve close command.
    • You now can close the thread after a delay and use a custom thread close message.
    • You also now have the ability to close a thread silently.
Modmail - Bug Fix

Published by Taaku18 over 5 years ago

Security

  • Fix a bug where blocked users were still able to message modmail.
Modmail - New Command and Fixes

Published by Taaku18 over 5 years ago

Added

  • Support for custom blocked emoji and sent emoji.
  • Use the config set blocked_emoji or sent_emoji commands.

Quick Fix

  • Support multiple images and file attachments in one message.
  • This is only possible on mobile so its good to handle it in code.
Modmail - Improvements to Commands and New Config Options Available

Published by Taaku18 over 5 years ago

Added

  • Added the ability to use your own log channel.
    • You can do this via the config set log_channel_id <id> command.
  • Added the ability to use your own main inbox category.
    • You can do this via the config set main_category_id <id> command.

Changed

  • You now have the ability to 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. (Migrate first though.)
Modmail - New Command and Improvements in Bot Update Message Interfaces

Published by Taaku18 over 5 years ago

Added

  • Added a changelog command to view the bot's changelog within discord.

Changed

  • Update command now shows the latest changes directly from the CHANGELOG.md in the repo.
  • Auto update messages also show the latest changes from the repo.
  • Remove the latest changes section from the about command.
Modmail - Bug Fix

Published by Taaku18 over 5 years ago

Fixed

  • 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 didn't get sent.

Changed

  • alias command now checks if you are adding a valid alias-command combo.
  • Deleting a channel manually will now correctly close the thread and post logs.
Modmail - Bug Fix

Published by Taaku18 over 5 years ago

Fixed

  • Fixed a one-off bug where the channel topic disappears, but modmail operations should still continue.
  • Fixed linked_message_id issues.
Modmail - Bug Fix

Published by Taaku18 over 5 years ago

Fixed

  • Thread creation embed now shows the correct amount of past logs.
  • If using a separate server setup, roles in the info embed now are shown as names instead of mentions.
    • This is due to the fact that you can't mention roles across servers.
Modmail - "logs" Command Now Needs Permission

Published by Taaku18 over 5 years ago

Security

  • Made the logs command require "manage messages" permissions to execute.
    • Before this patch, anyone could use the logs commands.