diff --git a/v6d3music/run-bot.py b/v6d3music/run-bot.py index 44766b9..42c0dfb 100644 --- a/v6d3music/run-bot.py +++ b/v6d3music/run-bot.py @@ -140,10 +140,11 @@ async def main(): loop.create_task(setup_tasks()) if os.getenv('v6monitor'): loop.create_task(monitor()) - try: - subprocess.Popen('tor') - except FileNotFoundError: - print('no tor') + if os.getenv('v6tor', None) is None: + try: + subprocess.Popen('tor') + except FileNotFoundError: + print('no tor') await client.connect() diff --git a/v6d3music/utils/presets.py b/v6d3music/utils/presets.py index 711c304..0887391 100644 --- a/v6d3music/utils/presets.py +++ b/v6d3music/utils/presets.py @@ -7,6 +7,7 @@ presets: dict[str, str] = { 'пришествие анимешне': 'bass=g=15,asetrate=67882,bass=g=15', 'difference': 'aeval=val(0)-val(1)|val(1)-val(0)', 'mono': 'aeval=.5*val(0)+.5*val(1)|.5*val(1)+.5*val(0)', + 'normal': 'loudnorm=i=-12', } -allowed_presets = ['bassboost', 'bassbooboost', 'nightcore', 'daycore', 'mono'] +allowed_presets = ['bassboost', 'bassbooboost', 'nightcore', 'daycore', 'mono', 'normal', ] allowed_effects = {'', *(presets[key] for key in allowed_presets)}