fix: duckv placeholder problem. rm problem
This commit is contained in:
parent
567d1749c7
commit
8622ff1c66
@ -531,8 +531,9 @@ def cmd_remove(bot, user, text, command, parameter):
|
||||
removed = None
|
||||
if index == var.playlist.current_index:
|
||||
removed = var.playlist.remove(index)
|
||||
var.botamusique.stop()
|
||||
var.botamusique.launch_music(index)
|
||||
if bot.is_playing and not bot.is_pause:
|
||||
bot.stop()
|
||||
bot.launch_music(index)
|
||||
else:
|
||||
removed = var.playlist.remove(index)
|
||||
|
||||
|
@ -147,7 +147,7 @@ drop_database = dropdatabase
|
||||
|
||||
[strings]
|
||||
current_volume = Current volume: {volume}
|
||||
current_ducking_volume = Volume on ducking: {volume} by {user}
|
||||
current_ducking_volume = Volume on ducking: {volume}
|
||||
change_volume = Volume set to {volume} by {user}
|
||||
change_ducking_volume = Volume on ducking set to {volume} by {user}
|
||||
bad_command = {command}: command not found
|
||||
|
@ -219,6 +219,7 @@ def post():
|
||||
if var.playlist.length() >= int(request.form['delete_music']):
|
||||
if int(request.form['delete_music']) == var.playlist.current_index:
|
||||
var.playlist.remove(int(request.form['delete_music']))
|
||||
if var.botamusique.is_playing and not var.botamusique.is_pause:
|
||||
var.botamusique.stop()
|
||||
var.botamusique.launch_music(int(request.form['delete_music']))
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user