From 1021b307905306b730fc68ef080873ab9cef8c57 Mon Sep 17 00:00:00 2001 From: timotheyca Date: Mon, 20 Jun 2022 00:14:11 +0300 Subject: [PATCH] minor changes --- v6d3music/html/main.js | 4 ++-- v6d3music/run-bot.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/v6d3music/html/main.js b/v6d3music/html/main.js index 6e1c013..21da822 100644 --- a/v6d3music/html/main.js +++ b/v6d3music/html/main.js @@ -53,8 +53,8 @@ const userAvatarImg = async () => { if (avatar) { const img = document.createElement('img'); img.src = avatar; - img.width = 128; - img.height = 128; + img.width = 64; + img.height = 64; img.alt = await userUsername(); return img; } else { diff --git a/v6d3music/run-bot.py b/v6d3music/run-bot.py index 9680f23..431a90d 100644 --- a/v6d3music/run-bot.py +++ b/v6d3music/run-bot.py @@ -25,7 +25,6 @@ from v6d3music.yt_audios import yt_audios loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) -token = loop.run_until_complete(request_token('music', 'token')) client = discord.Client( intents=discord.Intents( members=True, @@ -371,7 +370,7 @@ async def setup_tasks(): async def main(): async with volume_db, queue_db, cache_db, session_db: - await client.login(token) + await client.login(await request_token('music', 'token')) loop.create_task(setup_tasks()) if os.getenv('v6monitor'): loop.create_task(monitor())