mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Change other.py to rich print
This commit is contained in:
parent
e31ad17d7e
commit
1ef6d8202c
1 changed files with 3 additions and 3 deletions
|
@ -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 = []
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue