Skip to content

Commit

Permalink
🐞fix(插件>报菜名): 现已支持婚后语音
Browse files Browse the repository at this point in the history
  • Loading branch information
iamapig120 committed Jun 9, 2020
1 parent dc0569b commit 62cdd14
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions extension/reportVoice/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

function autoRun() {
try {
const arrBackup = cfg.voice.sound.groups_
const arrBackup = cfg.voice.sound.rows_
if (!arrBackup || arrBackup.length === 0) {
throw new Error()
}
Object.entries(cfg.voice.sound.groups_).forEach(([soundID, soundGroup]) => {
soundGroup.forEach((soundObject, index) => {
soundObject.level_limit = 0
})
cfg.voice.sound.rows_.forEach(sound=>{
sound.level_limit = 0
sound.bond_limit = 0
})
console.log('Hacked所有语音')
} catch (error) {
Expand Down

0 comments on commit 62cdd14

Please sign in to comment.