aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2020-04-09(Watchchannel): Added footer shortening.Gravatar ks129-1/+2
2020-04-09(Talent Pool): Applied reason shortening.Gravatar ks129-5/+5
2020-04-09(Scheduler): Replaced `infraction['reason']` with `reason` variable using in ↵Gravatar ks129-1/+1
`end_msg`.
2020-04-09(Scheduler): Move reason to end of log text to avoid truncating keys.Gravatar ks129-2/+7
2020-04-09(Mod Utils): Moved embed description to variable.Gravatar ks129-5/+7
2020-04-08(Superstarify): Removed unnecessary truncation on `superstarify` command, ↵Gravatar ks129-1/+1
reordered ModLog text.
2020-04-08(Mod Utils): Removed truncation of reason itself and added truncation to ↵Gravatar ks129-3/+3
whole embed in `notify_infraction`.
2020-04-08(Scheduler): Removed reason truncation from `apply_infraction`, changed ↵Gravatar ks129-2/+2
order of ModLog embed description item in same function.
2020-04-08(ModLog): Added mod log item embed description truncating when it's too long.Gravatar ks129-1/+2
2020-04-08(Scheduler): Changed reason truncating in `apply_infraction` from 1900 chars ↵Gravatar ks129-2/+2
to 1500, added shortening to end message too.
2020-04-08(Superstarify, Scheduler): Added reason shortening for ModLog.Gravatar ks129-2/+2
2020-04-08(Infractions): Moved truncated reason to variable instead on ban coroutine ↵Gravatar ks129-5/+3
creating.
2020-04-08(Infractions): Removed unnecessary logging that notify when reason will be ↵Gravatar ks129-6/+0
truncated for Audit Log.
2020-04-08(Mod Utils): Added shortening reason on embed creation in `notify_infraction`.Gravatar ks129-1/+1
2020-04-06(Ban and Kick): Added space to `textwrap.shorten` `placeholder`.Gravatar ks129-1/+1
2020-04-06(Ban and Kick): Changed length in `textwrap.shorten` from 309 to 312 because ↵Gravatar ks129-2/+2
shorten already include `placeholder` to length.
2020-04-05(Mod Scheduler): Added reason truncations to Scheduler's `apply_infraction`Gravatar ks129-1/+2
2020-04-05(Ban and Kick): Applied simplification to reason truncating.Gravatar ks129-2/+2
2020-04-04(Ban and Kick): Replaced force reason truncating with `textwrap.shorten`.Gravatar ks129-2/+3
2020-04-04(Kick Command): Added logging and truncating to correct length for Discord ↵Gravatar ks129-1/+4
Audit Log when kick reason length is more than 512 characters.
2020-04-04(Banning): Added logging and truncating to correct length for Discord Audit ↵Gravatar ks129-1/+8
Log when ban reason length is more than 512 characters.
2020-04-02Fixed missed rename for token removal method name changeGravatar S. Co1-1/+1
2020-04-01Add TCD to whitelistGravatar Leon Sandøy-0/+1
The Coding Den is a language agnostic community that's been around for years with over 12000 members. I think we can allow that invite in our community.
2020-03-31(Infraction Edit): Changed already expired and no reason provided sentence.Gravatar Karlis S-3/+1
Co-Authored-By: Mark <[email protected]>
2020-03-31(Infraction Edit): Don't change infraction when user try modify duration of ↵Gravatar ks123-0/+5
infraction that is already expired and reason not specified.
2020-03-31(Tags): Removed unnecessary `send_embed_with_trashcan` function due using ↵Gravatar ks123-23/+1
existing function.
2020-03-31(Tags): Moved to existing `wait_for_deletion` function instead using ↵Gravatar ks123-5/+17
custom/new one.
2020-03-31(Tags): Added blank line between check function and `try:` block on ↵Gravatar ks123-0/+1
`send_embed_with_trashcan` function.
2020-03-31(Tags): Fixed `TimeoutError` shadowing with `asyncio.TimeoutError`.Gravatar ks123-2/+2
2020-03-31(Tags): Modified helper function `handle_trashcan_react` to ↵Gravatar ks123-7/+6
`send_embed_with_trashcan`, applied to docstring and to command.
2020-03-30Set unsilence permissions to inherit instead of trueGravatar Sebastiaan Zeeff-2/+2
The "unsilence" action of the silence/hush command used `send_messages=True` when unsilencing a hushed channel. This had the side effect of also enabling send messages permissions for those with the Muted rule, as an explicit True permission apparently overwrites an explicit False permission, even if the latter was set for a higher top-role. The solution is to revert back to the `Inherit` permission by assigning `None`. This is what we normally use when Developers are allowed to send messages to a channel.
2020-03-30(Tags): Fixed trashcan handling check.Gravatar ks123-2/+2
2020-03-30(Tags): Added trashcan handling to `!tags get` command.Gravatar ks123-2/+4
2020-03-30(Tags): Added helper function `handle_trashcan_react` for tag response ↵Gravatar ks123-1/+21
deletion handling.
2020-03-29(Infraction Edit): Don't let change expiration when infraction already expired.Gravatar Karlis S-1/+3
2020-03-29(PEP Command): Fixed comment about PEP 0 separately handling.Gravatar ks123-2/+1
2020-03-29(PEP Command): Moved PEP 0 information to hard-coded strings from constants, ↵Gravatar ks123-18/+14
moved PEP 0 sending to function.
2020-03-29(PEP Command): Moved icon URL to constant instead hard-coded string.Gravatar ks123-2/+4
2020-03-28Increase syncer logging levelGravatar S. Co1-1/+1
2020-03-28(Webhook Detection): Fixed grouping of regex, alert message content, ↵Gravatar Karlis S-9/+9
docstrings, string formatting and URL hiding to show in logs. Co-Authored-By: Mark <[email protected]>
2020-03-28Use debug log level instead of warning in `post_user`Gravatar MarkKoz-1/+1
2020-03-28(PEP Command): Fixed comment of explanation of PEP 0 different processing.Gravatar ks123-1/+2
2020-03-28(Webhook Detection): Renamed `url` variable to `redacted_url` to avoid ↵Gravatar ks123-2/+2
confusion in `delete_and_respond` function.
2020-03-28(Webhook Detection): Fixed docstrings.Gravatar ks123-2/+2
2020-03-28(Webhook Detection): Removed unnecessary URL hiding in `delete_and_respond`.Gravatar ks123-5/+0
2020-03-28(Webhook Detection): Added grouping to RegEx compilation, removed ↵Gravatar ks123-13/+4
unnecessary function `scan_message`, moved this content to `on_message` event.
2020-03-28Logging severity pass from reviewGravatar S. Co1-4/+4
2020-03-28(Webhook Detection): Call `on_message` instead repeating code.Gravatar ks123-3/+1
2020-03-28(Webhook Detection): Fixed order of cog loading.Gravatar ks123-1/+1
2020-03-28(Webhook Detection): Added `on_message_edit` listener for Discord Webhooks ↵Gravatar ks123-0/+7
detecting.