Skip to content

Commit

Permalink
Adds shuffleplay
Browse files Browse the repository at this point in the history
A shorthand command of doing the play command and then the shuffle command
  • Loading branch information
BabyBoySnow committed Nov 30, 2023
1 parent 0d3eb97 commit 7e2adb0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions musicbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1748,6 +1748,25 @@ async def cmd_play(
head=False,
)

async def cmd_shuffleplay(
self, message, _player, channel, author, permissions, leftover_args, song_url
):
"""Usage:
{command_prefix}shuffleplay playlist_link
Adds a playlist to be shhuffled then played. Shorthand for doing {command_prefix}play and then {command_prefix}shuffle
"""
return await self._cmd_play(
message,
_player,
channel,
author,
permissions,
leftover_args,
song_url,
head=False,
)
return await self.cmd_shuffle(channel, player)

async def cmd_playnext(
self, message, _player, channel, author, permissions, leftover_args, song_url
):
Expand Down

0 comments on commit 7e2adb0

Please sign in to comment.