You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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!
@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)
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?
The text was updated successfully, but these errors were encountered: