MCPcopy
hub / github.com/FujiwaraChoki/MoneyPrinterV2 / error

Function error

src/status.py:3–15  ·  view source on GitHub ↗

Prints an error message. Args: message (str): The error message show_emoji (bool): Whether to show the emoji Returns: None

(message: str, show_emoji: bool = True)

Source from the content-addressed store, hash-verified

1from termcolor import colored
2
3def error(message: str, show_emoji: bool = True) -> None:
4 """
5 Prints an error message.
6
7 Args:
8 message (str): The error message
9 show_emoji (bool): Whether to show the emoji
10
11 Returns:
12 None
13 """
14 emoji = "❌" if show_emoji else ""
15 print(colored(f"{emoji} {message}", "red"))
16
17def success(message: str, show_emoji: bool = True) -> None:
18 """

Callers 12

mainFunction · 0.85
fetch_songsFunction · 0.85
choose_random_songFunction · 0.85
mainFunction · 0.85
main.pyFile · 0.85
startMethod · 0.85
generate_postMethod · 0.85
generate_topicMethod · 0.85
generate_scriptMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected