Skip to content

Commit

Permalink
hmm
Browse files Browse the repository at this point in the history
  • Loading branch information
prono69 committed Oct 2, 2024
1 parent 9ee0ec3 commit e781bdd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
3 changes: 2 additions & 1 deletion userbot/plugins/nekos.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,11 @@ async def neko(event):
nohorny = await event.client.send_file(
event.chat_id, file=target, caption=f"**{choose}**", reply_to=reply_to
)
await unsavegif(event, nohorny)

except Exception as e:
await edit_delete(event, f"`{e}`")
await unsavegif(event, nohorny)
# await unsavegif(event, nohorny)


@catub.cat_cmd(
Expand Down
2 changes: 1 addition & 1 deletion userbot/plugins/speedtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async def _(event):
event, "`Calculating my internet speed. Please wait!`"
)
start = time()
s = speedtest.Speedtest()
s = speedtest.Speedtest(secure=True)
s.get_best_server()
s.download()
s.upload()
Expand Down
11 changes: 5 additions & 6 deletions userbot/plugins/spotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import requests
import ujson
from PIL import Image, ImageEnhance, ImageFilter
from telegraph import upload_file
from telethon import Button, events
from telethon.errors import AboutTooLongError, FloodWaitError
from telethon.errors.rpcerrorlist import YouBlockedUserError
Expand All @@ -46,10 +45,10 @@
)
from ..helpers.utils import reply_id
from ..sql_helper import global_collectionjson as glob_db
from . import BOTLOG, BOTLOG_CHATID, LyricsGen, catub
from . import BOTLOG, BOTLOG_CHATID, LyricsGen, catub, gvarstatus, upload_to_catbox

SPOTIFY_CLIENT_ID = Config.SPOTIFY_CLIENT_ID
SPOTIFY_CLIENT_SECRET = Config.SPOTIFY_CLIENT_SECRET
SPOTIFY_CLIENT_ID = gvarstatus("SPOTIFY_CLIENT_ID") or Config.SPOTIFY_CLIENT_ID
SPOTIFY_CLIENT_SECRET = gvarstatus("SPOTIFY_CLIENT_SECRET") or Config.SPOTIFY_CLIENT_SECRET


LOGS = logging.getLogger(__name__)
Expand Down Expand Up @@ -665,10 +664,10 @@ async def get_spotify(response):
dic["duration"],
)
lyrics, symbol = await telegraph_lyrics(tittle, dic["interpret"])
url = upload_file(thumb)
url = upload_to_catbox(thumb)
if os.path.exists(thumb):
os.remove(thumb)
return f"https://graph.org{url[0]}", tittle, dic, lyrics, symbol
return f"{url}", tittle, dic, lyrics, symbol


async def spotify_inline_article():
Expand Down

0 comments on commit e781bdd

Please sign in to comment.