diff options
author | 2022-03-14 19:32:35 +0000 | |
---|---|---|
committer | 2022-03-14 19:32:35 +0000 | |
commit | 65f4240adf5ca59aa530bf1e81b8d82ac37c0e22 (patch) | |
tree | 6f847f238687659854983b1036e0b6f526ac94e2 | |
parent | Add regex tag (#2109) (diff) |
Increase watch API call limit to 10,000
By default, the site infractions query API will only return 100 records,
but we have more active watches than this meaning that the response
truncated active infractions and so the bigbrother cog was not
initialising with all active watches.
This change ensures that up to 10,000 watches are fetched instead meaning no
infractions will be truncated and missed.
-rw-r--r-- | bot/exts/moderation/watchchannels/bigbrother.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/watchchannels/bigbrother.py b/bot/exts/moderation/watchchannels/bigbrother.py index b0a48ceff..f19e3d103 100644 --- a/bot/exts/moderation/watchchannels/bigbrother.py +++ b/bot/exts/moderation/watchchannels/bigbrother.py @@ -22,7 +22,7 @@ class BigBrother(WatchChannel, Cog, name="Big Brother"): destination=Channels.big_brother_logs, webhook_id=Webhooks.big_brother, api_endpoint='bot/infractions', - api_default_params={'active': 'true', 'type': 'watch', 'ordering': '-inserted_at'}, + api_default_params={'active': 'true', 'type': 'watch', 'ordering': '-inserted_at', 'limit': 10_000}, logger=log ) |