diff --git a/cogs/information/interactions.py b/cogs/information/interactions.py index d7db5a9..36d305b 100644 --- a/cogs/information/interactions.py +++ b/cogs/information/interactions.py @@ -48,3 +48,17 @@ class InfoCommands(app_commands.Group): f"Server CPU: `{cpu}`\n\n" ) await ctx.response.send_message(embed=embed) + + @app_commands.command(name="tos", description="Terms of Service") + async def tos(self, ctx: Interaction): + embed = create_embed(ctx.user) + embed.title = "Terms of Service (ToS)" + embed.description = "[https://exobot.site/static/tos.html](https://exobot.site/static/tos.html)" + await ctx.response.send_message(embed=embed) + + @app_commands.command(name="privacy", description="Privacy Policy") + async def privacy(self, ctx: Interaction): + embed = create_embed(ctx.user) + embed.title = "Privacy Policy" + embed.description = "[https://exobot.site/static/privacy.html](https://exobot.site/static/privacy.html)" + await ctx.response.send_message(embed=embed) diff --git a/cogs/music/__init__.py b/cogs/music/__init__.py index f53b720..17f1f3f 100644 --- a/cogs/music/__init__.py +++ b/cogs/music/__init__.py @@ -26,6 +26,7 @@ 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(): @@ -43,6 +44,7 @@ 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): diff --git a/cogs/settings/__init__.py b/cogs/settings/__init__.py index 60031d8..969bcdf 100644 --- a/cogs/settings/__init__.py +++ b/cogs/settings/__init__.py @@ -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) diff --git a/cogs/settings/interactions.py b/cogs/settings/interactions.py index b0ebbe6..0e06a59 100644 --- a/cogs/settings/interactions.py +++ b/cogs/settings/interactions.py @@ -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,3 +144,4 @@ class SettingCommands(app_commands.Group): await autojoin.disable() embed.title = "AutoJoin disabled" await ctx.response.send_message(embed=embed) +""" \ No newline at end of file