| Commit message (Collapse) | Author | Lines |
|
This reverts commit be14db91b1c70993773e67cfa663fef0cfa85666.
|
|
This will allow mods to use '!whitelist get guild_invites'
in addition to '!whitelist get guild_invite'
This is just a naive implementation which works if the plural
form is a simple s at the end of the word. It's implemented
into the converter.
|
|
Previously, this would not provide any feedback at all, which is really
terrible UX. Sorry about that.
This also adds error handling in case the API call fails.
|
|
|
|
|
|
|
|
Thanks @Den4200!
|
|
|
|
This adds a little bit of logic to the Help Channel `init_available`
coroutine, which runs when the cog loads. This ensures that if there are
more help channels in available than there should be, we remove the
superfluos ones.
Previously, if the bot started with too many channels, it would maintain
and defend that excessive amount. This is because we never actually
count the number of channels before adding in new available channels
whenever one disappears.
If we ever get too many available channels in the future, this can be
solved by simply reloading this cog.
|
|
requested by lemon
|
|
|
|
|
|
|
|
|
|
For deleting and listing data, we now get some more feedback when things
fail.
|
|
We want the !help invocations to give you all the information you need
in order to use the command. That also means we need to provide the
valid filterlist types, which are subject to change.
So, we fetch the valid ones from the API and then dynamically insert
them into the docstrings.
|
|
|
|
|
|
|
|
This means we can validate invites that start with https://, whereas
before we could not.
|
|
|
|
This is an optimization designed to eliminate all the list
comprehensions we were doing inside antimalware and filtering. The cache
is now structured so that the content is the key and the metadata is the
value.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
We don't need a ping in #mod-alerts whenever someone is tripping a
filter (like invites or bad language) in a DM to the bot. We can still
send an embed, so that we can action it, but there is no urgent need to
respond if it's just a direct message to the bot.
This is particularly true now that we have #dm-log.
|
|
|
|
|
|
|
|
|
|
I've updated the IDs of the two Code Jam Roles to the
newly create roles we have.
|
|
This is necessary to support walrus operators.
|
|
|
|
Python joins two string adjacent string literals implicitly, which may
cause unintended side effects when used with certain string methods.
>>> 'A' ' '.join(['1', '2', '3'])
'1A 2A 3'
|
|
Addresses reviews from MarkKoz
Co-authored-by: Mark <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
Co-authored-by: Kieran Siek <[email protected]>
|
|
|
|
Pagination means more characters can be supported without cluttering
anything. It also means infinite lines, so there's no longer a need to
squeeze out the most from a single page. Reducing the line limit leads
to a smaller, tidier presentation.
|
|
Since the raw field is displayed on every page, but pages are
incomplete, it may be unclear whether the field's value is for the
current page or for all pages.
Co-authored-by: Kieran Siek <[email protected]>
|
|
It's clearer to write MAX_CHANNELS - 2 than a literal 48.
|