Skip to content

Commit

Permalink
fix: FontDir object has no attr read
Browse files Browse the repository at this point in the history
  • Loading branch information
KnownBlackHat committed Jul 10, 2024
1 parent 413bfd7 commit 50dae01
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ Servers.inf
lavalink_server/logs
ip.txt
*.db
/logs
2 changes: 2 additions & 0 deletions mr_robot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ def setup_logging() -> None:
logging.getLogger("httpcore").setLevel(logging.WARNING)
logging.getLogger("disnake").setLevel(logging.INFO)
logging.getLogger("sqlalchemy").setLevel(logging.WARNING)
logging.getLogger("sqlite3").setLevel(logging.WARNING)
logging.getLogger("core").setLevel(logging.WARNING)
logging.getLogger("streamlink").disabled = True


Expand Down
4 changes: 2 additions & 2 deletions mr_robot/exts/greeting.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def send_img(
outline=theme,
width=outline,
)
font = ImageFont.truetype(font_style, 40)
font = ImageFont.truetype(font_style.value, 40)
txt = "Welcome" if welcome else "Goodbye"
draw.text(
(width / 2 + 10, height // 2 + 100 - 50),
Expand All @@ -126,7 +126,7 @@ def send_img(
anchor="mm",
)
if message:
font = ImageFont.truetype(font_style, 22)
font = ImageFont.truetype(font_style.value, 22)
draw.text(
(width / 2 + 10, height // 2 + 140),
message,
Expand Down

0 comments on commit 50dae01

Please sign in to comment.