diff --git a/src/bot.py b/src/bot.py index 79dc9c0..1440562 100644 --- a/src/bot.py +++ b/src/bot.py @@ -76,6 +76,13 @@ class Music(commands.Cog): if ctx.voice_client.is_playing(): await ctx.send(f"Queued: {title}") + @commands.command() + async def skip(self, ctx): + async with ctx.typing(): + if not ctx.voice_client.is_playing(): + raise commands.CommandError("Cannot skip: No song playing") + ctx.voice_client.stop() + @commands.command() async def stop(self, ctx): await ctx.voice_client.disconnect()