mirror of
https://github.com/Matthww/TuneBot.git
synced 2026-09-22 01:37:50 +00:00
revert the autojoin stuff
This commit is contained in:
@@ -26,7 +26,6 @@ class MusicCog(BaseCog, name="Music"):
|
|||||||
|
|
||||||
self.bot.lavalink.add_event_hook(self.track_hook)
|
self.bot.lavalink.add_event_hook(self.track_hook)
|
||||||
|
|
||||||
"""
|
|
||||||
@commands.Cog.listener()
|
@commands.Cog.listener()
|
||||||
async def on_ready(self):
|
async def on_ready(self):
|
||||||
while not self.is_lavalink_ready():
|
while not self.is_lavalink_ready():
|
||||||
@@ -44,7 +43,6 @@ class MusicCog(BaseCog, name="Music"):
|
|||||||
await player.play()
|
await player.play()
|
||||||
except:
|
except:
|
||||||
logger.error(f"Failed to autojoin guild {guild_id}.")
|
logger.error(f"Failed to autojoin guild {guild_id}.")
|
||||||
"""
|
|
||||||
|
|
||||||
async def track_hook(self, event: lavalink.Event):
|
async def track_hook(self, event: lavalink.Event):
|
||||||
if isinstance(event, lavalink.events.QueueEndEvent):
|
if isinstance(event, lavalink.events.QueueEndEvent):
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
|
||||||
from bot import TuneBot
|
from bot import TuneBot
|
||||||
#from cogs.settings.interactions import SettingCommands
|
from cogs.settings.interactions import SettingCommands
|
||||||
from cogs.settings.interactions import SourceCommands
|
from cogs.settings.interactions import SourceCommands
|
||||||
from context import CustomContext
|
from context import CustomContext
|
||||||
from utils.classes import BaseCog
|
from utils.classes import BaseCog
|
||||||
|
|||||||
@@ -105,7 +105,6 @@ class SourceCommands(app_commands.Group):
|
|||||||
|
|
||||||
await ctx.response.send_message(embed=embed)
|
await ctx.response.send_message(embed=embed)
|
||||||
|
|
||||||
"""
|
|
||||||
class SettingCommands(app_commands.Group):
|
class SettingCommands(app_commands.Group):
|
||||||
def __init__(self, bot: "TuneBot"):
|
def __init__(self, bot: "TuneBot"):
|
||||||
super().__init__(name="settings", description="Tweak and customize")
|
super().__init__(name="settings", description="Tweak and customize")
|
||||||
@@ -144,4 +143,3 @@ class SettingCommands(app_commands.Group):
|
|||||||
await autojoin.disable()
|
await autojoin.disable()
|
||||||
embed.title = "AutoJoin disabled"
|
embed.title = "AutoJoin disabled"
|
||||||
await ctx.response.send_message(embed=embed)
|
await ctx.response.send_message(embed=embed)
|
||||||
"""
|
|
||||||
Reference in New Issue
Block a user