Reaction roles working. Management of message and reactions is messy and needs reinforcement.
This commit is contained in:
17
util/console.py
Normal file
17
util/console.py
Normal 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)
|
||||
Reference in New Issue
Block a user