Skip to content

Commit

Permalink
Minor Check-Up
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentDemonSD authored Nov 21, 2022
1 parent 972d9fb commit 4a96069
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import re
from PIL import Image
from os import environ, remove, path as ospath, mkdir
from logging import getLogger, FileHandler, StreamHandler, INFO, basicConfig, error as log_error, info as log_info, warning as log_warning
from socket import setdefaulttimeout
from urllib.request import urlretrieve
from faulthandler import enable as faulthandler_enable
from telegram.ext import Updater as tgUpdater
from qbittorrentapi import Client as qbClient
from aria2p import API as ariaAPI, Client as ariaClient
from os import remove as osremove, path as ospath, environ
from os import remove as osremove, path as ospath, environ, mkdir
from requests import get as rget
from json import loads as jsonloads
from subprocess import Popen, run as srun, check_output
Expand Down Expand Up @@ -156,7 +154,7 @@ def get_client():
photo_dir = path + TGH_THUMB.split('/')[-1]
urlretrieve(TGH_THUMB, photo_dir)
Image.open(photo_dir).convert("RGB").save('Thumbnails/weeb.jpg', "JPEG")
remove(photo_dir)
osremove(photo_dir)

try:
aid = getConfig('AUTHORIZED_CHATS')
Expand Down

0 comments on commit 4a96069

Please sign in to comment.