| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | Send purged msg log to #message-change-log too (#3255) | 2025-02-16 | -8/+9 | |
| | | ||||
| * | Merge pull request #3247 from python-discord/swfarnsworth/fix-auto-upload | 2025-02-12 | -35/+176 | |
| |\ | | | | | Swfarnsworth/fix auto upload | |||
| | * | Merge branch 'main' into swfarnsworth/fix-auto-upload | 2025-02-11 | -1/+1 | |
| | |\ | |/ |/| | ||||
| * | | Ignore both archived and locked posts when archiving idle | 2025-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. | 2025-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` | 2025-02-08 | -1/+1 | |
| | | | ||||
| | * | Change indentation of lines in docstring. | 2025-02-08 | -2/+2 | |
| | | | ||||
| | * | Merge branch 'main' into swfarnsworth/fix-auto-upload | 2025-02-08 | -8/+6 | |
| | |\ | |/ |/| | ||||
| * | | Merge pull request #3254 from python-discord/fix-help-cog | 2025-02-08 | -8/+6 | |
| |\ \ | | | | | | | Help cog improvements | |||
| | * | | Only pass post_id to the scheulded task, to be clear on intentions | 2025-02-07 | -5/+5 | |
| | | | | ||||
| | * | | Fetch latest help post further up the call stack when looking to archive | 2025-02-07 | -4/+2 | |
| |/ / | | | | | | | This ensures that the logic prior to closing also has the updated thread info | |||
| | * | Rename class and some constants. | 2025-01-30 | -10/+8 | |
| | | | ||||
| | * | Add newline before if statement. | 2025-01-30 | -0/+1 | |
| | | | ||||
| | * | Make parenthetical await expressions their own statements. | 2025-01-30 | -2/+4 | |
| | | | ||||
| | * | Move functionality for awaiting emoji reactions to its own function. | 2025-01-30 | -28/+41 | |
| | | | ||||
| | * | Remove tests for deleted behavior. | 2025-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. | 2025-01-30 | -0/+3 | |
| | | | | | | | | | I manually tested the functionality implemented here. | |||
| | * | Undo a revert | 2025-01-30 | -1/+162 | |
| |/ | ||||
| * | Merge pull request #3246 from python-discord/revert-3241-pastebin-auto-upload | 2025-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 ↵ | 2025-01-30 | -180/+44 | |
| |/ | | | | attachments to paste bin" | |||
| * | Merge pull request #3241 from python-discord/pastebin-auto-upload | 2025-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-upload | 2025-01-30 | -20/+41 | |
| | |\ | |/ |/| | ||||
| * | | Add missing arg in help post archive call | 2025-01-18 | -1/+1 | |
| | | | ||||
| * | | Ensure every path to close a help channel cancels scheduled closes | 2025-01-18 | -12/+22 | |
| | | | ||||
| * | | Merge pull request #3240 from python-discord/Show-close-reasons | 2025-01-18 | -6/+17 | |
| |\ \ | | | | | | | Show close reasons in close message | |||
| | * | | !close can also be used by moderators, not just OP | 2025-01-18 | -1/+1 | |
| | | | | ||||
| | * | | More specific close message for native close | 2025-01-18 | -1/+1 | |
| | | | | ||||
| | * | | Don't repeat start of close message in every if branch | 2025-01-18 | -6/+6 | |
| | | | | ||||
| | * | | Add closing reason for when OP closes uses native Discord close option | 2025-01-18 | -1/+4 | |
| | | | | ||||
| | * | | Change closing embed title based on close reason | 2025-01-18 | -1/+10 | |
| | | | | ||||
| | * | | Significantly shorten help channel close message | 2025-01-18 | -2/+2 | |
| | | | | ||||
| | * | | Remove unneeded constant | 2025-01-18 | -2/+1 | |
| |/ / | ||||
| * | | Update supported Python versions in Snekbox help text (#3237) | 2025-01-18 | -2/+2 | |
| | | | ||||
| * | | Merge pull request #3232 from python-discord/codeblock-instructions | 2025-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 ↵ | 2025-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. | 2025-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. | 2025-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. | 2025-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. | 2025-01-29 | -5/+10 | |
| | | | | ||||
| | | * | Exit early if none of the attachments are text. | 2025-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 module | 2025-01-29 | -87/+111 | |
| | | | | ||||
| | | * | Add helper function for extracting attachment text. | 2025-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) | |||
| | | * | Apply token filters to text attachment content. | 2025-01-19 | -1/+10 | |
| | | | | | | | | | | | | | Works by appending text attachment content to message content, and then applying the filters normally. | |||
| | | * | Migrate to py3.12 typing syntax. | 2025-01-19 | -9/+5 | |
| | | | | ||||
| | | * | Migrate to py3.12 generic syntax (removes TypeVar). | 2025-01-12 | -4/+1 | |
| | | | | ||||
| | | * | work-in-progress: when upload a text file attachment, ask for permission to ↵ | 2025-01-12 | -2/+92 | |
| | |/ | | | | | | | | | | | auto-upload to pastebin. Also DMs the delete URL to the user. This code will very likely be moved elsewhere before/if it is merged. | |||
| | * | Further abbreviate the "wrong language specifier" message; remove extra ↵ | 2025-01-10 | -7/+5 | |
| | | | | | | | | | "please". | |||
| | * | Abbreviate codeblock instructions; remove ability to dismiss the ↵ | 2025-01-08 | -25/+8 | |
| |/ | | | | | | instructions with emoji. The more concise instructions are intended to be easier to read and increase the rate of followthru. That the instructions cannot be dismissed is intended to make them harder to ignore. | |||
| * | Remove unneeded import | 2025-01-05 | -2/+1 | |
| | | ||||
| * | Re-fetch help threads before closing. | 2025-01-04 | -0/+4 | |
| | | | | | This ensures that the thread title is up-to-date. Previously, even if someone changed the title of the thread, the bot might prepend the lock emoji to an older version of the title. | |||