10 Commits

Author SHA1 Message Date
d1ec42fa51
big ass formatting 2025-06-05 21:31:06 -06:00
62bf7a36c9
feat: Add Cloudflare cache warming for terminal images
- Ensure the `terminal_images` directory exists and set permissions to 0o755.
- Implement a background task to warm the Cloudflare cache for newly generated terminal images by sending an HTTP GET request to the image URL.
- This helps ensure images are quickly available after being generated.
2025-05-17 19:41:50 -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
e7719406bf
fix: Improve non-blocking output reading in TerminalCog for active processes 2025-05-17 19:13:18 -06:00
07cd5d9acf
feat: Enhance command execution handling in TerminalCog with subprocess improvements 2025-05-17 19:09:42 -06:00
b598df1f82
feat: Store and display the last executed command in TerminalCog 2025-05-17 19:08:08 -06:00
8d13bb3963
feat: Implement 'clear' command in terminal
Add functionality to clear the terminal output history when the user enters 'clear' or 'cls'. This improves the usability of the terminal feature by allowing users to easily reset the display.
2025-05-17 19:02:26 -06:00
22a278f748
fix: Refactor owner ID usage in TerminalCog for consistency and clarity 2025-05-17 18:57:54 -06:00
a6b1f6a1b3
fix: Simplify owner check logic in TerminalCog to use hardcoded owner ID 2025-05-17 18:55:27 -06:00
a857e4103d
Add TerminalCog for owner-only terminal interface with command execution
- Implemented a terminal interface in Discord using a cog.
- Added command handling for shell commands with output displayed as images.
- Included scrolling functionality for terminal output.
- Integrated a modal for command input and buttons for user interaction.
- Ensured only the bot owner can access the terminal features.
- Added error handling for command execution and process management.
- Configured terminal appearance with customizable font and colors.
2025-05-17 18:51:39 -06:00