aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2022-12-20Refactor snekbox tests to moduleGravatar ionite34-0/+0
2022-12-20Improve RE_ANSI match casesGravatar ionite34-1/+1
2022-12-20Add discord file name normalizationGravatar ionite34-0/+22
2022-12-20Add markdown mention escape for file error strGravatar ionite34-0/+5
2022-12-20Rename method get_failed_files_strGravatar ionite34-3/+3
2022-12-17Add unit tests for EvalResult.files_error_strGravatar ionite34-1/+22
2022-12-17Add unit test for files_error_messageGravatar ionite34-1/+28
2022-12-17Revert newline format for msgGravatar ionite34-3/+3
2022-12-17Update unit tests for EvalResult message changeGravatar ionite34-7/+16
2022-12-17Split get_message errors to other propertiesGravatar ionite34-27/+58
2022-12-17sizeof_fmt uses 0 d.p. for integralsGravatar ionite34-3/+6
2022-12-14Add FILE_COUNT_LIMIT and error messagesGravatar ionite34-9/+24
2022-12-14Rename attribute `failed_files`Gravatar ionite34-4/+4
2022-12-14Refactor to move snekbox to moduleGravatar ionite34-129/+152
2022-12-14Update `prepare_timeit_input` docstringGravatar ionite34-1/+1
2022-12-14Update test_post_job to use 3.10 snekboxGravatar ionite34-1/+1
2022-12-14Update function name `get_message`Gravatar ionite34-5/+5
2022-12-14Update file size limit commentGravatar ionite34-2/+3
2022-12-14Suppress HTTPException for redo emojiGravatar ionite34-1/+2
2022-12-14Update bot/exts/utils/snekbox.pyGravatar Ionite-4/+3
Co-authored-by: Mark <[email protected]>
2022-12-14Revert typoGravatar ionite34-1/+1
2022-12-14Fix test_post_job unit testGravatar ionite34-2/+2
2022-12-09Bump certifi from 2022.9.24 to 2022.12.7Gravatar dependabot[bot]-3/+3
Bumps [certifi](https://github.com/certifi/python-certifi) from 2022.9.24 to 2022.12.7. - [Release notes](https://github.com/certifi/python-certifi/releases) - [Commits](https://github.com/certifi/python-certifi/compare/2022.09.24...2022.12.07) --- updated-dependencies: - dependency-name: certifi dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
2022-12-07Move thread logging to message change logGravatar Chris Lovering-2/+4
2022-12-07Remove thread creation loggingGravatar Chris Lovering-17/+0
2022-12-04Fix help channels with no content not opening properlyGravatar Chris Lovering-1/+1
Chanels that just contained one or more images as an exampole would have the message.content equal to the empty string which != None, so the current check never got hit. Closes #2355 Closes BOT-3BW
2022-12-01Fix send_job return typeGravatar ionite34-1/+1
2022-11-30Don't count bot messages as an answer in a threadGravatar wookie184-2/+2
2022-11-30Reorder importsGravatar ionite34-3/+3
2022-11-30Update unit tests for snekboxGravatar ionite34-54/+57
2022-11-30Refactors for EvalResult and EvalJob dataclassesGravatar ionite34-175/+185
2022-11-29Rename print-return to return-gifGravatar Janine vN-0/+1
Adds the previous name as an alias as well
2022-11-28Use the old stat slugs in new help systemGravatar Chris Lovering-5/+6
2022-11-27Update return.md (#2325)Gravatar Steele Farnsworth-11/+8
Made the tag more brief without any substantial changes to its overall approach. Co-authored-by: wookie184 <[email protected]>
2022-11-27include Thread & PrivateChannel in get_or_fetch_channel return typesGravatar shtlrs-1/+3
2022-11-27Fetch active nominations from the API for !server commandGravatar Chris Lovering-3/+3
The nomination cache was recently removed, so accessing that no longer works.
2022-11-27Typehint bot.get_cog calls in information cogGravatar Chris Lovering-7/+15
2022-11-27Don't close already closed postsGravatar Chris Lovering-0/+6
2022-11-26Catch case where starter message is deleted before pinningGravatar Chris Lovering-2/+4
2022-11-26Update CODEOWNERSGravatar Chris Lovering-1/+0
2022-11-26Ensure constants.Channels.help_system_forum is a forum channel on loadGravatar Chris Lovering-1/+3
2022-11-26Listen for thread starter on_message rather than thread_createGravatar Chris Lovering-10/+19
thread_create events are triggered before the thread's starter message is available, so listening for starter messages with on_message instead ensures we have a message object to use.
2022-11-26Auto archive help forum posts after inactivityGravatar Chris Lovering-1/+78
I decided to keep the archive logic simple, and just go for 30 minutes since last message, rather than the hybrid of 30 mins + 10 depending on who sent the last message. The reason for using the hybrid approach previously was due to us running out of channels frequently Since this is no longer a problem, I decided to keep the logic simple.
2022-11-26Don't load the help channel cog if disabledGravatar Chris Lovering-0/+7
2022-11-26Consistantly refer to help posts as posts, not threadsGravatar Chris Lovering-47/+47
2022-11-26Get, and store, the help forum channel object on cog loadGravatar Chris Lovering-4/+9
2022-11-26Ignore Discord errors when clearing snekbox reactionsGravatar Chris Lovering-2/+3
These errors can be caused by the message being deleted, or the message being in an archived thread
2022-11-26Update botcore module nameGravatar Chris Lovering-59/+59
2022-11-26Bump all deps to latestGravatar Chris Lovering-403/+303
2022-11-26Bump bot-core versionGravatar Chris Lovering-232/+236