minor changes

This commit is contained in:
AF 2022-06-20 00:14:11 +03:00
parent b9bfea0257
commit 1021b30790
2 changed files with 3 additions and 4 deletions

View File

@ -53,8 +53,8 @@ const userAvatarImg = async () => {
if (avatar) { if (avatar) {
const img = document.createElement('img'); const img = document.createElement('img');
img.src = avatar; img.src = avatar;
img.width = 128; img.width = 64;
img.height = 128; img.height = 64;
img.alt = await userUsername(); img.alt = await userUsername();
return img; return img;
} else { } else {

View File

@ -25,7 +25,6 @@ from v6d3music.yt_audios import yt_audios
loop = asyncio.new_event_loop() loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop) asyncio.set_event_loop(loop)
token = loop.run_until_complete(request_token('music', 'token'))
client = discord.Client( client = discord.Client(
intents=discord.Intents( intents=discord.Intents(
members=True, members=True,
@ -371,7 +370,7 @@ async def setup_tasks():
async def main(): async def main():
async with volume_db, queue_db, cache_db, session_db: 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()) loop.create_task(setup_tasks())
if os.getenv('v6monitor'): if os.getenv('v6monitor'):
loop.create_task(monitor()) loop.create_task(monitor())