Author SHA1 Message Date
matthew c01e773c31 Add Privacy Policy and Terms of Service command 2022-12-06 22:55:40 +01:00
3 changed files with 3 additions and 6 deletions
-2
View File
@@ -26,7 +26,6 @@ class MusicCog(BaseCog, name="Music"):
self.bot.lavalink.add_event_hook(self.track_hook)
"""
@commands.Cog.listener()
async def on_ready(self):
while not self.is_lavalink_ready():
@@ -44,7 +43,6 @@ class MusicCog(BaseCog, name="Music"):
await player.play()
except:
logger.error(f"Failed to autojoin guild {guild_id}.")
"""
async def track_hook(self, event: lavalink.Event):
if isinstance(event, lavalink.events.QueueEndEvent):
+2 -2
View File
@@ -1,7 +1,7 @@
from discord.ext import commands
from bot import TuneBot
#from cogs.settings.interactions import SettingCommands
from cogs.settings.interactions import SettingCommands
from cogs.settings.interactions import SourceCommands
from context import CustomContext
from utils.classes import BaseCog
@@ -13,5 +13,5 @@ class SettingsCog(BaseCog, name="Settings"):
async def setup(bot: TuneBot):
await bot.add_cog(SettingsCog(bot))
#bot.tree.add_command(SettingCommands(bot), override=True)
bot.tree.add_command(SettingCommands(bot), override=True)
bot.tree.add_command(SourceCommands(bot), override=True)
+1 -2
View File
@@ -105,7 +105,7 @@ class SourceCommands(app_commands.Group):
await ctx.response.send_message(embed=embed)
"""
class SettingCommands(app_commands.Group):
def __init__(self, bot: "TuneBot"):
super().__init__(name="settings", description="Tweak and customize")
@@ -144,4 +144,3 @@ class SettingCommands(app_commands.Group):
await autojoin.disable()
embed.title = "AutoJoin disabled"
await ctx.response.send_message(embed=embed)
"""