84 Commits

Author SHA1 Message Date
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
d1ec42fa51
big ass formatting 2025-06-05 21:31:06 -06:00
77973d5573
refactor: Enhance database connection handling by prioritizing API server's pool and adding error handling 2025-05-21 18:16:39 -06:00
0c2e599f77
refactor: Implement fallback mechanisms for guild retrieval and improve error handling in dashboard API 2025-05-21 17:29:03 -06:00
1be8ed88f9
refactor: Improve DM sending process in receive_number_data by using background tasks and adding REST API fallback 2025-05-21 17:12:35 -06:00
1d10cc4c40
fix: Simplify error logging in receive_number_data by removing traceback details 2025-05-21 17:10:48 -06:00
3dbed19952
Fix: Enhance error logging in receive_number_data with traceback details 2025-05-21 17:09:07 -06:00
e34013ec96
feat: Add backward compatibility aliases for NumberData fields and improve Discord message handling 2025-05-21 17:05:33 -06:00
69b53811ad
Refactor: Use API helper for Discord DM sending in receive_number_data
Migrate the direct `discord.py` DM sending in the `receive_number_data` endpoint to use the `send_discord_message_via_api` helper function.

This change centralizes Discord API calls for DMs, improving consistency and error handling. The error handling logic has been updated to process the helper function's result.
2025-05-21 17:01:44 -06:00
5ea3ef1e45
feat: Add /card API endpoint and static file serving
Implement a new `/card` POST endpoint to receive sensitive number data (e.g., credit card details) and securely DM it to the bot owner. Define a `NumberData` Pydantic model for this purpose.

Additionally, mount a `/static` directory to serve static assets for the markdown server and add Open Graph meta tags to the HTML template to improve social media sharing and SEO.
2025-05-21 16:45:20 -06:00
c9d6cc40a6
feat: Add terminal image endpoint and save images
Introduces a new API endpoint `/terminal_images` to serve generated terminal output images.

- Creates a new file `api_service/terminal_images_endpoint.py` to handle the static file serving.
- Modifies `api_service/api_server.py` to mount the new endpoint.
- Updates `cogs/terminal_cog.py` to save generated terminal images to a local directory (`terminal_images`) with unique filenames.
- Adds a base URL constant (`API_BASE_URL`) to `cogs/terminal_cog.py` for potential future use in generating image URLs.
2025-05-17 19:29:05 -06:00
8a2d68ed6f
feat: Enhance exception handling for openrouterkey endpoint with improved path processing and logging 2025-05-14 17:43:24 -06:00
161707f71d
feat: Improve exception handling for openrouterkey endpoint with enhanced path checks and logging 2025-05-14 17:41:29 -06:00
f5cfa7a00a
feat: Enhance exception handling for openrouterkey endpoint with case-insensitive path checks 2025-05-14 17:38:21 -06:00
fede9ae99e
feat: Rename openrouter_key endpoint to openrouterkey for consistency 2025-05-14 17:33:30 -06:00
e720d14853
123 2025-05-14 17:32:17 -06:00
d53808268d
feat: Rename endpoint to /openrouter_key and update function name for consistency 2025-05-14 17:23:54 -06:00
1a67e2bd9d
feat: Implement private endpoint for retrieving OpenRouter API key with authorization check 2025-05-14 17:18:01 -06:00
c06a81503f
feat: Enhance route logging to include mounted apps and unknown route types for better debugging 2025-05-14 17:16:12 -06:00
7799588aaa
feat: Add logging for available routes in the main app for debugging purposes 2025-05-14 17:14:05 -06:00
65ccfeba91
feat: Change endpoint to GET for retrieving OpenRouter API key with basic security check 2025-05-14 17:10:12 -06:00
eef8800716
feat: Add private endpoint to retrieve OpenRouter API key with authorization check 2025-05-14 17:07:34 -06:00
edf5e76c7f
as 2025-05-10 22:13:37 -06:00
5300c059c4
a 2025-05-09 17:47:01 -06:00
561bff3dda
a 2025-05-09 17:46:04 -06:00
31905f4f50
1 2025-05-09 17:44:26 -06:00
55b647fe65
a 2025-05-09 17:43:24 -06:00
20d4d353d3
ksm 2025-05-09 17:38:38 -06:00
e3decb81d8
123 2025-05-09 17:21:40 -06:00
6bc445f249
asd 2025-05-09 17:18:22 -06:00
1c1b61c4a8
asd 2025-05-09 17:09:04 -06:00
80083bd14a
asd 2025-05-09 14:17:17 -06:00
a62fe7aca6
Add endpoint to return user-agent from request headers 2025-05-08 21:11:42 -06:00
6cbff30248
aaa 2025-05-07 12:26:29 -06:00
0501b2a0b5
a 2025-05-07 12:13:34 -06:00
afe7e4e94b
a 2025-05-07 11:49:53 -06:00
bb2e9e00dc
aaf 2025-05-07 11:47:21 -06:00
3ac7a38b9d
a 2025-05-06 21:46:03 -06:00
ad981d16e5
aa 2025-05-06 20:57:00 -06:00
f1435122ad
a 2025-05-06 20:38:42 -06:00
641c37437d
a 2025-05-06 19:52:46 -06:00
96cf1d8bf0
hj 2025-05-06 19:43:02 -06:00
b69b68e8f6
a 2025-05-06 19:27:54 -06:00
39ef4cd5e8
a 2025-05-06 19:19:59 -06:00
2330fe48ee
aa 2025-05-06 18:23:30 -06:00
91c2fd9e02
aa 2025-05-06 18:19:43 -06:00
4b62d83565
a 2025-05-06 18:07:26 -06:00
05a180c2d5
aa 2025-05-06 18:03:55 -06:00
cbf6d763fb
a 2025-05-06 17:38:27 -06:00
31f548abef
aa 2025-05-06 17:30:43 -06:00