Change other.py to rich print

This commit is contained in:
Nexus 2023-11-10 23:15:06 +00:00
parent e31ad17d7e
commit 1ef6d8202c
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -3,7 +3,6 @@ import functools
import glob import glob
import io import io
import json import json
import logging
import typing import typing
import math import math
@ -31,10 +30,11 @@ import httpx
import psutil import psutil
import pytesseract import pytesseract
import pyttsx3 import pyttsx3
from discord.ext import commands, pages from discord.ext import commands
from dns import asyncresolver from dns import asyncresolver
from PIL import Image from PIL import Image
from rich.tree import Tree from rich.tree import Tree
from rich import print
from selenium import webdriver from selenium import webdriver
from selenium.common.exceptions import WebDriverException from selenium.common.exceptions import WebDriverException
from selenium.webdriver.chrome.options import Options as ChromeOptions from selenium.webdriver.chrome.options import Options as ChromeOptions
@ -62,7 +62,7 @@ try:
VOICES = [x.id for x in _engine.getProperty("voices")] VOICES = [x.id for x in _engine.getProperty("voices")]
del _engine del _engine
except Exception as _pyttsx3_err: except Exception as _pyttsx3_err:
print("Failed to load pyttsx3:", _pyttsx3_err, file=sys.stderr) print("Failed to load pyttsx3: %s" % _pyttsx3_err, file=sys.stderr)
pyttsx3 = None pyttsx3 = None
VOICES = [] VOICES = []