| Commit message (Collapse) | Author | Lines |
|
|
|
Using a :eyes: style emoji string in a ctx.add_reaciton call will error. Discord expects either a unicode emoji, or a custom emoji.
|
|
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.
|
|
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.
|
|
|
|
This change creates a thread while posting the nomination, and then archives it once the nomination is concluded.
|
|
|
|
|
|
Co-authored-by: Xithrius <[email protected]>
|
|
Doing this similar to how the docs command works for shortening
|
|
|
|
... is used everywhere else across the codebase where extwrap.shorten is used, so I'm making it match here.
|
|
|
|
* Added suppress for notfound error
* Update clean.py
|
|
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.
|
|
Place logging to file behind an environment variable, and remove special
considerations made for it.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
These new lines made the output embed look far to spaced out.
|
|
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]>
|
|
|
|
Reverse order of off-topic channels from ot0, ot1, ot2 to ot2, ot1, ot0
|
|
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.
|
|
|
|
Put the literal converter before the Member converter so that "me"/"m" isn't attempted to be converted to a Member.
|
|
Embed for `!infractions by` no longer has the author in codeblock.
|
|
Co-authored-by: Xithrius <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(#1937)
|
|
* 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]>
|