elif setting == "maxlength" or setting == "maxduration": | elif setting == "maxlength" or setting == "maxduration": | ||||
change = int(change) | change = int(change) | ||||
if change >= 1: | if change >= 1: | ||||
voice["skip_ratio"] = change | |||||
voice["max_length"] = change | |||||
else: | else: | ||||
return await ctx.send("Valid max duration not given.") | return await ctx.send("Valid max duration not given.") | ||||
await ctx.send("Max Duration was set to {}".format(change)) | await ctx.send("Max Duration was set to {}".format(change)) |