| Commit message (Collapse) | Author | Age | Lines |
| |\ |
|
| | |\
| | |
| | | |
Deps: update discord.py to 1.4.0
|
| | |/
| |
| |
| | |
It was released on PyPI. No longer need to clone via git.
|
| | | |
|
| | |\
| | |
| | |
| | |
| | | |
python-discord/bug/backend/1080/cog-reload-cancel-scheduler
Cancel scheduled tasks when cogs unload
|
| | | |\
| | |/
| |/| |
|
| | |\ \
| | | |
| | | | |
RedisCache: remove erroneous `_redis` alias
|
| | | |\ \
| | |/ /
| |/| | |
|
| | |\ \ \
| | | | |
| | | | | |
Source: raise BadArgument for dynamically-created objects
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The code is identical to the else block and there's no reason for
help commands to have an explicit check.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Commands, cogs, etc. created via internal eval won't have a source file
associated with them, making source retrieval impossible.
Fixes #1083
Fixes BOT-7K
|
| | | | | |
| | | | |
| | | | |
| | | | | |
This reverts commit 59c62162
|
| | |\ \ \ \
| | |/ / /
| |/| | | |
HelpChannels: use more reliable check for claimed channel
|
| | | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If a RedisCache instance was being accessed before bot has created
the `redis_cache` instance, the `_redis` alias was being set to
None, causing AttributeErrors in lookups.
See: #1090
|
| | | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When cogs reload, they used new Scheduler instances, which aren't aware
of previously scheduled tasks. This led to duplicate scheduled tasks
when cogs re-scheduled tasks upon initialisation.
Fixes #1080
Fixes BOT-7H
|
| | |/
|/|
| |
| |
| |
| | |
The claimed channel check in `on_message` relies on the cache being
cleared when a channel goes dormant. If it's not cleared, it will think
the channel is still in use.
|
| |/
|
|
|
|
|
|
|
| |
Using the channel's category isn't reliable since it may take Discord a
while to actually move the channel once it's received a request from the
bot. I suppose using redis technically has the same problem, but it
should be much faster and less susceptible to lag than Discord.
Fixes #1074
|
| |
|
|
| |
This reverts commit be14db91b1c70993773e67cfa663fef0cfa85666.
|
| |\
| |
| | |
Add support for plural FilterList types.
|
| |/
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |\
| |
| | |
FilterLists: Manage whitelisting and blacklisting via the bot
|
| | |\
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | | | | | | |
|