Adding Play and Prev Controller

This commit is contained in:
Rafael Vargas
2022-03-26 12:19:25 -04:00
parent 8ac80c216f
commit 362ec02fe4
5 changed files with 132 additions and 32 deletions

View File

@@ -36,14 +36,6 @@ class Player(commands.Cog):
def playlist(self) -> Playlist:
return self.__playlist
async def connect(self, ctx: Context) -> bool:
if not ctx.author.voice:
return False
if self.__guild.voice_client == None:
await ctx.author.voice.channel.connect(reconnect=True, timeout=None)
return True
def __play_next(self, error, ctx: Context) -> None:
if self.__force_stop: # If it's forced to stop player
self.__force_stop = False