aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2021-12-01Always return a review string for a given nominationGravatar Chris Lovering-8/+5
2021-12-01Fix emoji reaction error in reviewerGravatar Chris Lovering-2/+2
Using a :eyes: style emoji string in a ctx.add_reaciton call will error. Discord expects either a unicode emoji, or a custom emoji.
2021-12-01Ensure a nomination archival emoji isn't from the botGravatar Chris Lovering-0/+3
This is most relevant in local dev testing where the Emojis.check_mark could be the same as the Emojis.incident_actioned or Emojis.incident_unactioned, which would cause the bot to attempt to archive the post_review invocation if it was posted in the nomination voting channel.
2021-12-01Supress NotFound when archiving a nominationGravatar Chris Lovering-3/+6
This supresses both the mesage deleteions and the thread archive, so that if they are removed before the code can get to them, it does not raise an error.
2021-12-01Update nomination message regexGravatar Chris Lovering-2/+1
2021-12-01Manage nomination threadsGravatar Chris Lovering-1/+14
This change creates a thread while posting the nomination, and then archives it once the nomination is concluded.
2021-12-01Refactor make_review to return nominee tooGravatar Chris Lovering-9/+9
2021-12-01Add thread archive time enum to constantsGravatar Chris Lovering-0/+12
2021-11-28Use bright_green for "Currently Helping" DMs (#1979)Gravatar Ben Soyka-1/+1
Co-authored-by: Xithrius <[email protected]>
2021-11-27Refactor long lineGravatar Ben Soyka-3/+3
Doing this similar to how the docs command works for shortening
2021-11-27Add missing space in text shortening placeholderGravatar Ben Soyka-1/+1
2021-11-27Change placeholder for invalid rules message shorteningGravatar Ben Soyka-1/+2
... is used everywhere else across the codebase where extwrap.shorten is used, so I'm making it match here.
2021-11-27Limit length of the invalid rule indices messageGravatar Ben Soyka-1/+3
2021-11-24Suppress NotFound error when cleaning messagesGravatar zephyrus-1/+2
* Added suppress for notfound error * Update clean.py
2021-11-22Deal with activity_blocks not being returned by siteGravatar Chris Lovering-2/+11
We are planning to change metricity endpoints on site so that activcity_blocks are not returned if the user has more than 1000 messages. This is because the query to calculate those blocks can get expensive at a high message count. To deal with this, both places activity_blocks are used has been changed to reflect this planned behaviour.
2021-11-20Disable File Logging By DefaultGravatar Hassan Abouelela-9/+11
Place logging to file behind an environment variable, and remove special considerations made for it. Signed-off-by: Hassan Abouelela <[email protected]>
2021-11-19Remove unneeded new linesGravatar ChrisJL-2/+2
These new lines made the output embed look far to spaced out.
2021-11-16Don't log threads in admin channels (#1954)Gravatar ChrisJL-0/+12
This change disables the mod-log for any changes to threads in channels that mods don't have read perms to. Co-authored-by: Kieran Siek <[email protected]>
2021-11-16Add ability to reply to message for `!remind`Gravatar Izan-2/+16
2021-11-14Update order of off-topic channels (#1956)Gravatar mina-2/+2
Reverse order of off-topic channels from ot0, ot1, ot2 to ot2, ot1, ot0
2021-11-14Add #bot-commands to guild features in !serverGravatar Joe Banks-1/+4
This prevents spam in dev-contrib and dev-core from people trying to find which Discord feature flags are enabled for Python Discord. It's not ideal that we have to increase output size in #bot-commands but it prevents spam in #dev-contrib.
2021-11-11Change log level from `WARNING` to `DEBUG`. (#1950)Gravatar TizzySaurus-3/+1
2021-11-10Merge PR #1947: Fix `!infractions by me`Gravatar TizzySaurus-1/+1
Put the literal converter before the Member converter so that "me"/"m" isn't attempted to be converted to a Member.
2021-11-10Unify infraction embed titleGravatar Izan-1/+1
Embed for `!infractions by` no longer has the author in codeblock.
2021-11-10commands: add pip as an alias to pypi (#1942)Gravatar aru-1/+1
Co-authored-by: Xithrius <[email protected]>
2021-11-10Check if log entry has embeds before indexing themGravatar Shivansh-007-1/+4
2021-11-09Listen to only on_raw_message_deleteGravatar Qwerty-133-19/+21
2021-11-09Call the appropriate function in the raw listenerGravatar Qwerty-133-1/+1
2021-11-09Filter the same messages in both listeners.Gravatar Qwerty-133-1/+1
2021-11-08Add missing newline after region commentGravatar Izan-0/+1
2021-11-07Explicitly show there is no message contentGravatar Shivansh-007-5/+4
2021-11-07SHow thread parent name if linked message in threadGravatar Shivansh-007-1/+3
2021-11-07Attach attachments if present in linked messageGravatar Shivansh-007-0/+2
2021-11-07Add no message content handlingGravatar Shivansh-007-4/+6
2021-11-06Only re-run filters in `on_message_update` if contents/attachments changed ↵Gravatar TizzySaurus-2/+10
(#1937)
2021-11-05Merge pull request from GHSA-j8c3-8x46-8pp6Gravatar Hassan Abouelela-4/+40
* Don't Exit Token Filtering Early On URLs The token filtering function would exit early if it detected a URL within the message, but it made no extra checks to ensure there weren't other tokens within that message that would trigger it. This made sense when the filtering logic was written, but it's been modified since to introduce this bug. Regression tests included. Signed-off-by: Hassan Abouelela <[email protected]> * Links Advisory In Token Filter Tests Adds a link to the advisory with reasoning for the existence of the test. Signed-off-by: Hassan Abouelela <[email protected]>