Added profile commands for the bot
This commit is contained in:
@@ -3,6 +3,7 @@ import math
|
||||
import pyaudio
|
||||
import discord
|
||||
import numpy
|
||||
from BotResources import DEFAULT_NOISEGATE_THRESHOLD
|
||||
|
||||
voice_connection = None
|
||||
|
||||
@@ -107,7 +108,7 @@ class AudioStream:
|
||||
|
||||
|
||||
class NoiseGate(AudioStream):
|
||||
def __init__(self, _voice_connection, _noise_gate_threshold: int = 50, **kwargs):
|
||||
def __init__(self, _voice_connection, _noise_gate_threshold: int = DEFAULT_NOISEGATE_THRESHOLD, **kwargs):
|
||||
super(NoiseGate, self).__init__(_init_on_startup=True, **kwargs)
|
||||
global voice_connection
|
||||
voice_connection = _voice_connection
|
||||
|
||||
Reference in New Issue
Block a user