| Commit message (Collapse) | Author | Age | Lines |
| |
|
|\
| |
| | |
Validate configuration against typehints, remove old keys, rename off_topic_3 key
|
|/ |
|
|\
| |
| |
| |
| | |
Add coverage reporting & JUnit XML to tests.
Co-authored-by: null <[email protected]>
|
| |\
| |/
|/| |
|
|\ \
| | |
| | | |
Add tests for `bot.converters`.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Use `@pytest.fixture` for creating contexts.
|
| | | | |
|
| | | | |
|
| | | | |
|
| |_|/
|/| | |
|
| | |
| | |
| | |
| | |
| | | |
I missed a `get_user_info` in InfractionSearchQuery in bot.converts.
This method is now `fetch_user` in Discord.py 1.2.3.
|
|\ \ \
| | | |
| | | | |
Implement `!otn search`. Closes #408.
|
| |\ \ \
| |/ / /
|/| | | |
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Update discord.py version to 1.2.3
Co-authored-by: null <[email protected]>
|
| | | | | |
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
I have updated the discord.py version to 1.2.3. This includes changes
throughout the entire code base, including:
- All cogs now inherit from `discord.ext.commands.Cog`;
- All of our ABCs now have `bot.utils.CogABCMeta` as a metaclass;
- All event handlers in cogs are now decorated with `Cog.listener()`;
- Some method names have changes, including:
- get_message => fetch_message
- get_webhook_info => fetch_webhook
- A few occurences of `get_channel` have been replaced by the new
coroutine `fetch_channel`;
- I've had to patch a few lines of code to account for small
differences between the versions, like `on_member_update` attribute
names in ModLog and the fact the way we used `Context.invoke` a couple
of times has stopped working.
In addition, I've added a patch for a bug in discord.py (with the help
of @Scragly). This discord.py version has a bug which causes the edited
timestamp not to be processed for edited messages. It's already fixed
on GitHub, but a bug fix release has not been released to PyPI. In the
meantime, I've added a patch in `bot.patches.message_edited_at` and
included conditional loading in `__main__`.
Finally, I noticed a small bug in `bot.cogs.filtering` that I fixed; I
replaces `return` with `continue` to make sure filtering for edited
messages doesn't stop after the `rich_embed_filter`.
|
|\ \ \ \
| | | | |
| | | | | |
Add tests for `bot.cogs.security`.
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Add tests for `bot.cogs.token_remover`.
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
There were some GitLab references in various
parts of the code, which were causing a problem with
displaying icons in the bot connection embeds and
other minor aesthetic issues.
This commit replaces all links to GitLab with their
GitHub equivalent, resolving these bugs.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
We retired the old #dev-logs channel (for
security reasons) and have made a new one for
public consumption.
This commit changes the ID to match the new
channel.
|
| |/ / / /
|/| | | |
| | | | |
| | | | |
| | | | | |
Some links still had the URL scheme of the old Flask website, I updated
them to point to the correct pages on the new website.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Validate `bot/resources/stars.json` in tests.
|
| |/ / / / |
|
| |/ / /
|/| | | |
|
|\| | | |
|
| |\ \ \
| | | | |
| | | | | |
Add basic tests for `bot.pagination`.
|
| | |/ / |
|
| |\ \ \
| | | | |
| | | | | |
Validate bot.cogs.antispam configuration on CI.
|
| | | | |
| | | | |
| | | | | |
Co-Authored-By: Sebastiaan Zeeff <[email protected]>
|
| | | | | |
|
|/ / / / |
|
|\ \ \ \ |
|
| | | | | |
|
|/ / / / |
|
|\ \ \ \
| | |/ /
| |/| | |
|
| |\ \ \
| | | | |
| | | | | |
Add tests for `bot.utils.checks`.
|
| | |/ / |
|
|/ / / |
|
| | | |
|
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We were using a pipenv run script to launch the bot,
but pipenv run scripts assume that the run command will
be run inside of a virtual environment. So, the default
behaviour when we try to use a run command and no venv
exists is to create a venv.
Because we were installing all the packages to the local
environment by passing the '--system' flag to our install,
this would make the bot fail with ImportErrors.
This commit fixes it so that the Dockerfile will run the
bot using the system Python instead of the pipenv run script.
|
|/ |
|
| |
|
|
|
|
|
|
|
|
|
| |
* Add error handler to ignore InChannelCheckFailure in the verification
cog
* Raise InChannelCheckFailure instead of MissingPermissions in !user
* Send message instead of raising BadArgument in !user to prevent help
message from being shown in such case
* Clean up !user command
|
| |
|
|
|
|
| |
The exception now expects channel IDs to be passed to it.
|