| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| | | * | | | | | | | AntiSpam modified to work with cache | 2021-08-21 | -9/+406 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The anti-spam cog now uses a cache instead of reading channel history. The cache is for all channels in the guild, and does not remove deleted messages. That means that the anti-spam logic now works cross-channel and counts deleted messages. The size of the cache is determined via a new field in the config YAML file. The cache was implemented as a separate class, MessageCache, which uses circular buffer logic. This allows for constant time addition and removal form either side, and lookup. The cache does not support removal from the middle of the cache. The cache additionally stores a mapping from message ID's to the index of the message in the cache, to allow constant time lookup by message ID. The commit additionally adds accompanying tests, and renames `cache.py` to `caching.py` to better distinguish it from the new `message_cache.py` and convey that it's for general caching utilities. | ||||
| | | * | | | | | | | Move max_interval to init | 2021-08-17 | -8/+8 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The on_message event calculated the max interval value every time for no reason. The value is constant throughout the bot's up time. | ||||
| | | | * | | | | | | Remove restriction on snowflake command | 2021-08-23 | -4/+0 | ||
| | |_|/ / / / / / |/| | | | | | | | |||||
| * | | | | | | | | Merge pull request #1771 from python-discord/TizzySaurus-patch-1 | 2021-08-23 | -0/+2 | ||
| |\ \ \ \ \ \ \ \ | |_|_|/ / / / / |/| | | | | | | | Escape markdown in user's name for `!user` command | ||||
| | * | | | | | | | Escape markdown in user's name for `!user` command | 2021-08-23 | -0/+2 | ||
| |/ / / / / / / | |||||
| * | | | / / / | Update reminders command to use `UserMentionOrID` instead of ↵ | 2021-08-23 | -4/+5 | ||
| | |_|_|/ / / |/| | | | | | | | | | | | | | | | | | `discord.Member` to fix greediness issues. (#1768) | ||||
| * | | | | | | Update time format in reminder message to DAY_TIME from RELATIVE (#1766) | 2021-08-23 | -1/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update time format in reminder message to DAY_TIME from RELATIVE Co-authored-by: Xithrius <[email protected]> | ||||
| * | | | | | | Merge pull request #1762 from python-discord/metabase-sharing | 2021-08-22 | -51/+70 | ||
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | Metabase sharing | ||||
| | * \ \ \ \ \ | Merge branch 'main' into metabase-sharing | 2021-08-22 | -174/+90 | ||
| | |\ \ \ \ \ \ | |/ / / / / / |/| | | | | | | |||||
| * | | | | | | | Merge pull request #1742 from python-discord/remove-redundant-converters | 2021-08-22 | -166/+78 | ||
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | Remove redundant converters and renamed FetchedMember to MemberOrUser | ||||
| | * \ \ \ \ \ \ | Merge branch 'main' into remove-redundant-converters | 2021-08-22 | -340/+574 | ||
| | |\ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | | |||||
| * | | | | | | | | Merge pull request #1743 from python-discord/dawnofmidnight/site-urls | 2021-08-22 | -7/+7 | ||
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | fix: update urls in site cog | ||||
| | * \ \ \ \ \ \ \ | Merge branch 'main' into dawnofmidnight/site-urls | 2021-08-22 | -333/+567 | ||
| | |\ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | | | |||||
| * | | | | | | | | | Merge pull request #1764 from python-discord/TizzySaurus-patch-1 | 2021-08-22 | -1/+5 | ||
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Fix edge-case of `user.joined_at` being `None` in userinfo command. | ||||
| | * | | | | | | | | | Fix edge-case of `user.joined_at` being `None` in userinfo command. | 2021-08-22 | -1/+5 | ||
| |/ / / / / / / / / | |||||
| | * | | | | | | | | fix: update urls in site cog | 2021-08-11 | -7/+7 | ||
| | | | | | | | | | | |||||
| | | * | | | | | | | Update outdated comment | 2021-08-22 | -1/+1 | ||
| | | | | | | | | | | |||||
| | | * | | | | | | | Revert `search_user` typehint back to `MemberOrUser` | 2021-08-22 | -2/+2 | ||
| | | | | | | | | | | |||||
| | | * | | | | | | | Update `infraction_search_group` typehint to `UserMentionOrId` | 2021-08-22 | -3/+3 | ||
| | | | | | | | | | | |||||
| | | * | | | | | | | Attempt to get user from DB when discord.Object passed to search_user | 2021-08-22 | -2/+6 | ||
| | | | | | | | | | | |||||
| | | * | | | | | | | Remove redundant getattr protection | 2021-08-22 | -2/+2 | ||
| | | | | | | | | | | |||||
| | | * | | | | | | | Remove redundant fetching of user code | 2021-08-22 | -11/+4 | ||
| | | | | | | | | | | |||||
| | | * | | | | | | | Add missing call to `escape_markdown` | 2021-08-22 | -2/+6 | ||
| | | | | | | | | | | |||||
| | | * | | | | | | | Re-add ability to search infractions of deleted account | 2021-08-22 | -6/+9 | ||
| | | | | | | | | | | |||||
| | | * | | | | | | | Remove redundant function | 2021-08-22 | -13/+0 | ||
| | | | | | | | | | | |||||
| | | * | | | | | | | Fix isinstance check | 2021-08-22 | -1/+1 | ||
| | | | | | | | | | | |||||
| | | * | | | | | | | Fix import | 2021-08-22 | -1/+1 | ||
| | | | | | | | | | | |||||
| | | * | | | | | | | Fix import order | 2021-08-22 | -1/+1 | ||
| | | | | | | | | | | |||||
| | | * | | | | | | | Rename converter from FetchedMember to MemberOrUser | 2021-08-22 | -57/+58 | ||
| | | | | | | | | | | |||||
| | | * | | | | | | | Remove unused imports | 2021-08-22 | -4/+3 | ||
| | | | | | | | | | | |||||
| | | * | | | | | | | Update to new converters | 2021-08-22 | -29/+21 | ||
| | | | | | | | | | | |||||
| | | * | | | | | | | Remove converters made redundant by dpy V1.6's UserConverter update | 2021-08-22 | -72/+1 | ||
| | | | | | | | | | | |||||
| | | | * | | | | | | Add ability to publish metabase questions | 2021-08-22 | -0/+14 | ||
| | | | | | | | | | | |||||
| | | | * | | | | | | Trigger typing, to avoid wrapping whole func in a context manager | 2021-08-22 | -30/+30 | ||
| | | | | | | | | | | |||||
| | | | * | | | | | | Add alias for metabase export | 2021-08-22 | -1/+1 | ||
| | | | | | | | | | | |||||
| | | | * | | | | | | Change metabase config to base url, rather than api url | 2021-08-22 | -9/+7 | ||
| | | | | | | | | | | |||||
| | | | * | | | | | | Move metabase error handling to a cog error handler | 2021-08-22 | -26/+33 | ||
| | |_|/ / / / / / |/| | | | | | | | |||||
| * | | | | | | | | Merge pull request #1761 from python-discord/log-info-reminder-replies | 2021-08-22 | -1/+1 | ||
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | Lowering log level to info for missing reminder replies. | ||||
| | * | | | | | | | | Error to info log level on missing reminder message. | 2021-08-22 | -1/+1 | ||
| |/ / / / / / / / | |||||
| * | | | | | | | | Merge pull request #1749 from D0rs4n/pr/replinders | 2021-08-22 | -16/+23 | ||
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | Update reminders to reply instead of using a jump url to the origin message | ||||
| | * \ \ \ \ \ \ \ | Merge branch 'main' into pr/replinders | 2021-08-22 | -302/+500 | ||
| | |\ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | | | |||||
| * | | | | | | | | | Merge pull request #1725 from Ryu1845/escape_md_news | 2021-08-22 | -2/+8 | ||
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | added escape markdown in PythonNews | ||||
| | * \ \ \ \ \ \ \ \ | Merge branch 'main' into escape_md_news | 2021-08-22 | -324/+573 | ||
| | |\ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | | | |||||
| * | | | | | | | | | | Merge pull request #1756 from ↵ | 2021-08-19 | -10/+10 | ||
| |\ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | python-discord/Formatting-issues-on-the-!server-command Formatting issues on the !server command | ||||
| | * | | | | | | | | | Add comma separators to member counts in !server | 2021-08-19 | -3/+3 | ||
| | | | | | | | | | | | |||||
| | * | | | | | | | | | Fix linebreak formatting on server command | 2021-08-19 | -7/+7 | ||
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The features part of the embed isn't included in some channels, this leads to there not being a linebreak between voice regions and roles in the embed. By changing it to this, rather than dedent, we specify exact where we want the linebreaks to be. | ||||
| * | | | | | | | | | Merge #1752 - help channels: fix initialisation of available channels set | 2021-08-16 | -14/+8 | ||
| |\ \ \ \ \ \ \ \ \ | |||||
| | * \ \ \ \ \ \ \ \ | Merge branch 'main' into bug/help/1715/avail-set-init | 2021-08-16 | -54/+74 | ||
| | |\ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | | | |||||
| * | | | | | | | | | | Merge pull request #1753 from D0rs4n/pr/deletewebhook | 2021-08-16 | -7/+16 | ||
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | Delete Webhooks when one is accidentally posted. | ||||
| | * \ \ \ \ \ \ \ \ \ | Merge branch 'main' into pr/deletewebhook | 2021-08-16 | -47/+58 | ||
| | |\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / |/| | | | | | | | | | | |||||