@command('history clear')
def clear_history():
 g.userhist['history'].songs = []
 history.save()
 g.message = 'History cleared'
 g.content = logo()

@ command ( 'history clear' ) def clear_history ( ) : g . userhist [ 'history' ] . songs = [ ] history . save ( ) g . message = 'History cleared' g . content = logo ( )
clears the users play history .