Skip to content
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

Closed
calebj opened this issue Apr 5, 2017 · 3 comments
Closed

[punish] modlog integration #23

calebj opened this issue Apr 5, 2017 · 3 comments
Assignees

Comments

@calebj
Copy link
Owner

calebj commented Apr 5, 2017

Waiting on Cog-Creators/Red-DiscordBot#672 update: the mod cog now has the code necessary to make this work!

@calebj calebj self-assigned this Apr 5, 2017
@calebj calebj changed the title Modlog integration [punish] modlog integration Apr 8, 2017
@calebj
Copy link
Owner Author

calebj commented Nov 5, 2017

This will likely not be done, unless I make some ugly hooks into v2's modlog. Anything's possible.

@calebj
Copy link
Owner Author

calebj commented Mar 4, 2018

Users: go +1 Cog-Creators/Red-DiscordBot#1391 if you want punish cases in modlog. Update: merged!

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 new_case() fails. I've submitted a fix as explained above.

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.

@calebj calebj mentioned this issue Mar 4, 2018
7 tasks
@calebj
Copy link
Owner Author

calebj commented Mar 17, 2018

This is clear to develop now, as Cog-Creators/Red-DiscordBot@0dafcfa is in the codebase.

calebj added a commit that referenced this issue Jun 11, 2018
calebj added a commit that referenced this issue Jun 13, 2018
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).
calebj added a commit that referenced this issue Jun 13, 2018
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).
calebj added a commit that referenced this issue Jun 13, 2018
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).
calebj added a commit that referenced this issue Jun 13, 2018
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).
calebj added a commit that referenced this issue Jun 13, 2018
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).
calebj added a commit that referenced this issue Jun 13, 2018
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).
calebj added a commit that referenced this issue Jun 27, 2018
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).
@calebj calebj closed this as completed in 5ef8eeb Jun 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant