aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| * | | | | | | | | | Time: remove timedelta and relativedelta support from discord_timestampGravatar MarkKoz2021-08-05-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a delta is given, it is unknown what it's relative to. The function has to assume it's relative to the POSIX Epoch. However, using a delta for this would be quite odd, and would more likely be a mistake if anything. relativedelta support was broken anyway since it wasn't using the total seconds represented by the delta.
| * | | | | | | | | | Time: remove broken enum type check in discord_timestampGravatar MarkKoz2021-08-05-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First, the `args` attribute doesn't exist on enums. Even if it did, this check only works if the argument given is an enum member (of any enum). Such occurrence seems too rare to warrant an explicit check.
| * | | | | | | | | | Time: remove absolute param from format_infraction_with_durationGravatar MarkKoz2021-08-05-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's not used anywhere. Furthermore, a humanised duration with negative values wouldn't make sense.
| * | | | | | | | | | Time: replace discord_timestamp calls with format_relativeGravatar MarkKoz2021-08-05-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the latter where the former was being called with the relative format type.
| * | | | | | | | | | Time: rename time_since to format_relativeGravatar MarkKoz2021-08-05-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While the function is basically just a wrapper for discord_timestamp now, it is very common to use the relative format. It's cumbersome to import the format enum and pass it to discord_timestamp calls, so keeping this function around will be nice.
| * | | | | | | | | | Time: qualify uses of functions with the module nameGravatar MarkKoz2021-08-05-58/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In cases where many time utility functions were being imported, this makes the imports shorter and cleaner. In other cases, the function names read better when they're qualified with "time"; the extra context it adds is helpful.
| * | | | | | | | | | Time: remove RFC1123 supportGravatar MarkKoz2021-08-05-13/+0
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's not used anywhere and hasn't been for a very long time.
* | | | | | | | | | empty commit for CIGravatar Joe Banks2022-01-08-0/+0
| | | | | | | | | |
* | | | | | | | | | Merge pull request #2041 from python-discord/eval-mentionsGravatar ChrisJL2022-01-08-6/+23
|\ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / |/| | | | | | | | |
| * | | | | | | | | Fix snekbox tests with new allowed_mentionsGravatar Ben Soyka2022-01-08-4/+20
| | | | | | | | | |
| * | | | | | | | | Restrict allowed mentions for !eval resultsGravatar Ben Soyka2022-01-08-2/+3
|/ / / / / / / / /
* | | | | | | | | modlog: wait for guild init before using channel cacheGravatar Kronifer2022-01-04-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Not doing so could cause an error where get_channel would return none for the mod logs channel.
* | | | | | | | | Merge pull request #2036 from python-discord/fix-bot-2034Gravatar ChrisJL2022-01-02-4/+5
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Infraction mod-log improvements
| * | | | | | | | | Infraction mod-log improvementsGravatar Izan2022-01-01-4/+5
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add infraction id to infraction edit modlog - Add missing colon in "infraction applied" message - Utilise defined infraction id variable instead of indexing dict again
* | | | | | | | | Add text indicating when user fetched by message (#2013)Gravatar TizzySaurus2021-12-29-16/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Xithrius <[email protected]>
* | | | | | | | | Strip gotcha tag (PR #2000)Gravatar Shom7702021-12-29-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | * adding strip-gotcha tag
* | | | | | | | | Include message counts in all channels (#2016)Gravatar ChrisJL2021-12-28-14/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Xithrius <[email protected]>
* | | | | | | | | Merge pull request #1889 from Kronifer/url-parsingGravatar ChrisJL2021-12-26-278/+394
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | feat: added url parsing to the filter
| * | | | | | | | | feat: changed to tldextractGravatar Kronifer2021-12-26-286/+394
| | | | | | | | | |
| * | | | | | | | | feat: added url parsing to filters with support for relative URLsGravatar Kronifer2021-12-26-2/+10
|/ / / / / / / / /
* | | | | | | | | Add missing infraction id parameter & change ctx.bot to self.bot (#2028)Gravatar TizzySaurus2021-12-26-2/+2
| | | | | | | | |
* | | | | | | | | Merge pull request #2027 from python-discord/fix-dm-sent-featureGravatar Joe Banks2021-12-26-1/+3
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Add missing `bot` parameter to callGravatar Izan2021-12-26-1/+3
|/ / / / / / / / /
* | | | | | | | | Merge pull request #1951 from python-discord/add-dm_sent-fieldGravatar Johannes Christ2021-12-26-12/+45
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Display whether DM was sent to user when listing infraction(s).
| * \ \ \ \ \ \ \ \ Merge branch 'main' into add-dm_sent-fieldGravatar Joe Banks2021-12-25-839/+1575
| |\ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | |
* | | | | | | | | | Merge pull request #2025 from onerandomusername/fix-issue-2024Gravatar Joe Banks2021-12-21-1/+1
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | fix: pass required argumentGravatar onerandomusername2021-12-21-1/+1
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | closes GH-2024
* | | | | | | | | | Merge pull request #2023 from Numerlor/tag-try-exact-name-onlyGravatar Joe Banks2021-12-19-0/+5
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Attempt a name only exact match if a tag with a group is searchedGravatar Numerlor2021-12-18-0/+5
|/ / / / / / / / / /
* | | | | | | | | | Merge pull request #2019 from python-discord/better-off-topic-tagsGravatar Boris Muratov2021-12-18-10/+13
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Better off topic tags
| * | | | | | | | | | Adjust wording to embed contentGravatar mina2021-12-17-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: dawn <[email protected]>
| * | | | | | | | | | Create new tag explaining off-topic channelsGravatar mina2021-12-17-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new `off-topic-names` tag lists all off-topic channels (in their original order: 0, 1, 2), includes an explanation of the nightly channel name change, and links to the off-topic etiquette guide.
| * | | | | | | | | | Rename and reword off-topic tagsGravatar mina2021-12-17-10/+3
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename `off-topic` tag to `ot` and shorten description to only include mention of the less-occupied #ot2 off-topic channel.
* | | | | | | | | | Merge pull request #1989 from python-discord/clean_improvementsGravatar ChrisJL2021-12-16-105/+102
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Clean improvements
| * \ \ \ \ \ \ \ \ \ Merge branch 'main' into clean_improvementsGravatar ChrisJL2021-12-16-544/+631
| |\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / |/| | | | | | | | | |
* | | | | | | | | | | Rename channels.discord_py to discord_bots (#1982)Gravatar Ben Soyka2021-12-15-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: ToxicKidz <[email protected]> Co-authored-by: Xithrius <[email protected]>
* | | | | | | | | | | Merge pull request #2011 from python-discord/dependabot/pip/lxml-4.6.5Gravatar Hassan Abouelela2021-12-14-51/+64
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Bump lxml from 4.6.3 to 4.6.5
| * | | | | | | | | | | Bump lxml from 4.6.3 to 4.6.5Gravatar dependabot[bot]2021-12-13-51/+64
|/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [lxml](https://github.com/lxml/lxml) from 4.6.3 to 4.6.5. - [Release notes](https://github.com/lxml/lxml/releases) - [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt) - [Commits](https://github.com/lxml/lxml/compare/lxml-4.6.3...lxml-4.6.5) --- updated-dependencies: - dependency-name: lxml dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
* | | | | | | | | | | Merge pull request #2005 from Akarys42/patch-1Gravatar ChrisJL2021-12-10-13/+7
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Remove myself from the code ownership
| * | | | | | | | | | | Remove myself from the code ownershipGravatar Matteo Bertucci2021-12-10-13/+7
|/ / / / / / / / / / /
| * | | | | | | | | | Skip private channels when deleting from allGravatar mbaruh2021-12-06-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When specifying all channels, the command now skips private channels to optimize for speed.
| * | | | | | | | | | Properly check the channel when deleting from cacheGravatar mbaruh2021-12-05-14/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the cache was only used to delete from all channels. I didn't add a channels check when I changed it.
| * | | | | | | | | | Remove now redundant input check.Gravatar mbaruh2021-12-03-4/+0
| | | | | | | | | | |
| * | | | | | | | | | Update _build_predicate to require a limitGravatar mbaruh2021-12-02-10/+8
| | | | | | | | | | |
| * | | | | | | | | | Simplify cache usageGravatar mbaruh2021-12-02-39/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes the cache usage argument from the clean commands. Cache usage is now an implementation detail. The cache will be used if the age of the oldest message requested for cleaning is younger than the oldest message in the cache. Additionally fixes the logger to the one used in the rest of the bot (caused by a faulty merge).
| * | | | | | | | | | Remove cleaning based on number of messagesGravatar mbaruh2021-12-02-49/+44
| | |_|_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All clean commands now use the clean limit (message, time delta, ISO datetime) instead of `traverse`. Consequently, `clean all` has been removed as `clean until` now effectively fulfills that role.
| | * | | | | | | | Remove debug `maxDiff` assignment.Gravatar Izan2021-11-25-1/+0
| | | | | | | | | |
| | * | | | | | | | Fix testsGravatar Izan2021-11-16-8/+19
| | | | | | | | | |
| | * | | | | | | | Display whether DM was sent to user when listing infraction(s).Gravatar Izan2021-11-16-4/+27
| | | | | | | | | |
| | | | | * | | | | Update bot/resources/tags/type-hint.mdGravatar wookie1842022-04-03-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: ChrisJL <[email protected]>