Skip to content

Commit

Permalink
fix patterns (#908)
Browse files Browse the repository at this point in the history
Make Repo Pattern keys more consistent for Farming Gear. #908
  • Loading branch information
CalMWolfs authored Jan 11, 2024
1 parent be11bae commit 9b16887
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,15 @@ class CaptureFarmingGear {

private val cakePattern = "(?:Big )?Yum! You (?:gain|refresh) [+]5☘ Farming Fortune for 48 hours!".toPattern()

private val tierPattern by RepoPattern.pattern("garden.uniqueVisitors.tier", "§7Progress to Tier (?<nextTier>\\d+):.*")
private val tierProgressPattern by RepoPattern.pattern("garden.uniqueVisitors.tierProgress", ".* §e(?<having>.*)§6/(?<total>.*)")
private val patternGroup = RepoPattern.group("garden.fortuneguide.capture")
private val tierPattern by patternGroup.pattern(
"uniquevisitors.tier",
"§7Progress to Tier (?<nextTier>\\d+):.*"
)
private val tierProgressPattern by patternGroup.pattern(
"uniquevisitors.tierprogress",
".* §e(?<having>.*)§6/(?<total>.*)"
)

companion object {
private val strengthPattern = " Strength: §r§c❁(?<strength>.*)".toPattern()
Expand Down

0 comments on commit 9b16887

Please sign in to comment.