Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with music_cog #22

Open
drasmodeus666 opened this issue May 4, 2023 · 1 comment
Open

Issue with music_cog #22

drasmodeus666 opened this issue May 4, 2023 · 1 comment

Comments

@drasmodeus666
Copy link

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
Copy link

@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants