pawel02 / music_bot

Music discord bot with all the functionality you'll ever want
66 stars 91 forks source link

Issue with music_cog #22

Open drasmodeus666 opened 1 year ago

drasmodeus666 commented 1 year ago

File "d:\Bot\music_bot\main.py", line 4, in from music_cog import music_cog ModuleNotFoundError: No module named 'music_cog'

How can i fix this issue??

pouya5148 commented 1 year ago
@commands.command(name="pause", help="Pauses the current song being played")
async def pause(self, ctx, *args):
    if self.is_playing:
        self.is_playing = False
        self.is_paused = True
        self.vc.pause()
    elif self.is_paused:
        self.is_paused = False
        self.is_playing = True
        self.vc.resume()

@commands.command(name="resume", aliases=["r"], help="Resumes playing with the discord bot")
async def resume(self, ctx, *args):
    if self.is_paused:
        self.is_paused = False
        self.is_playing = True
        self.vc.resume()

@commands.command(name="skip", aliases=["s"], help="Skips the current song being played")
async def skip(self, ctx):
    if self.vc != None and self.vc:
        self.vc.stop()
        #try to play next in the queue if it exists
        await self.play_music(ctx)