| Commit message (Collapse) | Author | Age | Lines |
| ... | |
| | | | |
|
| | | |
| | |
| | |
| | |
| | | |
Explicit is better than implicit, and this default value wasn't much of
a convenience.
|
| | | |
| | |
| | |
| | |
| | | |
Replace the `_get_arg_value` call with `function.get_arg_value` cause
the latter makes use of bound arguments, which are more accurate.
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | | |
This fixes race conditions between editing, deleting, and sending a
reminder. If one operation is already happening, the others will be
aborted.
|
| | | |
| | |
| | |
| | |
| | | |
This is a more advanced version meant to eventually replace the
`_get_arg_values` in decorators.py.
|
| | | |
| | |
| | |
| | |
| | | |
Bound arguments are more convenient to work with than the raw args
and kwargs.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Supporting ID retrieval by arg name or position made for a confusing
interface. I also doubt it would have been used much. A callable can
achieve the same thing, albeit with a little more code.
Now the decorator instead supports passing an ID directly or a callable.
|
| | | |
| | |
| | |
| | |
| | | |
This will be used to prevent race conditions on a resource by stopping
all other access to the resource once its been acquired.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | | |
It's fine to accept an int since it'll get converted to a string anyway.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Only one call was benefiting from that function also cancelling the
task. Therefore, the function was redundant and has been replaced with
a direct request to delete.
This change has the consequence of also fixing reminder tasks cancelling
themselves. That issue was potentially suppressing errors (such as the
duplicate DELETE request which was fixed earlier). Under normal
circumstances, the scheduler will automatically removed finished tasks
so tasks won't need to cancel/remove themselves.
|
| |/ /
| |
| |
| |
| | |
`send_reminder` already deletes the reminder so it's redundant to
delete it in the scheduled task too.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |\ \
| | |
| | | |
Change regex so it catches new discord URL
|
| | | |
| | |
| | |
| | | |
requested by lemon
|
| | | | |
|
| | | | |
|
| |/ / |
|
| |\ \
| | |
| | | |
Fix channel moving incase `message.pin` fails
|
| |/ / |
|
| |\ \
| | |
| | | |
Don't ping everyone in #mod-alerts when tripping filter via DMs.
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |\ \
| | |
| | | |
Help System: Implement question message pinning
|
| | |\ \
| |/ /
|/| | |
|
| |\ \ \ |
|
| | | | | |
|
| |/ / / |
|
| | | | |
|
| | | |
| | |
| | |
| | | |
I've updated the IDs of the two Code Jam Roles to the
newly create roles we have.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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'
|
| |\ \ \
| | | |
| | | | |
Check that embed desc is not Empty before stripping.
|
| | |\ \ \
| |/ / /
|/| | | |
|
| | | | | |
|
| |\ \ \ \
| | | | |
| | | | | |
Truncate charinfo results
|
| | |\ \ \ \
| |/ / / /
|/| | | | |
|
| |\ \ \ \ \
| | | | | |
| | | | | | |
Support multiple categories for code jam team creation
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
It's clearer to write MAX_CHANNELS - 2 than a literal 48.
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The test has to account for not only the name not matching, but also
a lack of available spaces for new channels.
|
| | | | | | | |
|
| |/ / / / / |
|
| | | | | |
| | | | |
| | | | | |
Co-authored-by: Kieran Siek <[email protected]>
|