aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Bump deps to latest (#3262)Gravatar ChrisJL2025-02-21-1036/+1102
| | | | | | | | | | | * Bump deps to latest * Sort deps * Use new style group for dev deps * Add attrs to ignore list of pip-licenses * Bump bot-core up to 11.6.0
* Configure dependabot to only open PRs for major version bumps (#3227)Gravatar ChrisJL2025-02-16-0/+4
| | | Security updates will always open PRs
* Merge pull request #3260 from ↵Gravatar ChrisJL2025-02-16-1/+114
|\ | | | | | | | | dd2480-spring-2025-group-1/kim/test-cases-for-bot-utils-helpers fix: `has_lines` returns empty str instead of bool
| * test: add test cases for `bot/utils/helpers.py`Gravatar Strengthless2025-02-14-0/+113
| |
| * fix: `has_lines` returns empty str instead of boolGravatar Strengthless2025-02-14-1/+1
| |
* | Merge pull request #3259 from bast0006/bast0006-textless-remindmeGravatar ChrisJL2025-02-16-15/+6
|\ \ | | | | | | Permit !remindme with no specified content
| * | Clean up extraneous logic and typing variance now that reminders always have ↵Gravatar bast2025-02-13-8/+3
| | | | | | | | | | | | content
| * | Permit !remindme with no specified contentGravatar bast2025-02-13-7/+3
| |/ | | | | | | It's often desired to refer to the current discussion context without needing to explicitly write a placeholder
* / Send purged msg log to #message-change-log too (#3255)Gravatar Vivek Ashokkumar2025-02-16-8/+9
|/
* Merge pull request #3247 from python-discord/swfarnsworth/fix-auto-uploadGravatar Steele Farnsworth2025-02-12-35/+176
|\ | | | | Swfarnsworth/fix auto upload
| * Merge branch 'main' into swfarnsworth/fix-auto-uploadGravatar Steele Farnsworth2025-02-11-1/+1
| |\ | |/ |/|
* | Ignore both archived and locked posts when archiving idleGravatar Chris Lovering2025-02-08-1/+1
| | | | | | | | | | For some reason a thread with .closed=True was getting past this if statement. See https://python-discord.sentry.io/issues/6281905188 and the value for post in the stack frame
| * Use `"charset" in Attachment.content_type` to determine that it's text-based.Gravatar Steele Farnsworth2025-02-08-1/+1
| | | | | | | | Previously, `on_message` used `Attachment.content_type.startswith("text")` for this, but this is false for some text-based files (like json).
| * `and` -> `or`Gravatar Steele Farnsworth2025-02-08-1/+1
| |
| * Change indentation of lines in docstring.Gravatar Steele Farnsworth2025-02-08-2/+2
| |
| * Merge branch 'main' into swfarnsworth/fix-auto-uploadGravatar Steele Farnsworth2025-02-08-8/+6
| |\ | |/ |/|
* | Merge pull request #3254 from python-discord/fix-help-cogGravatar Steele Farnsworth2025-02-08-8/+6
|\ \ | | | | | | Help cog improvements
| * | Only pass post_id to the scheulded task, to be clear on intentionsGravatar Chris Lovering2025-02-07-5/+5
| | |
| * | Fetch latest help post further up the call stack when looking to archiveGravatar Chris Lovering2025-02-07-4/+2
|/ / | | | | | | This ensures that the logic prior to closing also has the updated thread info
| * Rename class and some constants.Gravatar Steele Farnsworth2025-01-30-10/+8
| |
| * Add newline before if statement.Gravatar Steele Farnsworth2025-01-30-0/+1
| |
| * Make parenthetical await expressions their own statements.Gravatar Steele Farnsworth2025-01-30-2/+4
| |
| * Move functionality for awaiting emoji reactions to its own function.Gravatar Steele Farnsworth2025-01-30-28/+41
| |
| * Remove tests for deleted behavior.Gravatar Steele Farnsworth2025-01-30-37/+0
| | | | | | | | Previously, (txt, csv, json, and py) files evoked special behavior from the filtering system. This is no longer the case.
| * Mark tests that aren't passing with xfail.Gravatar Steele Farnsworth2025-01-30-0/+3
| | | | | | | | I manually tested the functionality implemented here.
| * Undo a revertGravatar Steele Farnsworth2025-01-30-1/+162
|/
* Merge pull request #3246 from python-discord/revert-3241-pastebin-auto-uploadGravatar Steele Farnsworth2025-01-30-180/+44
|\ | | | | Revert "Apply filtering to text attachments; offer to auto-upload text attachments to paste bin"
| * Revert "Apply filtering to text attachments; offer to auto-upload text ↵Gravatar Steele Farnsworth2025-01-30-180/+44
|/ | | | attachments to paste bin"
* Merge pull request #3241 from python-discord/pastebin-auto-uploadGravatar Steele Farnsworth2025-01-30-44/+180
|\ | | | | Apply filtering to text attachments; offer to auto-upload text attachments to paste bin
| * Merge branch 'main' into pastebin-auto-uploadpastebin-auto-uploadGravatar Steele Farnsworth2025-01-30-20/+41
| |\ | |/ |/|
* | Add missing arg in help post archive callGravatar Chris Lovering2025-01-18-1/+1
| |
* | Ensure every path to close a help channel cancels scheduled closesGravatar Chris Lovering2025-01-18-12/+22
| |
* | Merge pull request #3240 from python-discord/Show-close-reasonsGravatar Boris Muratov2025-01-18-6/+17
|\ \ | | | | | | Show close reasons in close message
| * | !close can also be used by moderators, not just OPGravatar Chris Lovering2025-01-18-1/+1
| | |
| * | More specific close message for native closeGravatar Chris Lovering2025-01-18-1/+1
| | |
| * | Don't repeat start of close message in every if branchGravatar Chris Lovering2025-01-18-6/+6
| | |
| * | Add closing reason for when OP closes uses native Discord close optionGravatar Chris Lovering2025-01-18-1/+4
| | |
| * | Change closing embed title based on close reasonGravatar Chris Lovering2025-01-18-1/+10
| | |
| * | Significantly shorten help channel close messageGravatar Chris Lovering2025-01-18-2/+2
| | |
| * | Remove unneeded constantGravatar Chris Lovering2025-01-18-2/+1
|/ /
* | Update supported Python versions in Snekbox help text (#3237)Gravatar Bradley Reynolds2025-01-18-2/+2
| |
* | Merge pull request #3232 from python-discord/codeblock-instructionsGravatar Steele Farnsworth2025-01-14-31/+12
|\ \ | | | | | | Abbreviate codeblock instructions; remove ability to dismiss the inst…
| | * Change how a file is determined to be text-like. Decode text with correct ↵Gravatar Steele Farnsworth2025-01-30-3/+4
| | | | | | | | | | | | | | | | | | encoding. Attachments with "charset" in their content type are presumed to be text. The specified charset is always used to decode the text.
| | * Remove messages related to disallowed text-like files.Gravatar Steele Farnsworth2025-01-30-34/+13
| | | | | | | | | | | | These files will be made allowed. Also move `TXT_LIKE_FILES` to the other module that uses it.
| | * Account for messages with attachments being deleted before author reacts.Gravatar Steele Farnsworth2025-01-29-0/+14
| | | | | | | | | | | | Messages might be deleted immediately if the message or the attachment trips a filter, in which case we don't want the user to be able to upload them.
| | * Add logging; expand initial message from bot; fix bug in deleting the paste.Gravatar Steele Farnsworth2025-01-29-3/+18
| | | | | | | | | | | | | | | | | | The expanded initial message tells the user that uploading to the paste bin is for accessibility. I hallucinated that PasteResponse objects have a delete method, which they do not.
| | * Add comments explaining each step.Gravatar Steele Farnsworth2025-01-29-5/+10
| | |
| | * Exit early if none of the attachments are text.Gravatar Steele Farnsworth2025-01-29-2/+1
| | | | | | | | | | | | Previously, the bot might have offered to upload the attachments in a message containing only images, and then done nothing.
| | * Move EmbedFileHandler cog to its own moduleGravatar Steele Farnsworth2025-01-29-87/+111
| | |
| | * Add helper function for extracting attachment text.Gravatar Steele Farnsworth2025-01-29-1/+8
| | | | | | | | | | | | Implements a somewhat arbitrary limit on how much text content is passed along for filtering, to avoid wasting compute time on large attachments that aren't intended to be read (such as CSVs)