I am not sure what I am doing wrong. Previously, the code was this:
volume = min(60, max(30, volume))
However, after trying with configparser, I keep getting a 500 error on my Twilio Server.
volume_min = configParser.get('config_searchandplay', 'volume_min')
volume_max = configParser.get('config_searchandplay', 'volume_max')
volume = min(volume_max, max(volume_min, volume)) # Max Volume Spam Protection
CONFIG.ini
:
[config_searchandplay]
#Volume Protection
volume_max = 90
volume_min = 10