| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
Remove the moderator notification when unloading the cog because. Its
purpose was to remind to manually unsilence channels. However, this
purpose is now obsolete due to automatic rescheduling.
The notification was buggy anyway due to a race condition with the bot
shutting down, and that'd be further complicated by having to
asynchronously retrieve channels from the redis cache too.
Fixes #1053
|
|
|
|
| |
Can be used to support rescheduling.
|
|
|
|
|
|
|
| |
It was confusing to reject a silence and an unsilence when overwrites
were manually set to False. That's because it's contradictory to show
an error stating it's already silence but then reject an unsilence with
an error stating the channel isn't silenced.
|
|
|
|
|
| |
Admins will have to manually check the default values used and adjust
them if they aren't the desired values for that particular channel.
|
|
|
|
|
|
| |
Overwrites can be edited during a silence, which can result in the
overwrites check failing. Checking the scheduler too ensures that
a duplicate silence won't be scheduled.
|
|
|
|
|
|
|
|
|
|
| |
No longer assume default values for the overwrites which are modified.
Save and restore previous values `add_reactions` and `send_messages`
via redis.
When unsilencing, check if a channel is silenced via the redis cache
rather than the channel's current overwrites to ensure the task is
cancelled even if overwrites were manually edited.
|
|\
| |
| | |
Fix typo on the traceback tag
|
|/
|
| |
See issue #1101
|
|\
| |
| | |
Remove api endpoint config values.
|
| |\
| |/
|/| |
|
| | |
|
| | |
|
|/
|
|
|
| |
The constants aren't used anywhere in the bot,
and are incompatible with the APIClient.
|
|\
| |
| |
| |
| | |
python-discord/bug/filters/1027/ignore-webhook-names
Ignore webhooks for nickname filter
|
| |\
| |/
|/| |
|
|\ \
| | |
| | | |
Utils: show error message for long poll titles
|
| |\ \
| |/ /
|/| | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
Help channel message pin fixes
|
| |\ \ \
| |/ / /
|/| | | |
|
|\ \ \ \ |
|
| |\ \ \ \
| |/ / / /
|/| | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
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
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The bot's pin message was being picked up as the last message, so the
system was not considering the channel empty.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This can be used for both pinning and unpinning messages. The error
handling code was largely similar between them.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Fixes #1082
Fixes BOT-7G
|
| | | | |
|
|/ / / |
|
|/ /
| |
| |
| |
| |
| |
| | |
Embeds have a maximum length of 256 for titles.
Fixes #1079
Fixes BOT-7Q
|
|/
|
|
| |
Fixes #1027
|
|
|
|
| |
This reverts commit be14db91b1c70993773e67cfa663fef0cfa85666.
|
|\
| |
| | |
Add support for plural FilterList types.
|