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 On music_cog.py #21

Open
drasmodeus666 opened this issue May 3, 2023 · 2 comments
Open

Issue On music_cog.py #21

drasmodeus666 opened this issue May 3, 2023 · 2 comments

Comments

@drasmodeus666
Copy link

File "f:\music_bot-main\main.py", line 7, in
from music_cog import music_cog
File "f:\music_bot-main\music_cog.py", line 95
self.is_playing = False
TabError: inconsistent use of tabs and spaces in indentation

How can i fix that?

@Carlover101
Copy link

Sometimes when you copy and paste from one IDE to another, the tabs and spaces will get mixed up. The best way to get rid of this is to delete the tabs that have red lines next to them and re-add them. Hope this helps!

@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

3 participants