-
Notifications
You must be signed in to change notification settings - Fork 36
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
[punish] modlog integration #23
Comments
This will likely not be done, unless I make some ugly hooks into v2's modlog. Anything's possible. |
Upon a deep investigation with fresh eyes, the ONLY thing in mod.py that prevents creating and updating custom cases is the check for case creation settings. When called with a case type that doesn't exist, the The only thing the punish cog would have to be responsible for is configuring whether cases should be created (or how long the punish should be to justify creating a case), and tracking case IDs for updating the message when time is up. Easy stuff. |
This is clear to develop now, as Cog-Creators/Red-DiscordBot@0dafcfa is in the codebase. |
Resolves #23 and closes #48 Changelog: Commands were moved into groups. To use the original command names, create global aliases for them. The [p]punish list command has been updated to use a more compact table layout, provided tabulate v0.8.0+ is installed. Modlog integration is enabled by default for punishment durations longer than 30 minutes. To change or disable this, use the [p]punishset case_min command. The [p]punish reason command is also added to update reasons. It is now possible to designate a special channel which punished users are allowed to speak in. Instead of configuring this channel to deny the punished role from speaking there, they are automatically granted access to read and speak. To unset this, run [p]punishset clear-channel Channel overrides can also now be customized and applied en masse. To read the overrides from a channel, run [p]punishset overrides <channel>. The channel can be either text or voice; the overrides for each type are seperate. Server mute is not automatically applied if the voice override does not deny speak or connect permissions. Once set, overrides can be deployed to all channels with [p]punishset setup. To restore the default overrides, run [p]punishset reset-override [channel_type], where channel_type is voice, text, or both (the default).
Resolves #23 and closes #48 Changelog: Commands were moved into groups. To use the original command names, create global aliases for them. The [p]punish list command has been updated to use a more compact table layout, provided tabulate v0.8.0+ is installed. Modlog integration is enabled by default for punishment durations longer than 30 minutes. To change or disable this, use the [p]punishset case_min command. The [p]punish reason command is also added to update reasons. It is now possible to designate a special channel which punished users are allowed to speak in. Instead of configuring this channel to deny the punished role from speaking there, they are automatically granted access to read and speak. To unset this, run [p]punishset clear-channel Channel overrides can also now be customized and applied en masse. To read the overrides from a channel, run [p]punishset overrides <channel>. The channel can be either text or voice; the overrides for each type are seperate. Server mute is not automatically applied if the voice override does not deny speak or connect permissions. Once set, overrides can be deployed to all channels with [p]punishset setup. To restore the default overrides, run [p]punishset reset-override [channel_type], where channel_type is voice, text, or both (the default).
Resolves #23 and closes #48 Changelog: Commands were moved into groups. To use the original command names, create global aliases for them. The [p]punish list command has been updated to use a more compact table layout, provided tabulate v0.8.0+ is installed. Modlog integration is enabled by default for punishment durations longer than 30 minutes. To change or disable this, use the [p]punishset case-min command. The [p]punish reason command is also added to update reasons. It is now possible to designate a special channel which punished users are allowed to speak in. Instead of configuring this channel to deny the punished role from speaking there, they are automatically granted access to read and speak. To unset this, run [p]punishset clear-channel Channel overrides can also now be customized and applied en masse. To read the overrides from a channel, run [p]punishset overrides <channel>. The channel can be either text or voice; the overrides for each type are seperate. Server mute is not automatically applied if the voice override does not deny speak or connect permissions. Once set, overrides can be deployed to all channels with [p]punishset setup. To restore the default overrides, run [p]punishset reset-overrides [channel_type], where channel_type is voice, text, or both (the default).
Resolves #23 and closes #48 Changelog: Commands were moved into groups. To use the original command names, create global aliases for them. The [p]punish list command has been updated to use a more compact table layout, provided tabulate v0.8.0+ is installed. Modlog integration is enabled by default for punishment durations longer than 30 minutes. To change or disable this, use the [p]punishset case-min command. The [p]punish reason command is also added to update reasons. It is now possible to designate a special channel which punished users are allowed to speak in. Instead of configuring this channel to deny the punished role from speaking there, they are automatically granted access to read and speak. To unset this, run [p]punishset clear-channel Channel overrides can also now be customized and applied en masse. To read the overrides from a channel, run [p]punishset overrides <channel>. The channel can be either text or voice; the overrides for each type are seperate. Server mute is not automatically applied if the voice override does not deny speak or connect permissions. Once set, overrides can be deployed to all channels with [p]punishset setup. To restore the default overrides, run [p]punishset reset-overrides [channel_type], where channel_type is voice, text, or both (the default).
Resolves #23 and closes #48 Changelog: Commands were moved into groups. To use the original command names, create global aliases for them. The [p]punish list command has been updated to use a more compact table layout, provided tabulate v0.8.0+ is installed. Modlog integration is enabled by default for punishment durations longer than 30 minutes. To change or disable this, use the [p]punishset case-min command. The [p]punish reason command is also added to update reasons. It is now possible to designate a special channel which punished users are allowed to speak in. Instead of configuring this channel to deny the punished role from speaking there, they are automatically granted access to read and speak. To unset this, run [p]punishset clear-channel Channel overrides can also now be customized and applied en masse. To read the overrides from a channel, run [p]punishset overrides <channel>. The channel can be either text or voice; the overrides for each type are seperate. Server mute is not automatically applied if the voice override does not deny speak or connect permissions. Once set, overrides can be deployed to all channels with [p]punishset setup. To restore the default overrides, run [p]punishset reset-overrides [channel_type], where channel_type is voice, text, or both (the default).
Resolves #23 and closes #48 Changelog: Commands were moved into groups. To use the original command names, create global aliases for them. The [p]punish list command has been updated to use a more compact table layout, provided tabulate v0.8.0+ is installed. Modlog integration is enabled by default for punishment durations longer than 30 minutes. To change or disable this, use the [p]punishset case-min command. The [p]punish reason command is also added to update reasons. It is now possible to designate a special channel which punished users are allowed to speak in. Instead of configuring this channel to deny the punished role from speaking there, they are automatically granted access to read and speak. To unset this, run [p]punishset clear-channel Channel overrides can also now be customized and applied en masse. To read the overrides from a channel, run [p]punishset overrides <channel>. The channel can be either text or voice; the overrides for each type are seperate. Server mute is not automatically applied if the voice override does not deny speak or connect permissions. Once set, overrides can be deployed to all channels with [p]punishset setup. To restore the default overrides, run [p]punishset reset-overrides [channel_type], where channel_type is voice, text, or both (the default).
Resolves #23 and closes #48 Changelog: Commands were moved into groups. To use the original command names, create global aliases for them. The [p]punish list command has been updated to use a more compact table layout, provided tabulate v0.8.0+ is installed. Modlog integration is enabled by default for punishment durations longer than 30 minutes. To change or disable this, use the [p]punishset case-min command. The [p]punish reason command is also added to update reasons. It is now possible to designate a special channel which punished users are allowed to speak in. Instead of configuring this channel to deny the punished role from speaking there, they are automatically granted access to read and speak. To unset this, run [p]punishset clear-channel Channel overrides can also now be customized and applied en masse. To read the overrides from a channel, run [p]punishset overrides <channel>. The channel can be either text or voice; the overrides for each type are seperate. Server mute is not automatically applied if the voice override does not deny speak or connect permissions. Once set, overrides can be deployed to all channels with [p]punishset setup. To restore the default overrides, run [p]punishset reset-overrides [channel_type], where channel_type is voice, text, or both (the default).
Waiting on Cog-Creators/Red-DiscordBot#672update: the mod cog now has the code necessary to make this work!The text was updated successfully, but these errors were encountered: