Skip to content

Commit

Permalink
fix: volume being incorrectly reset; add: better documenting timeouts…
Browse files Browse the repository at this point in the history
… in config (#195)

* Resetting the filter resets the volume to the configured volume

* Better documenting timeout values in config
  • Loading branch information
flamableassassin authored Nov 17, 2024
1 parent 8657310 commit 8a254ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions example.full.app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ player:
# Enable this if you want to use realtime duation in nowplaying command
NP_REALTIME: false

# The number of leave time you want
# The amount of time before the bot leaves the VC in milliseconds
LEAVE_TIMEOUT: 60000

# Must not over 1000 or bot crash
Expand Down Expand Up @@ -75,7 +75,7 @@ utilities:
GUILD_LOG_CHANNEL: ''
# Log all unhandled, error, warnings on discord
LOG_CHANNEL: ''
# The timeout for deleting msg
# The timeout for deleting msg in milliseconds
DELETE_MSG_TIMEOUT: 3000
# Auto resume when bot restarted suddenly
AUTO_RESUME: false
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Filter/Reset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class implements Command {
player?.data.delete('filter-mode')

await player?.filter.clear()
await player?.setVolume(100)
await player?.setVolume(client.config.player.DEFAULT_VOLUME)

const resetted = new EmbedBuilder()
.setDescription(`${client.i18n.get(handler.language, 'command.filter', 'reset_on')}`)
Expand Down

0 comments on commit 8a254ee

Please sign in to comment.