Update project configuration files, and API routes accordingly. Add SQLite runtime file ignores to .gitignore for better file management.
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
# ╔══════════════════════════════════════════════════════════════════╗
|
||||
# ║ ║
|
||||
# ║ ░█▀▀░█▀█░█▀▄░█▀▀░█░█ ░█▀▄░█▀▀░█░█░█▀▀ ║
|
||||
# ║ ░█░░░█░█░█░█░█▀▀░▄▀▄ ░█░█░█▀▀░▀▄▀░▀▀█ ║
|
||||
# ║ ░▀▀▀░▀▀▀░▀▀░░▀▀▀░▀░▀ ░▀▀░░▀▀▀░░▀░░▀▀▀ ║
|
||||
# ║ +-+-+-+-+-+-+-+-+ ║
|
||||
# ║ |H|e|x|a|H|o|s|t| ║
|
||||
# ║ +-+-+-+-+-+-+-+-+ ║
|
||||
# ║ ║
|
||||
# ║ © 2026 CodeX Devs — All Rights Reserved ║
|
||||
# ║ © 2026 HexaHost — All Rights Reserved ║
|
||||
# ║ ║
|
||||
# ║ discord ── https://discord.gg/codexdev ║
|
||||
# ║ youtube ── https://youtube.com/@CodeXDevs ║
|
||||
# ║ github ── https://github.com/RayExo ║
|
||||
# ║ discord ── https://discord.gg/hexahost ║
|
||||
# ║ github ── https://github.com/theoneandonlymace ║
|
||||
# ║ ║
|
||||
# ╚══════════════════════════════════════════════════════════════════╝
|
||||
|
||||
@@ -22,7 +21,7 @@ from discord.ui import Button, View, LayoutView, TextDisplay, Separator, Contain
|
||||
import wavelink
|
||||
from wavelink.enums import TrackSource
|
||||
from utils import Paginator, DescriptionEmbedPaginator
|
||||
from core import Cog, zyrox, Context
|
||||
from core import Cog, HexaHost, Context
|
||||
from PIL import Image, ImageDraw, ImageFont, ImageOps
|
||||
import io
|
||||
import aiohttp
|
||||
@@ -335,7 +334,7 @@ class MusicControlView(LayoutView):
|
||||
|
||||
|
||||
class Music(commands.Cog):
|
||||
def __init__(self, client: zyrox):
|
||||
def __init__(self, client: HexaHost):
|
||||
self.client = client
|
||||
self.client.loop.create_task(self.connect_nodes())
|
||||
self.client.loop.create_task(self.monitor_inactivity())
|
||||
@@ -374,7 +373,7 @@ class Music(commands.Cog):
|
||||
if player:
|
||||
await player.disconnect(force=True)
|
||||
try:
|
||||
support = Button(label='Support', style=discord.ButtonStyle.link, url='https://discord.gg/codexdev')
|
||||
support = Button(label='Support', style=discord.ButtonStyle.link, url='https://discord.gg/hexahost')
|
||||
vote = Button(label='Vote', style=discord.ButtonStyle.link, url='https://top.gg/bot//vote')
|
||||
view = LayoutView(timeout=None)
|
||||
container = build_container(
|
||||
@@ -423,7 +422,7 @@ class Music(commands.Cog):
|
||||
await player.ctx.send(view=CV2("No suitable track found for autoplay."))
|
||||
else:
|
||||
await player.disconnect()
|
||||
support = Button(label='Support', style=discord.ButtonStyle.link, url='https://discord.gg/codexdev')
|
||||
support = Button(label='Support', style=discord.ButtonStyle.link, url='https://discord.gg/hexahost')
|
||||
vote = Button(label='Vote', style=discord.ButtonStyle.link, url='https://top.gg/bot//vote')
|
||||
view = LayoutView(timeout=None)
|
||||
container = build_container(
|
||||
@@ -473,7 +472,7 @@ class Music(commands.Cog):
|
||||
|
||||
if isinstance(tracks, wavelink.Playlist):
|
||||
await vc.queue.put_wait(tracks.tracks)
|
||||
await ctx.send(view=CV2(f"{ZPLUS} Added playlist [{tracks.name}](https://discord.gg/codexdev) with **{len(tracks.tracks)} songs** to the queue."))
|
||||
await ctx.send(view=CV2(f"{ZPLUS} Added playlist [{tracks.name}](https://discord.gg/hexahost) with **{len(tracks.tracks)} songs** to the queue."))
|
||||
if not vc.playing:
|
||||
track = await vc.queue.get_wait()
|
||||
await vc.play(track)
|
||||
@@ -481,7 +480,7 @@ class Music(commands.Cog):
|
||||
else:
|
||||
track = tracks[0]
|
||||
await vc.queue.put_wait(track)
|
||||
await ctx.send(view=CV2(f"{ZPLUS} Added [{track.title}](https://discord.gg/codexdev) to the queue."))
|
||||
await ctx.send(view=CV2(f"{ZPLUS} Added [{track.title}](https://discord.gg/hexahost) to the queue."))
|
||||
if not vc.playing:
|
||||
await vc.play(await vc.queue.get_wait())
|
||||
await self.display_player_embed(vc, track, ctx)
|
||||
@@ -510,7 +509,7 @@ class Music(commands.Cog):
|
||||
|
||||
track = search_results[0]
|
||||
await vc.queue.put_wait(track)
|
||||
await ctx.send(view=CV2(f"{ZPLUS} Added [{track.title}](https://discord.gg/codexdev) to the queue."))
|
||||
await ctx.send(view=CV2(f"{ZPLUS} Added [{track.title}](https://discord.gg/hexahost) to the queue."))
|
||||
if not vc.playing:
|
||||
await vc.play(track)
|
||||
await self.display_player_embed(vc, track, ctx)
|
||||
@@ -541,7 +540,7 @@ class Music(commands.Cog):
|
||||
c += 1
|
||||
await ctx.message.add_reaction("✅")
|
||||
|
||||
await ctx.send(view=CV2(f"{ZPLUS} Added **{c}** of **{playlist_length}** tracks from **playlist** **[{playlist_info['name']}](https://discord.gg/codexdev)** to the queue."))
|
||||
await ctx.send(view=CV2(f"{ZPLUS} Added **{c}** of **{playlist_length}** tracks from **playlist** **[{playlist_info['name']}](https://discord.gg/hexahost)** to the queue."))
|
||||
await lmao.delete()
|
||||
|
||||
if not vc.playing:
|
||||
@@ -569,7 +568,7 @@ class Music(commands.Cog):
|
||||
if track_results:
|
||||
await vc.queue.put_wait(track_results[0])
|
||||
|
||||
await ctx.send(view=CV2(f"{ZPLUS} Added all tracks from album **[{album_info['name']}](https://discord.gg/codexdev)** to the queue."))
|
||||
await ctx.send(view=CV2(f"{ZPLUS} Added all tracks from album **[{album_info['name']}](https://discord.gg/hexahost)** to the queue."))
|
||||
if not vc.playing:
|
||||
next_track = await vc.queue.get_wait()
|
||||
await vc.play(next_track)
|
||||
|
||||
Reference in New Issue
Block a user