Add cyberpunk terminal UI theme to all Discord bot embeds#13
Add cyberpunk terminal UI theme to all Discord bot embeds#13
Conversation
Review sync completed. The PR has addressed 2 of 3 previously flagged issues. One critical issue remains.
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
PR Code Suggestions ✨No code suggestions found for the PR. |
Review completed. Found 3 issues that should be addressed:
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
Co-authored-by: Rajrooter <128113526+Rajrooter@users.noreply.github.com>
Co-authored-by: Rajrooter <128113526+Rajrooter@users.noreply.github.com>
| header = f"""```ansi | ||
| [2;36m╔═══════════════════════════════════════════════╗[0m | ||
| [2;36m║[0m [1;37m{title[:40]:^40}[0m [2;36m║[0m | ||
| """ | ||
| if subtitle: | ||
| header += f"[2;36m║[0m [2;33m{subtitle[:40]:^40}[0m [2;36m║[0m\n" | ||
| header += "[2;36m╚═══════════════════════════════════════════════╝[0m\n```" | ||
| return header |
There was a problem hiding this comment.
ANSI escape codes are missing the escape character prefix. Discord requires proper ANSI escape sequences like \u001b[2;36m or \x1b[2;36m, not [2;36m. Without the escape character, these codes will display as plain text instead of producing colored output, breaking the entire cyberpunk theme. This affects all cyberpunk theme functions (make_cyberpunk_header, make_status_indicator, make_progress_bar, and all embed functions that use them).
Fix it with Roo Code or mention @roomote and request a fix.
main.py
Outdated
| [1;33m╚═══════════════════════════════════════╝[0m | ||
| ```""" | ||
|
|
||
| cooldown_bar = make_progress_bar(int((wait_s / 10) * 100), 25) |
There was a problem hiding this comment.
Progress bar percentage can exceed 100% when wait_s > 10 seconds. The calculation int((wait_s / 10) * 100) assumes a maximum wait time of 10 seconds. If wait_s exceeds this (which can happen with rate limiting), the percentage will exceed 100%, causing the progress bar width calculation in make_progress_bar() to overflow (filled would exceed width), breaking the visual display.
| cooldown_bar = make_progress_bar(int((wait_s / 10) * 100), 25) | |
| cooldown_bar = make_progress_bar(min(int((wait_s / 10) * 100), 100), 25) |
Fix it with Roo Code or mention @roomote and request a fix.
Co-authored-by: Rajrooter <128113526+Rajrooter@users.noreply.github.com>
main.py
Outdated
| [1;36m│[0m | ||
| [1;36m│[0m {status} [1;37m{verdict_text}[0m | ||
| [1;36m│[0m | ||
| [1;36m│[0m [2;37mReason:[0m [1;37m{reason[:50]}[0m |
There was a problem hiding this comment.
Inconsistent truncation handling: the reason is truncated to 50 characters without an ellipsis indicator, while the URL at line 179 properly includes '...' when truncated. Users may be confused when the reason appears cut off without indication that there's more content.
| [1;36m│[0m [2;37mReason:[0m [1;37m{reason[:50]}[0m | |
| [1;36m│[0m [2;37mReason:[0m [1;37m{reason[:50]}{'...' if len(reason) > 50 else ''}[0m |
Fix it with Roo Code or mention @roomote and request a fix.
Transform bot responses with consistent cyberpunk + terminal aesthetics using ANSI color codes and ASCII art while maintaining existing function signatures.
Changes
New Theme Helpers (after line 106)
make_cyberpunk_header()- ASCII box headers with optional subtitlemake_status_indicator()- Color-coded badges:[SAFE][ERROR][CAUTION]etc.make_progress_bar()- Visual bars:████████░░░░░░░░ 35%Enhanced Embed Functions (lines 147-256)
All embed functions redesigned with:
╔═╗║╚╝┌─┐│└┘)...or[Content truncated for display]) on all text limitsverdict_embed(): Status badges + structured verdict box + color based on safety level
multi_link_embed(): Cyberpunk header + tree-style instructions
error_embed(): Red alert theme +
[ERROR]badge + action promptsratelimit_embed(): Cooldown header + visual progress bar (capped at 100%)
summarize_progress_embed(): File info box + step indicators + progress bar
summarize_result_embed(): Completion header + file display + truncation notice
Example
Color Palette:
#00FF9C(safe/success),#FF0055(error/unsafe),#FF6600(warning/caution),#FFFF00(attention),#FF00FF(processing),#00D9FF(info)Original prompt
Add Complete Cyberpunk + Terminal UI Theme to Discord Bot
Overview
Transform all bot responses, embeds, and command outputs with a consistent cyberpunk + terminal aesthetic while maintaining 100% of existing functionality.
Changes Required in
main.py1. Add New Theme Helper Functions (After line 95, after existing embed helpers)
Add these new helper functions for cyberpunk styling:
2. Replace Existing Embed Functions (Lines 96-164)
Replace the current simple embed functions with enhanced cyberpunk versions:
Replace
verdict_embedfunction:Replace
multi_link_embedfunction:💡 Tip: Choose only what you need for better organization."""
🔧 Action Required: Check your input and try again."""