1276 Commits

Author SHA1 Message Date
Slipstreamm
28db076de0 refactor(goodbye): Remove unnecessary blank line in GoodbyeMessageView 2025-06-14 14:29:53 -06:00
Slipstreamm
833f898b82 refactor(welcome): Streamline WelcomeMessageView and GoodbyeMessageView
Consolidate multiple `ui.TextDisplay` items into single text blocks for `WelcomeMessageView` and `GoodbyeMessageView`. This improves readability and simplifies the UI structure.
2025-06-14 14:28:02 -06:00
Slipstreamm
a2eb6f33f1 refactor(welcome): Consolidate info displays in welcome/goodbye messages
Group related member information and server statistics into single
TextDisplay components. This streamlines the UI layout, reduces the
number of elements, and potentially improves rendering efficiency.
2025-06-14 14:14:19 -06:00
Slipstreamm
aa43302903 fix(welcome): Log specific ValueError message
Include the specific error details from ValueError when logging issues in the
welcome message process, making debugging easier.
2025-06-14 14:06:45 -06:00
Slipstreamm
a7cb48e10b refactor(welcome): Consolidate welcome and goodbye message sections for improved layout 2025-06-14 14:03:23 -06:00
Slipstreamm
6066898daf feat(welcome): Enhance welcome and goodbye messages
Welcome and goodbye messages now use a more detailed LayoutView with sections for member info, server statistics, and dynamic styling.
- Welcome messages display total server members and the new member's account age.
- Goodbye messages show current member count, the leaving member's join date and time in server, with dynamic colors and titles for leave, kick, and ban events.
- All command feedback for welcome/goodbye configuration, testing, and error handling has been updated to use rich Discord Embeds for improved user experience.
2025-06-14 13:58:24 -06:00
Slipstreamm
4778237089 refactor(welcome): Remove disable_goodbye error handler
Removes the dedicated error handler for the `disable_goodbye` command.
This allows for more centralized or general error handling to take over.
Adds a log message when the WelcomeCog is successfully loaded.
2025-06-14 13:40:54 -06:00
Slipstreamm
8ac8ddb4b3 refactor(welcome): Adjust shared command error handlers 2025-06-14 13:37:23 -06:00
Slipstreamm
db5c171c11 refactor(welcome-cog): Use cog-wide error handler
Migrates individual command error handlers to the cog-wide `cog_command_error` method. This simplifies error handling by automatically catching errors from all commands within the cog.
Adds `ephemeral=True` to error messages sent to the user and logs the `original_error` for better debugging.
2025-06-14 13:35:30 -06:00
Slipstreamm
4c17db72a8 feat(welcome): Enhance welcome and goodbye messages
Integrate `discord.ui.LayoutView` to provide richer, more structured welcome and goodbye messages with user avatars and accent colors.

The `on_member_remove` event now utilizes audit logs to determine if a member was kicked or banned, providing more context in goodbye messages.

Add `testmessage` command group with `welcome` and `goodbye` subcommands to allow administrators to easily test message configurations.

Replace development-time `print` statements with standard `logging` for cleaner output and better debugging.
2025-06-14 13:31:35 -06:00
Slipstreamm
7142c0f370 style(system-check): Remove separator from bot system info 2025-06-14 13:22:02 -06:00
Slipstreamm
9a016da0ee style(system-check-cog): Remove header section from status view 2025-06-14 13:19:58 -06:00
Slipstreamm
74be8ecb45 refactor(system-check): Improve system status view layout
Refactor the system status view to enhance readability and organization.

- Introduce `_create_aligned_block` helper for consistent, aligned text formatting.
- Consolidate bot, system, and hardware information into new aligned blocks.
- Remove redundant separators and improve overall view structure.
- Adjust progress bar length for better fit.
- Optimize user count gathering using a set for unique users.
- Improve Windows version detection and Linux motherboard info fallback.
2025-06-14 13:18:02 -06:00
Slipstreamm
96fdf225a8 feat(system-check): Revamp status command UI with components v2
Overhauls the output of the `/systemcheck` and `!systemcheck` commands using
Discord UI Components V2 for a more modern and readable display.

- Implemented `ui.LayoutView` for structured information presentation.
- Added progress bars for CPU and RAM utilization for quick visual assessment.
- Standardized display of OS, hardware, and bot statistics.
- Separated data collection from UI rendering logic.
- Added `status` alias for the prefix command.
- Improved error handling for system information retrieval to display 'N/A' on failure.
2025-06-14 13:15:28 -06:00
Slipstreamm
d7d0c50fef refactor(oauth): Convert authentication commands to hybrid group
Migrate `auth`, `deauth`, and `authstatus` commands to subcommands of a new `auth` hybrid command group. This results in commands like `auth login`, `auth logout`, and `auth status`.

This change:
- Improves command organization and discoverability.
- Leverages Discord's built-in help system for command groups, making the custom `authhelp` command redundant.
- Prepares for seamless integration with slash commands by using `commands.hybrid_group`.
2025-06-14 12:43:05 -06:00
Slipstreamm
d64da1aa9a refactor(oauth): Refine authentication success messages
Update various success messages and help text related to OAuth. Instead
of broadly stating the bot gains general API access, the language now
specifies that it gains access to "scopes" or "additional OAuth scopes"
as allowed during the authentication flow, providing a more precise
understanding of the permissions granted.
2025-06-14 12:37:55 -06:00
Slipstreamm
15f8c91baf Merge branch 'master' of git.slipstreamm.dev:slipstream/discordbot 2025-06-14 05:00:13 -06:00
Slipstreamm
c40bb8ccab feat(system-check): Display system status using UI views
Refactors the system check command to utilize `discord.ui.LayoutView` instead of traditional embeds for presenting system and bot information. This provides a more structured and visually distinct layout for the status output.
2025-06-14 04:57:20 -06:00
b9fb671bed Require OAuth Nitro verification for giveaways (#14)
Adds OAuth-based Nitro status checks to giveaways and allows excluding Nitro users.

Reviewed-on: #14
Co-authored-by: Slipstream <me@slipstreamm.dev>
Co-committed-by: Slipstream <me@slipstreamm.dev>
2025-06-13 22:09:55 -06:00
Slipstreamm
28d0c11e48 refactor(image-description): Increase max output tokens to 1024
Previously, the maximum output tokens for image descriptions was set to 256.
This was often too restrictive, leading to truncated or incomplete descriptions.
Increasing the limit to 1024 allows for more comprehensive and detailed image
descriptions while still encouraging conciseness.
2025-06-12 19:27:59 -06:00
Slipstreamm
1cbacd6f9e docs(prompt): Refine allowed emoji list
Removes several less common or redundant emojis to streamline the list.
Adds the text-based smiley `;)`, allowing for more natural expression.
2025-06-12 19:27:14 -06:00
12ad3e6c02 Update Gurt slang definitions (#13)
Add slang glossary and refusal guidance

Reviewed-on: #13
Co-authored-by: Slipstream <me@slipstreamm.dev>
Co-committed-by: Slipstream <me@slipstreamm.dev>
2025-06-12 18:49:48 -06:00
7cb1ec8589 Add mention-only mode toggle (#12)
Adds ability to restrict Gurt responses to direct mentions

Reviewed-on: #12
Co-authored-by: Slipstream <me@slipstreamm.dev>
Co-committed-by: Slipstream <me@slipstreamm.dev>
2025-06-12 11:15:10 -06:00
2b75955c4f
Merge work into master 2025-06-11 19:21:29 +00:00
4008f04350
Increase audit log polling interval to 60s 2025-06-11 19:21:21 +00:00
5cbece7420 Add Gitea support to git monitor (#9)
Adds polling and URL parsing support for gitea repositories.

Reviewed-on: #9
Co-authored-by: Slipstream <me@slipstreamm.dev>
Co-committed-by: Slipstream <me@slipstreamm.dev>
2025-06-11 13:07:04 -06:00
f142e0b8cf Fix emoji logging for partial objects (#8)
Reviewed-on: #8
Co-authored-by: Slipstream <me@slipstreamm.dev>
Co-committed-by: Slipstream <me@slipstreamm.dev>
2025-06-11 12:47:17 -06:00
216ade503b Merge pull request 'Disable Gurt AI in DMs' (#7) from pr/gurt-dm-check into master
Reviewed-on: #7
2025-06-09 11:31:59 -06:00
1a5f99ad3c
Add DM AI disable check for Gurt 2025-06-09 17:27:12 +00:00
bd61f6d354 Merge pull request 'Add gurtleaveothers command' (#5) from pr/gurtleaveothers into master
Reviewed-on: #5
2025-06-09 11:00:33 -06:00
77bdac8827
Add gurtleaveothers command 2025-06-09 16:57:29 +00:00
0fb92097d4 update aimod 2025-06-08 20:31:51 -06:00
84b6812073 revert test commit 2025-06-08 20:15:47 -06:00
314b092512 test commit 2025-06-08 20:14:48 -06:00
be3a8998e6 Merge pull request 'Fix logging spam for moved channels and roles' (#4) from pr/log-spam-fix into master
Reviewed-on: #4
2025-06-08 20:12:47 -06:00
6f95274d3c
Fix logging spam for moved channels and roles 2025-06-09 01:58:13 +00:00
176d04565b
Merge branch 'master' of https://git.slipstreamm.dev/slipstream/discordbot 2025-06-08 17:49:01 -06:00
6a24d96253
Applying previous commit. 2025-06-08 21:44:43 +00:00
ac67b3fb37 Merge pull request 'Allow custom moderation instructions' (#2) from pr/custom-instructions into master
Reviewed-on: #2
2025-06-08 12:24:24 -06:00
f2d8428d27
Allow per-server moderation instructions 2025-06-08 17:54:53 +00:00
30bf6c28e1 Update AGENTS.md 2025-06-07 22:49:56 -06:00
b3ceb47ae5 Merge pull request 'Remove moderation POST' (#1) from pr/remove-api-post into master
Reviewed-on: #1
2025-06-07 22:41:35 -06:00
a1f508fbfa
Remove API moderation POST 2025-06-08 04:39:14 +00:00
2001cd3dbb
Add note about required argument for 'tea' CLI in AGENTS.md 2025-06-07 21:16:29 -06:00
f866f6c47c
Update SIGHUP handler log message to include repository URL 2025-06-07 20:39:21 -06:00
636d98366d
Update SIGHUP handler log message to specify 'Gitea instance' 2025-06-07 20:36:29 -06:00
a02260f265
Fix log message to capitalize 'Gitea' in SIGHUP handler 2025-06-07 20:02:54 -06:00
2478fb2f94
Fix log message to reference 'gitea' instead of '/home/git/git' in SIGHUP handler 2025-06-07 20:01:00 -06:00
2668e6eba7
d 2025-06-07 19:55:30 -06:00
20d20b77d3
d 2025-06-07 19:54:26 -06:00