| Commit message (Collapse) | Author | Lines | ||
|---|---|---|---|---|
| 2020-06-13 | Code block: add function to find invalid code blocks | -2/+32 | ||
| * Create a `NamedTuple` representing a code block | ||||
| 2020-06-13 | Code block: add regex to search for any code blocks | -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. | ||||
| 2020-06-13 | Code block: fix code block language regex | -1/+1 | ||
| It was missing a quantifier to match more than 1 character. | ||||
| 2020-06-13 | Code block: use a more efficient line count check | -57/+59 | ||
| 2020-06-13 | Code block: ignore if code block has *any* language | -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 | ||||
| 2020-06-13 | Code block: simplify log message | -3/+2 | ||
| 2020-06-13 | Code block: make invalid backticks a constant set | -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 | ||||
| 2020-06-13 | Code block: move standard guide message creation to a new function | -50/+55 | ||
| * Rename `howto` variable to `description` | ||||
| 2020-06-13 | Code block: move bad ticks message creation to a new function | -33/+37 | ||
| 2020-06-13 | Code block: move final send/cooldown code outside the try-except | -9/+6 | ||
| Reduces nesting for improved readability. The code would have never thrown a syntax error in the manner expected anyway. | ||||
| 2020-06-13 | Code block: add helper function to send the embed | -7/+15 | ||
| 2020-06-13 | Code block: invert conditions to reduce nesting | -102/+107 | ||
| 2020-06-13 | Code block: add helper function to check for channel cooldown | -2/+9 | ||
| 2020-06-13 | Code block: add helper function to check if msg should be parsed | -8/+19 | ||
| * Check for bot author first because it's a simpler/faster check | ||||
| 2020-06-13 | Code block: add helper function to check channel is valid | -5/+9 | ||
| 2020-06-13 | Code block: add helper function to check for help channels | -5/+10 | ||
| 2020-06-13 | Move code block formatting detection to a separate extension/cog | -321/+342 | ||
| It was really out of place in the BotCog, which is meant more for general, simple utility commands. | ||||
| 2020-06-12 | Escape markdown in charinfo embed | -2/+2 | ||
| The embed displays the original character. If it's a markdown char, it would interfere with the embed's actual markdown. The backtick was especially troublesome. Fixes #996 | ||||
| 2020-06-11 | Replace mention of Flask with Django | -1/+1 | ||
| The site's description still stated that it was built with Flask, which is no longer accurate due to the move to Django. | ||||
| 2020-06-11 | Add cooldown to Channels in constants.py | -0/+1 | ||
| 2020-06-11 | Add cooldown channel to EXCLUDED_CHANNELS tuple | -1/+1 | ||
| 2020-06-11 | Add cooldown channel to config-default.yml | -0/+1 | ||
| 2020-06-11 | Fix trailing whitespace in Action file | -1/+1 | ||