Reaction roles working. Management of message and reactions is messy and needs reinforcement.

This commit is contained in:
DefsNotQuack
2025-03-29 15:59:18 +10:00
parent c9f6a4c55d
commit e00d1fdce3
6 changed files with 331 additions and 8 deletions

17
util/console.py Normal file
View File

@@ -0,0 +1,17 @@
from rich.console import Console
from rich.progress import track
from rich.panel import Panel
console = Console()
def panel(title: str = '', content: str = '', style: str = "cyan") -> Panel:
"""
Create a panel with the given title and content.
"""
return Panel.fit(content, title=title, style=style)
def track_iterable(iterable, description: str):
"""
Create a progress bar for the given iterable.
"""
return track(iterable, description=description)