Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. @commands.command()
  2. async def pause(self):
  3. """Pauses the song."""
  4. if self.music_player.is_playing():
  5. self.music_player.pause()
  6.  
  7. @commands.command()
  8. async def resume(self):
  9. """Resumes the song."""
  10. if not self.music_player.is_playing():
  11. self.music_player.resume()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement