Fix typo in variable name from 'POINTS_DESCEDING' to 'POINTS_DESCENDING'
This commit is contained in:
@@ -205,7 +205,7 @@ twitch_miner = TwitchChannelPointsMiner(
|
|||||||
priority=[ # Custom priority in this case for example:
|
priority=[ # Custom priority in this case for example:
|
||||||
Priority.STREAK, # - We want first of all to catch all watch streak from all streamers
|
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.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
|
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
|
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
|
## Settings
|
||||||
Most of the settings are self-explained and are commented on in the example.
|
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:
|
Available values are the following:
|
||||||
- `STREAK` - Catch the watch streak from all streamers
|
- `STREAK` - Catch the watch streak from all streamers
|
||||||
- `DROPS` - Claim all drops from streamers with drops tags enabled
|
- `DROPS` - Claim all drops from streamers with drops tags enabled
|
||||||
- `SUBSCRIBED` - Prioritize streamers you're subscribed to (higher subscription tiers are mined first)
|
- `SUBSCRIBED` - Prioritize streamers you're subscribed to (higher subscription tiers are mined first)
|
||||||
- `ORDER` - Following the order of the list
|
- `ORDER` - Following the order of the list
|
||||||
- `POINTS_ASCENDING` - On top the streamers with the lowest points
|
- `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.
|
You can combine all priority but keep in mind that use `ORDER` and `POINTS_ASCENDING` in the same settings doesn't make sense.
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ class Priority(Enum):
|
|||||||
DROPS = auto()
|
DROPS = auto()
|
||||||
SUBSCRIBED = auto()
|
SUBSCRIBED = auto()
|
||||||
POINTS_ASCENDING = auto()
|
POINTS_ASCENDING = auto()
|
||||||
POINTS_DESCEDING = auto()
|
POINTS_DESCENDING = auto()
|
||||||
|
|
||||||
|
|
||||||
class FollowersOrder(Enum):
|
class FollowersOrder(Enum):
|
||||||
|
|||||||
@@ -395,7 +395,7 @@ class Twitch(object):
|
|||||||
|
|
||||||
elif (
|
elif (
|
||||||
prior in [Priority.POINTS_ASCENDING,
|
prior in [Priority.POINTS_ASCENDING,
|
||||||
Priority.POINTS_DESCEDING]
|
Priority.POINTS_DESCENDING]
|
||||||
and len(streamers_watching) < 2
|
and len(streamers_watching) < 2
|
||||||
):
|
):
|
||||||
items = [
|
items = [
|
||||||
@@ -407,7 +407,7 @@ class Twitch(object):
|
|||||||
items,
|
items,
|
||||||
key=lambda x: x["points"],
|
key=lambda x: x["points"],
|
||||||
reverse=(
|
reverse=(
|
||||||
True if prior == Priority.POINTS_DESCEDING else False
|
True if prior == Priority.POINTS_DESCENDING else False
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
streamers_watching += [item["index"]
|
streamers_watching += [item["index"]
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ twitch_miner = TwitchChannelPointsMiner(
|
|||||||
priority=[ # Custom priority in this case for example:
|
priority=[ # Custom priority in this case for example:
|
||||||
Priority.STREAK, # - We want first of all to catch all watch streak from all streamers
|
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.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
|
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
|
disable_ssl_cert_verification=False, # Set to True at your own risk and only to fix SSL: CERTIFICATE_VERIFY_FAILED error
|
||||||
|
|||||||
Reference in New Issue
Block a user