| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| | | * | | | | | | | | | | Code block: add function to truncate content | 2020-06-13 | -21/+16 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code was duplicated in each of the format message functions. The function also ensures content is truncated to 10 lines. Previously, code could have skipped truncating by being 100 lines long but under 204 characters in length. | ||||
| | | * | | | | | | | | | | Code block: return code blocks with valid ticks but no lang | 2020-06-13 | -11/+8 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Such code block will be useful down the road for sending information on including a language specified if the content successfully parses as valid Python. | ||||
| | | * | | | | | | | | | | Code block: add function to find invalid code blocks | 2020-06-13 | -2/+32 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create a `NamedTuple` representing a code block | ||||
| | | * | | | | | | | | | | Code block: add regex to search for any code blocks | 2020-06-13 | -12/+25 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This regex supports both valid and invalid ticks. The ticks are in a group so it's later possible to detect if valid ones were used. | ||||
| | | * | | | | | | | | | | Code block: fix code block language regex | 2020-06-13 | -1/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was missing a quantifier to match more than 1 character. | ||||
| | | * | | | | | | | | | | Code block: use a more efficient line count check | 2020-06-13 | -57/+59 | ||
| | | | | | | | | | | | | | |||||
| | | * | | | | | | | | | | Code block: ignore if code block has *any* language | 2020-06-13 | -5/+3 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the code was valid Python syntax, the guide embed would be sent despite a non-Python language being explicitly specified for the code block by the message author. * Make the code block language regex a compiled pattern constant Fixes #829 | ||||
| | | * | | | | | | | | | | Code block: simplify log message | 2020-06-13 | -3/+2 | ||
| | | | | | | | | | | | | | |||||
| | | * | | | | | | | | | | Code block: make invalid backticks a constant set | 2020-06-13 | -9/+16 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A set should be faster since it's being used to test for membership. A constant just means it won't need to be redefined every time the function is called. * Make `has_bad_ticks` a static method * Add comments describing characters represented by the Unicode escapes | ||||
| | | * | | | | | | | | | | Code block: move standard guide message creation to a new function | 2020-06-13 | -50/+55 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rename `howto` variable to `description` | ||||
| | | * | | | | | | | | | | Code block: move bad ticks message creation to a new function | 2020-06-13 | -33/+37 | ||
| | | | | | | | | | | | | | |||||
| | | * | | | | | | | | | | Code block: move final send/cooldown code outside the try-except | 2020-06-13 | -9/+6 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduces nesting for improved readability. The code would have never thrown a syntax error in the manner expected anyway. | ||||
| | | * | | | | | | | | | | Code block: add helper function to send the embed | 2020-06-13 | -7/+15 | ||
| | | | | | | | | | | | | | |||||
| | | * | | | | | | | | | | Code block: invert conditions to reduce nesting | 2020-06-13 | -102/+107 | ||
| | | | | | | | | | | | | | |||||
| | | * | | | | | | | | | | Code block: add helper function to check for channel cooldown | 2020-06-13 | -2/+9 | ||
| | | | | | | | | | | | | | |||||
| | | * | | | | | | | | | | Code block: add helper function to check if msg should be parsed | 2020-06-13 | -8/+19 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Check for bot author first because it's a simpler/faster check | ||||
| | | * | | | | | | | | | | Code block: add helper function to check channel is valid | 2020-06-13 | -5/+9 | ||
| | | | | | | | | | | | | | |||||
| | | * | | | | | | | | | | Code block: add helper function to check for help channels | 2020-06-13 | -5/+10 | ||
| | | | | | | | | | | | | | |||||
| | | * | | | | | | | | | | Move code block formatting detection to a separate extension/cog | 2020-06-13 | -321/+342 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was really out of place in the BotCog, which is meant more for general, simple utility commands. | ||||
| | | | | | | | | | | | * | display inf id actioned in mod channel | 2020-10-16 | -2/+2 | ||
| | | |_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | |||||
| | * | | | | | | | | | | Remove trailing whitespace from verification.py | 2020-10-13 | -1/+1 | ||
| | | | | | | | | | | | | |||||
| | * | | | | | | | | | | Fix channel constant | 2020-10-13 | -1/+1 | ||
| | | | | | | | | | | | | |||||
| | * | | | | | | | | | | Add production debug log for native verification | 2020-10-13 | -0/+10 | ||
| | | |_|_|_|_|_|/ / / | |/| | | | | | | | | |||||
| | * | | | | | | | | | PR #1231: Dynamic prefix in activity | 2020-10-13 | -1/+1 | ||
| | |\ \ \ \ \ \ \ \ \ | |||||
| | | * | | | | | | | | | Fixed hardcoded prefix in __main__.py | 2020-10-13 | -1/+1 | ||
| | |/ / / / / / / / / | |||||
| | * | | | | | | | | | Merge pull request #1227 from python-discord/ducky-rescue-mission | 2020-10-11 | -1/+3 | ||
| | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | Duckpond: Add a list of already ducked messages | ||||
| | | * \ \ \ \ \ \ \ \ | Merge branch 'master' into ducky-rescue-mission | 2020-10-11 | -0/+1 | ||
| | | |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / | |/| | | | | | | | | | |||||
| | * | | | | | | | | | | Merge pull request #1228 from ks129/metricity-site | 2020-10-11 | -0/+1 | ||
| | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Add Metricity DB URL env var to site (docker-compose.yml) | ||||
| | | * \ \ \ \ \ \ \ \ \ | Merge branch 'master' into metricity-site | 2020-10-11 | -695/+807 | ||
| | | |\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / | |/| | | | | | | | | | | |||||
| | | * | | | | | | | | | | Add Metricity DB URL to site (docker-compose.yml) | 2020-10-11 | -0/+1 | ||
| | | | | | | | | | | | | | |||||
| | | | * | | | | | | | | | Duckpond: Add a list of already ducked messages | 2020-10-10 | -1/+3 | ||
| | | |/ / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously race conditions caused the messages to be processed again before knowing the white check mark reaction got added, this seems to solve it | ||||
| * | | | | | | | | | | | Fix linting for voice gate and voice ban | 2020-10-11 | -5/+4 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Add production voice gate role and channel to configuration | 2020-10-11 | -0/+2 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Create test for voice unban fail send DM | 2020-10-11 | -0/+15 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Create base test for voice unban | 2020-10-11 | -0/+18 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Create test for voice ban pardon when user not found | 2020-10-11 | -0/+7 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Shorten voice ban reason and create test for it | 2020-10-11 | -0/+20 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Add Voice Ban test about calling apply_infraction | 2020-10-11 | -0/+15 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Create test for voice ban applying role remove ignore. | 2020-10-11 | -0/+15 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Check arguments for get_active_infraction in voice ban tests | 2020-10-11 | -1/+1 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Create test to check does this pass proper kwargs to infraction posting | 2020-10-11 | -0/+12 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Create test for case when posting infraction fails | 2020-10-11 | -1/+12 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Revert recent walrus operator change | 2020-10-11 | -1/+2 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Create test for case when user already have active Voice Ban | 2020-10-11 | -2/+11 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Simplify post infraction calling and None check | 2020-10-11 | -2/+1 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Create test for case when trying to voice ban user who haven't passed gate | 2020-10-11 | -2/+11 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Create test for voice unban | 2020-10-11 | -0/+6 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Create test for temporary voice ban | 2020-10-11 | -1/+7 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Create test for permanent voice ban | 2020-10-11 | -0/+17 | ||
| | | | | | | | | | | | | |||||
| * | | | | | | | | | | | Improve voice gate messages deletion | 2020-10-11 | -2/+8 | ||
| | | | | | | | | | | | | |||||