aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Save another API callGravatar mathstrains212021-10-28-1/+1
|
* Change command function docstringsGravatar mathstrains212021-10-28-2/+2
| | | | (Help command uses docstrings, so make them user-friendly)
* Update patreon descriptionGravatar mathstrains212021-10-28-2/+2
|
* Save API callGravatar mathstrains212021-10-28-2/+2
|
* Fix capitalisationGravatar mathstrains212021-10-27-1/+1
|
* Unify linksGravatar mathstrains212021-10-27-2/+2
|
* embeds= -> embed=Gravatar mathstrains212021-10-27-2/+2
|
* `commands.context` -> `commands.Context`Gravatar mathstrains212021-10-27-2/+2
|
* Adjust docstringsGravatar mathstrains212021-10-27-2/+2
|
* Rename some variablesGravatar mathstrains212021-10-27-12/+12
| | | | | | | | | | Revert "Rename some variables" This reverts commit 2f5aeb06e816240b08453b5cf327c6b77958a3ab. Fix variable names (again) And again
* Fix f stringGravatar mathstrains212021-10-27-1/+1
|
* Rename current_supporters_monthly to current_monthly_supportersGravatar mathstrains212021-10-27-2/+2
|
* Fix fetch/getGravatar mathstrains212021-10-27-6/+3
|
* Merge branches 'patreon' and 'patreon' of ↵Gravatar mathstrains212021-10-27-7/+55
|\ | | | | | | https://github.com/mathstrains21/bot into patreon
| * Merge branch 'python-discord:main' into patreonGravatar mathstrains212021-10-27-7/+55
| |\
| | * Handle autoban filtering in DMs (#1914)Gravatar Boris Muratov2021-10-26-1/+2
| | | | | | | | | An autoban trigger being sent in DMs caused the ban to fail, but for it to still be registered in the database. That is becuase the ban command uses the `ctx.guild.ban` method, but in DMs `ctx.guild` is None. This commit solves it by overriding the `context.guild` field.
| | * Merge pull request #1893 from python-discord/filters/autobanGravatar Boris Muratov2021-10-25-7/+54
| | |\ | | | | | | | | Filtering: add autoban on specific reasons
| | | * Filtering: remove dangling empty quoteGravatar Matteo Bertucci2021-10-25-1/+1
| | | | | | | | | | | | Co-authored-by: ChrisJL <[email protected]>
| | | * Filtering: update auto-ban commentsGravatar Matteo Bertucci2021-10-25-3/+4
| | | | | | | | | | | | Co-authored-by: ChrisJL <[email protected]>
| | | * Filtering: fix ban flowGravatar Matteo Bertucci2021-10-25-2/+3
| | | |
| | | * Fltering: clean up autoban codeGravatar Matteo Bertucci2021-10-25-4/+4
| | | |
| | | * Filter list: move warning to #mod-metaGravatar Matteo Bertucci2021-10-25-4/+4
| | | |
| | | * Merge remote-tracking branch 'origin/main' into filters/autobanGravatar Matteo Bertucci2021-10-25-303/+360
| | | |\ | | | |/ | | |/|
| | | * Filter list: send warning when autoban trigger is addedGravatar Matteo Bertucci2021-10-25-2/+11
| | | |
| | | * Filtering: update auto ban messageGravatar Matteo Bertucci2021-10-25-3/+15
| | | |
| | | * Infrac: prioritize mod over bot feedback msgGravatar Matteo Bertucci2021-10-25-8/+8
| | | |
| | | * Filtering: make autoban tempGravatar Matteo Bertucci2021-10-19-8/+4
| | | |
| | | * Filtering: do not try to convert to a memberGravatar Matteo Bertucci2021-10-19-2/+2
| | | |
| | | * Filtering: update auto-ban messageGravatar Matteo Bertucci2021-10-19-2/+2
| | | | | | | | | | | | Co-authored-by: Boris Muratov <[email protected]>
| | | * Filtering: add autoban on specific reasonsGravatar Matteo Bertucci2021-10-19-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to the increase in typo-squatting based phishing, we want to automatically ban users sending specific domain names. For that, this commit will automatically ban any user that trigger a filter which has `[autoban]` in its reason. That's it!
* | | | Remove obvious type hintsGravatar mathstrains212021-10-27-17/+17
|/ / /
* | | Add patreon commandGravatar mathstrains212021-10-27-0/+13
| | |
* | | Add monthly patrons listGravatar mathstrains212021-10-27-2/+15
| | |
* | | Add patrons commandGravatar mathstrains212021-10-26-0/+62
| | | | | | | | | | | | | | | | | | Add function to send the current supporters Add a command to call this function
* | | Merge branch 'python-discord:main' into patreonGravatar mathstrains212021-10-24-1114/+1722
|\| |
| * | Merge pull request #1908 from python-discord/fix-tz-issueGravatar Hassan Abouelela2021-10-23-2/+5
| |\ \ | | | | | | | | Use datetime.fromtimestamp so we pass relativedelta a datetime object…
| | * | Use datetime.fromtimestamp so we pass relativedelta a datetime object, not ArrowGravatar Chris Lovering2021-10-22-2/+5
| |/ / | | | | | | | | | | | | Fixes #1907 Fixes BOT-1PA
| * | Merge pull request #1906 from python-discord/fix-tzinfo-issueGravatar Hassan Abouelela2021-10-23-2/+2
| |\ \ | | | | | | | | Use Arrow.fromtimestamp to get an aware datetime
| | * | Use Arrow.fromtimestamp to get an aware datetimeGravatar Chris Lovering2021-10-22-2/+2
| |/ / | | | | | | | | | | | | | | | | | | Fixes #1905 Fixes BOT-1P9 datetime.fromtimestamp returned an naive datetime, so when comparing to the aware datetime from dateutil.parser.isoparse, it would raise an error.
| * | Move to timezone aware datetimes (#1895)Gravatar Boris Muratov2021-10-22-113/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move to timezone aware datetimes With the shift of the discord.py library to timezone aware datetimes, this commit changes datetimes throughout the bot to be in the UTC timezone accordingly. This has several advantages: - There's no need to discard the TZ every time the datetime of a Discord object is fetched. - Using TZ aware datetimes reduces the likelihood of silently adding bugs into the codebase (can't compare an aware datetime with a naive one). - Our DB already stores datetimes in UTC, but we've been discarding the TZ so far whenever we read from it. Specific places in the codebase continue using naive datetimes, mainly for UI purposes (for examples embed footers use naive datetimes to display local time). * Improve ISODateTime converter documentation Co-authored-by: Kieran Siek <[email protected]>
| * | Merge pull request #1904 from python-discord/modlog/explicit-thread-nameGravatar ChrisJL2021-10-22-3/+12
| |\ \ | | | | | | | | Modlog: explicitly write thread names
| | * | Modlog: explicitly write thread namesGravatar Matteo Bertucci2021-10-22-3/+12
| |/ / | | | | | | | | | It seems like there could be some caching issue with threads causing to appear as deleted channels. Beside, we also want to keep the name of deleted threads around.
| * | Merge pull request #1902 from python-discord/bump-licensesGravatar Matteo Bertucci2021-10-21-88/+95
| |\ \ | | | | | | | | Bumps Pip Licences
| | * | Bumps Pip LicencesGravatar Hassan Abouelela2021-10-22-88/+95
| |/ / | | | | | | | | | | | | | | | | | | Updates the pip-licences version to fix a breaking bug in the currently pinned version. Signed-off-by: Hassan Abouelela <[email protected]>
| * | Merge pull request #1897 from python-discord/modlog/correct-color-namesGravatar Karlis Suvi2021-10-20-4/+4
| |\ \
| | * | Modlog: correct color namesGravatar Matteo Bertucci2021-10-19-4/+4
| |/ / | | | | | | Solves https://github.com/python-discord/bot/issues/1896
| * | Merge pull request #1894 from python-discord/modlog-soft-colorsGravatar ChrisJL2021-10-19-4/+4
| |\ \ | | | | | | | | Mod-log thread: use soft colors
| | * | Mod-log thread: use soft colorsGravatar Matteo Bertucci2021-10-19-4/+4
| |/ / | | | | | | Seems like we have been using the wrong colors in mod-log.
| * | Merge pull request #1845 from python-discord/fix-sentry-BOT-1N6Gravatar Matteo Bertucci2021-10-19-6/+13
| |\ \ | | | | | | | | Handle edge case of `message.author` being a `discord.User` when claiming a help channel.
| | * \ Merge branch 'main' into fix-sentry-BOT-1N6Gravatar TizzySaurus2021-10-19-981/+1567
| | |\ \ | | |/ / | |/| |