Skip to content

Conversation

Nydauron
Copy link
Member

@Nydauron Nydauron commented Sep 9, 2025

Description

Replaces majority references to Mute role with using Discord's built-in timeouts.
These get logged to the audit log automatically, get shown in modview for the applicable user, and are fully managed by Discord. Pi-Bot does not need a cron job to unmute users.

Old cron job code for unmuting users is still present in order to prevent potential breaking changes on redeploy.

Checks

  • I ran black over the code to ensure formatting.
  • I added docstrings to any new modules, classes, and methods.
  • I updated the docstrings of any updated modules, classes, and methods.
  • I added/updated Python typings for any new/updated class and module.
  • I updated the bot version (if necessary).
  • I ran mypy and reviewed any shown errors related to my changes.

Important Info

  • This pull request adds new pip dependencies.
  • This pull request adds new external dependencies.
  • This pull request changes the required versions of some dependencies.

Issues Closed

My pull request closes the following issues:
N/A

Thank You

Thank you for your contribution to Scioly.org! This pull request will be reviewed
in a promptly manner. If not done, please feel free to contact @cbrxyz.

This removes a the responsibility of handling unmutes off of Pi-Bot and
transfers it to being fully managed by Discord. Timeouts are also
tracked within Discord's mod log.

Old unmute cron code is preserved to prevent any breaking changes on
redeployment.
@Nydauron Nydauron changed the title Feat/timeouts for mutes feat: Replace mute role assignments with Discord timeouts for mutes Sep 9, 2025
@Nydauron Nydauron force-pushed the feat/timeouts-for-mutes branch from 2f0b1e5 to e947753 Compare September 13, 2025 02:31
This role is meant to be persistent and permanent. Discord timeouts are
meant to be temporary and opnly allow a max duration of 28 days at the
time of commit.

`/unmute` will attempt to remove both the timeout and the mute role from
the user if they are assigned.
@Nydauron Nydauron force-pushed the feat/timeouts-for-mutes branch from e947753 to eb2a913 Compare September 13, 2025 02:39
Copy link
Member Author

@Nydauron Nydauron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Nydauron Nydauron marked this pull request as ready for review September 13, 2025 02:43
@Nydauron Nydauron merged commit 07a5d08 into master Sep 13, 2025
2 checks passed
@Nydauron Nydauron deleted the feat/timeouts-for-mutes branch September 13, 2025 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant