Browse Source

bitrate fix

master
lolcat 3 months ago
parent
commit
99521af6e0
  1. 3
      bot.js
  2. 3
      rena.conf

3
bot.js

@ -29,6 +29,7 @@ for(i=0; i<config_file.length; i++){
switch(tmp[0]){
case "port":
case "bitrate":
tmp[1] = parseInt(tmp[1]);
break;
}
@ -217,6 +218,8 @@ client.on("ready", function(){
console.log("Ready to kick ass");
client.connection.opusEncoder.setBitrate(config.bitrate);
if(config.channel.match(/^[0-9]+$/)){
config.channel = parseInt(config.channel);

3
rena.conf

@ -5,6 +5,9 @@ port=64738
name=rena_chan
password=
# Dont forget to change this to your serber's bitrate!
bitrate=128000
# Certificate location
key=./key.pem
cert=./cert.pem

Loading…
Cancel
Save