diff --git a/README.md b/README.md index 034333d..dc4ae5e 100644 --- a/README.md +++ b/README.md @@ -205,7 +205,7 @@ twitch_miner = TwitchChannelPointsMiner( priority=[ # Custom priority in this case for example: Priority.STREAK, # - We want first of all to catch all watch streak from all streamers Priority.DROPS, # - When we don't have anymore watch streak to catch, wait until all drops are collected over the streamers - Priority.ORDER # - When we have all of the drops claimed and no watch-streak available, use the order priority (POINTS_ASCENDING, POINTS_DESCEDING) + Priority.ORDER # - When we have all of the drops claimed and no watch-streak available, use the order priority (POINTS_ASCENDING, POINTS_DESCENDING) ], enable_analytics=False, # Disables Analytics if False. Disabling it significantly reduces memory consumption disable_ssl_cert_verification=False, # Set to True at your own risk and only to fix SSL: CERTIFICATE_VERIFY_FAILED error @@ -421,14 +421,14 @@ Make sure to write the streamers array in order of priority from left to right. ## Settings Most of the settings are self-explained and are commented on in the example. -You can watch only two streamers per time. With `priority` settings, you can select which streamers watch by use priority. You can use an array of priority or single item. I suggest using at least one priority from `ORDER`, `POINTS_ASCENDING`, `POINTS_DESCEDING` because, for example, If you set only `STREAK` after catch all watch streak, the script will stop to watch streamers. +You can watch only two streamers per time. With `priority` settings, you can select which streamers watch by use priority. You can use an array of priority or single item. I suggest using at least one priority from `ORDER`, `POINTS_ASCENDING`, `POINTS_DESCENDING` because, for example, If you set only `STREAK` after catch all watch streak, the script will stop to watch streamers. Available values are the following: - `STREAK` - Catch the watch streak from all streamers - `DROPS` - Claim all drops from streamers with drops tags enabled - `SUBSCRIBED` - Prioritize streamers you're subscribed to (higher subscription tiers are mined first) - `ORDER` - Following the order of the list - `POINTS_ASCENDING` - On top the streamers with the lowest points - - `POINTS_DESCEDING` - On top the streamers with the highest points + - `POINTS_DESCENDING` - On top the streamers with the highest points You can combine all priority but keep in mind that use `ORDER` and `POINTS_ASCENDING` in the same settings doesn't make sense. diff --git a/TwitchChannelPointsMiner/classes/Settings.py b/TwitchChannelPointsMiner/classes/Settings.py index 3db6b62..3f0c381 100644 --- a/TwitchChannelPointsMiner/classes/Settings.py +++ b/TwitchChannelPointsMiner/classes/Settings.py @@ -7,7 +7,7 @@ class Priority(Enum): DROPS = auto() SUBSCRIBED = auto() POINTS_ASCENDING = auto() - POINTS_DESCEDING = auto() + POINTS_DESCENDING = auto() class FollowersOrder(Enum): diff --git a/TwitchChannelPointsMiner/classes/Twitch.py b/TwitchChannelPointsMiner/classes/Twitch.py index 7a9dd47..fe7f762 100644 --- a/TwitchChannelPointsMiner/classes/Twitch.py +++ b/TwitchChannelPointsMiner/classes/Twitch.py @@ -395,7 +395,7 @@ class Twitch(object): elif ( prior in [Priority.POINTS_ASCENDING, - Priority.POINTS_DESCEDING] + Priority.POINTS_DESCENDING] and len(streamers_watching) < 2 ): items = [ @@ -407,7 +407,7 @@ class Twitch(object): items, key=lambda x: x["points"], reverse=( - True if prior == Priority.POINTS_DESCEDING else False + True if prior == Priority.POINTS_DESCENDING else False ), ) streamers_watching += [item["index"] diff --git a/example.py b/example.py index f3b0579..8d48036 100644 --- a/example.py +++ b/example.py @@ -21,7 +21,7 @@ twitch_miner = TwitchChannelPointsMiner( priority=[ # Custom priority in this case for example: Priority.STREAK, # - We want first of all to catch all watch streak from all streamers Priority.DROPS, # - When we don't have anymore watch streak to catch, wait until all drops are collected over the streamers - Priority.ORDER # - When we have all of the drops claimed and no watch-streak available, use the order priority (POINTS_ASCENDING, POINTS_DESCEDING) + Priority.ORDER # - When we have all of the drops claimed and no watch-streak available, use the order priority (POINTS_ASCENDING, POINTS_DESCENDING) ], enable_analytics=False, # Disables Analytics if False. Disabling it significantly reduces memory consumption disable_ssl_cert_verification=False, # Set to True at your own risk and only to fix SSL: CERTIFICATE_VERIFY_FAILED error