aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| * | Merge pull request #2347 from shtlrs/improve-get-or-fetch-channel-type-hintsGravatar ChrisJL2022-11-27-1/+3
| |\ \ | | | | | | | | include Thread & PrivateChannel in get_or_fetch_channel return types
| | * \ Merge branch 'main' into improve-get-or-fetch-channel-type-hintsGravatar ChrisJL2022-11-27-11/+8
| | |\ \ | | |/ / | |/| |
| * | | Update return.md (#2325)Gravatar Steele Farnsworth2022-11-27-11/+8
| | | | | | | | | | | | | | | | | | | | Made the tag more brief without any substantial changes to its overall approach. Co-authored-by: wookie184 <[email protected]>
| | * | include Thread & PrivateChannel in get_or_fetch_channel return typesGravatar shtlrs2022-11-27-1/+3
| |/ /
| | * Fetch active nominations from the API for !server commandGravatar Chris Lovering2022-11-27-3/+3
| | | | | | | | | | | | The nomination cache was recently removed, so accessing that no longer works.
| | * Typehint bot.get_cog calls in information cogGravatar Chris Lovering2022-11-27-7/+15
| |/
| * Merge pull request #2342 from python-discord/don't-close-already-closed-postsGravatar ChrisJL2022-11-27-0/+6
| |\ | | | | | | Don't close already closed posts
| | * Don't close already closed postsGravatar Chris Lovering2022-11-27-0/+6
| |/
| * Merge pull request #2333 from erlend-aasland/patch-1Gravatar wookie1842022-11-27-1/+1
| |\ | | | | | | Link directly to the sqlite3 placeholder howto
| | * Merge branch 'main' into patch-1Gravatar wookie1842022-11-27-1970/+1034
| | |\ | | |/ | |/|
| * | Merge pull request #2339 from python-discord/auto-archive-help-postsGravatar Boris Muratov2022-11-26-64/+165
| |\ \ | | | | | | | | Help forum improvements
| | * | Catch case where starter message is deleted before pinningGravatar Chris Lovering2022-11-26-2/+4
| | | |
| | * | Update CODEOWNERSGravatar Chris Lovering2022-11-26-1/+0
| | | |
| | * | Ensure constants.Channels.help_system_forum is a forum channel on loadGravatar Chris Lovering2022-11-26-1/+3
| | | |
| | * | Listen for thread starter on_message rather than thread_createGravatar Chris Lovering2022-11-26-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.
| | * | Auto archive help forum posts after inactivityGravatar Chris Lovering2022-11-26-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.
| | * | Don't load the help channel cog if disabledGravatar Chris Lovering2022-11-26-0/+7
| | | |
| | * | Consistantly refer to help posts as posts, not threadsGravatar Chris Lovering2022-11-26-47/+47
| | | |
| | * | Get, and store, the help forum channel object on cog loadGravatar Chris Lovering2022-11-26-4/+9
| |/ /
| * | Merge pull request #2338 from python-discord/bump-bot-coreGravatar ChrisJL2022-11-26-690/+595
| |\ \ | | | | | | | | Bump bot core version
| | * | Ignore Discord errors when clearing snekbox reactionsGravatar Chris Lovering2022-11-26-2/+3
| | | | | | | | | | | | | | | | These errors can be caused by the message being deleted, or the message being in an archived thread
| | * | Update botcore module nameGravatar Chris Lovering2022-11-26-59/+59
| | | |
| | * | Bump all deps to latestGravatar Chris Lovering2022-11-26-403/+303
| | | |
| | * | Bump bot-core versionGravatar Chris Lovering2022-11-26-232/+236
| |/ /
| * | Merge pull request #2337 from python-discord/help-forum-fixesGravatar ChrisJL2022-11-26-64/+76
| |\ \ | | | | | | | | Misc Fixes For Help Forum
| | * | Refactor Thread Error CatchingGravatar Hassan Abouelela2022-11-26-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Boris Muratov <[email protected]> Co-authored-by: Amrou Bellalouna <[email protected]> Signed-off-by: Hassan Abouelela <[email protected]>
| | * | Handle Images As Starter MessagesGravatar Hassan Abouelela2022-11-26-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the case of an image or other media as the starter message, the formatted message in the help DM will be empty, which is invalid for the embed. We populate the field with some more useful text in this case. Signed-off-by: Hassan Abouelela <[email protected]>
| | * | Check If Thread Is Closed In PaginationGravatar Hassan Abouelela2022-11-26-55/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Similar to 555ed4e9, the pagination utility needs to catch when it's trying to act on an archived thread. Signed-off-by: Hassan Abouelela <[email protected]>
| | * | Check If Thread Is Closed In wait_for_deletionGravatar Hassan Abouelela2022-11-26-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The wait_for_deletion utility would try to remove reactions from a message after the timeout expires, which would normally be fine. In threads however, they can be closed while waiting for the timeout to expire. In such a case, the bot will try to remove the reactions after the channel has been closed and fail. A special exception was added for this case to do nothing, since this is only a QoL feature. Signed-off-by: Hassan Abouelela <[email protected]>
| | * | Catch Failure In Pining Help Starter MessageGravatar Hassan Abouelela2022-11-26-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old method for detecting deleted opener messages does not seem to work, probably because the message is fetched from a cache or similar. Instead we simply try/except pinning the message and pass if the pinning failed. Signed-off-by: Hassan Abouelela <[email protected]>
| | * | Don't Remove Cooldown Role From Non-Existing UsersGravatar Hassan Abouelela2022-11-26-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We try to remove the cooldown role from users before checking if the user is still in the server, which can cause an error since the thread object will just contain `None` as the user. Signed-off-by: Hassan Abouelela <[email protected]>
| | * | Handle Discord API Not Being ReadyGravatar Hassan Abouelela2022-11-26-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When discord sends us the thread create event in help channels, it is not ready to perform other operations on the thread such as getting or pinning messages. This causes it to error out when we try to do these actions and claim that those channels don't exist. Instead, we sleep for a short time to try and wait for it to be ready. Signed-off-by: Hassan Abouelela <[email protected]>
| | * | Simplify Help Thread Warning LogGravatar Hassan Abouelela2022-11-26-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | The current warning log includes the thread name, which means the log message varies wildly between threads. This causes issues with sentry since the actual error message gets trimmed, and sentry fails to group issues from this log as they appear as different messages. Signed-off-by: Hassan Abouelela <[email protected]>
| * | Merge pull request #2335 from python-discord/help-system-timeoutGravatar Boris Muratov2022-11-26-1/+2
| |\ \ | | | | | | | | Send DM message to help post opener sooner in the process
| | * | Send DM message to help post opener sooner in the processGravatar Chris Lovering2022-11-25-1/+2
| |/ / | | | | | | | | | | | | | | | This is to give Discord time to make the thread actually avaiulable to be posted in for the send_opened_post_message call Closes #2334 Closes BOT-3AW
| * | Merge pull request #2318 from python-discord/help-channel-rewriteGravatar ChrisJL2022-11-25-1256/+301
| |\ \ | | | | | | | | Update help channel system to use forum channels
| | * | Pin the user's starter message on help post creationGravatar Chris Lovering2022-11-25-0/+4
| | | |
| | * | Add hf as an alias for the help-forum command groupGravatar Chris Lovering2022-11-25-1/+1
| | | |
| | * | Add a filter for help chanel post namesGravatar Chris Lovering2022-11-25-2/+25
| | | | | | | | | | | | | | | | It is expected that this code will be delete whent he new fitler cog is added, and we start filtering on thread names genericly.
| | * | Use a redis cache to determine if a help session was answeredGravatar Chris Lovering2022-11-25-4/+8
| | | |
| | * | Remove modlog ignore for help chanelsGravatar Chris Lovering2022-11-25-7/+1
| | | | | | | | | | | | | | | | This was due to the hlep channels causing many events top be pushed to modlog due to how the old system worked. Now that we use a forum chanel, this is no longer the case.
| | * | Use helper util to determine if snekbox is being invoked in a help postGravatar Chris Lovering2022-11-25-2/+3
| | | |
| | * | Use help channel util from help channels cogGravatar Chris Lovering2022-11-25-11/+2
| | | | | | | | | | | | | | | | This removes the need for the old helper entirely
| | * | Update help channel system to use forum channelsGravatar Chris Lovering2022-11-25-1162/+263
| | | | | | | | | | | | | | | | This leverages Discord's new forum chanel feature, which removes the need for a lot of our custom logic, simplifying the help channel cog significantly.
| | * | Remove unused cachesGravatar Chris Lovering2022-11-25-21/+0
| | | |
| | * | Update constants for new forum channel help systemGravatar Chris Lovering2022-11-25-56/+4
| |/ /
| | * Link directly to the sqlite3 placeholder howtoGravatar Erlend E. Aasland2022-11-25-1/+1
| |/
| * Edited several tags (#2322)Gravatar Keyacom2022-11-17-19/+34
| | | | | | * Edited several tags
* | Update unit tests for snekboxGravatar ionite342022-11-30-54/+57
| |
* | Refactors for EvalResult and EvalJob dataclassesGravatar ionite342022-11-30-175/+185
| |