629 Commits

Author SHA1 Message Date
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
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
0fb92097d4 update aimod 2025-06-08 20:31:51 -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
f2d8428d27
Allow per-server moderation instructions 2025-06-08 17:54:53 +00:00
a1f508fbfa
Remove API moderation POST 2025-06-08 04:39:14 +00:00
76d3f24aaf
Check edits in AI moderation 2025-06-07 19:23:03 +00:00
26917eedf2
Resolve merge and update appeal tests 2025-06-07 17:54:03 +00:00
e0f5dd9dea
Improve appeal test scenarios 2025-06-07 17:50:42 +00:00
452eb6b8dc
Applying previous commit. 2025-06-07 17:48:17 +00:00
f0c00296a1
Enhance appeal context in logs and tests 2025-06-07 17:44:35 +00:00
2b36081b98
Enhance appeal system with context 2025-06-07 06:39:06 +00:00
0a8be35c47
Use followup send in appeal tests 2025-06-07 06:22:16 +00:00
1f26b80742
Fix appeal debug command response 2025-06-07 06:21:14 +00:00
2fb91ee1cd
Fix appeal test commands timing out 2025-06-07 06:14:55 +00:00
3b024e132b
Refactor genai client logic to avoid circular imports 2025-06-07 06:06:35 +00:00
f1d08908c3
Applying previous commit. 2025-06-07 06:04:39 +00:00
35bd409d54
Merge remote-tracking branch 'origin/master' 2025-06-07 04:03:22 +00:00
d7d7183a84
Add appeal AI test command 2025-06-07 04:02:23 +00:00
d845418443
Applying previous commit. 2025-06-07 04:01:03 +00:00
cf7b7b8109
Add AI appeal testcases command 2025-06-07 03:55:57 +00:00
1e774b377a
Add human review request command 2025-06-07 03:48:11 +00:00
c3ecf7e2c0
Applying previous commit. 2025-06-07 03:46:52 +00:00
22d22e4452
Merge branch 'master' of https://git.slipstreamm.dev/discordbot 2025-06-06 21:15:55 -06:00
8d6e1a7a80
Refactor thinking_config initialization by removing example comment 2025-06-06 21:15:51 -06:00
19eb0fb745
Merge remote-tracking branch 'origin/master' 2025-06-07 03:14:55 +00:00
3229a54270
Refine pedophilia ban logic 2025-06-07 03:14:21 +00:00
23d961eb2e
Merge branch 'master' of https://git.slipstreamm.dev/discordbot 2025-06-06 21:14:01 -06:00
0ef8ee8cc0
Updates Gemini Pro model version
Updates the Gemini 2.5 Pro model from `gemini-2.5-pro-preview-05-06` to `gemini-2.5-pro-preview-06-05` across configurations.
This ensures the use of the more recent preview version of the model.
2025-06-06 21:13:57 -06:00
7c2f2b2f84
Refine first-offense severity 2025-06-07 03:03:22 +00:00
801a3edb72
Applying previous commit. 2025-06-07 03:02:00 +00:00
8a8cc015dd
Clarify AI mod handling of porn 2025-06-07 01:56:28 +00:00
7dccc7ee4a
Add reset_rules command and default rules constant 2025-06-07 01:17:10 +00:00
d452e6620e
Update aimod prompt and pedophilia rule 2025-06-07 01:08:47 +00:00