Skip to content

Commit

Permalink
Make the number of votes to skip configurable (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny authored Aug 2, 2022
1 parent c940b69 commit 40a7a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/anyplayer/player.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# playing? (return bool)
# paused? (return bool)
class Anyplayer::Player
DEFAULT_VOTES_TO_SKIP = 5
DEFAULT_VOTES_TO_SKIP = ENV.fetch("ANYPLAYER_VOTES_TO_SKIP", 5).to_i

def initialize
@votes = 0
Expand Down

0 comments on commit 40a7a06

Please sign in to comment.