forked from bossoq/Twitch-Channel-Points-Miner-v2
-
Notifications
You must be signed in to change notification settings - Fork 427
Open
Description
Describe the bug
App crashed on startup.
Steps to reproduce
import logging
from colorama import Fore
from TwitchChannelPointsMiner import TwitchChannelPointsMiner
from TwitchChannelPointsMiner.logger import LoggerSettings, ColorPalette
from TwitchChannelPointsMiner.classes.Chat import ChatPresence
from TwitchChannelPointsMiner.classes.Discord import Discord
from TwitchChannelPointsMiner.classes.Telegram import Telegram
from TwitchChannelPointsMiner.classes.Settings import Priority, Events, FollowersOrder
from TwitchChannelPointsMiner.classes.entities.Bet import Strategy, BetSettings, Condition, OutcomeKeys, FilterCondition, DelayMode
from TwitchChannelPointsMiner.classes.entities.Streamer import Streamer, StreamerSettings
twitch_miner = TwitchChannelPointsMiner(
username="replaced",
enable_analytics=True,
streamer_settings=StreamerSettings(
chat=ChatPresence.ONLINE,
claim_moments=True,
claim_drops=True,
follow_raid=True,
),
disable_at_in_nickname=False,
claim_drops_startup=True,
)
twitch_miner.analytics(host="0.0.0.0", port=5000, refresh=5, days_ago=7)
twitch_miner.mine(
followers=True,
followers_order=FollowersOrder.ASC
)
Redacted my name.
Expected behavior
Should not crash
Operating system
Ubuntu
Python version
docker
Miner version
2.0.4
Other relevant software versions
No response
Logs
miner-1 | 12/02 17:01:03 - 📋 Load 47 followers from your profile!
miner-1 | 12/02 17:01:03 - 🤓 Loading data for 47 streamers. Please wait...
miner-1 | 12/02 17:01:40 - 😴 streamer1 (32.48k points) is Offline!
miner-1 | 12/02 17:01:41 - 😴 streamer1 (0 points) is Offline!
miner-1 | 12/02 17:01:42 - 😴 streamer3 (0 points) is Offline!
miner-1 | 12/02 17:01:44 - 😴 streamer4 (13.98k points) is Offline!
miner-1 | Traceback (most recent call last):
miner-1 | File "/usr/src/app/run.py", line 31, in <module>
miner-1 | twitch_miner.mine(
miner-1 | File "/usr/src/app/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py", line 211, in mine
miner-1 | self.run(streamers=streamers, blacklist=blacklist, followers=followers)
miner-1 | File "/usr/src/app/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py", line 299, in run
miner-1 | self.twitch.check_streamer_online(streamer)
miner-1 | File "/usr/src/app/TwitchChannelPointsMiner/classes/Twitch.py", line 188, in check_streamer_online
miner-1 | self.update_stream(streamer)
miner-1 | File "/usr/src/app/TwitchChannelPointsMiner/classes/Twitch.py", line 114, in update_stream
miner-1 | "user_id": self.twitch_login.get_user_id(),
miner-1 | File "/usr/src/app/TwitchChannelPointsMiner/classes/TwitchLogin.py", line 335, in get_user_id
miner-1 | int(persistent.split("%")[
miner-1 | ValueError: invalid literal for int() with base 10: ''
Redacted streamers names.
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels