rdavydov / Twitch-Channel-Points-Miner-v2

A simple script that will watch a stream for you and earn the channel points.
GNU General Public License v3.0
1.13k stars 334 forks source link

Moment claim notifications not working #297

Closed 21mtd closed 1 year ago

21mtd commented 1 year ago

Describe the bug

Today I noticed I got a new moment badge (yesterday didn't have it), checked the logs and nothing about claiming moment in console or even in Discord.

I have

 discord=Discord(
            webhook_api="hidden",
            events=[Events.BONUS_CLAIM, Events.MOMENT_CLAIM, Events.DROP_CLAIM, Events.CHAT_MENTION],
        ),

only Chat Mention and Drop Claim show up, haven't seen Moment Claim and Bonus Claim notifications (assuming it's the +50 points thing??)

Not that big of a deal, the claiming still work, only some notifications don't

Steps to reproduce

  1. Add Events.BONUS_CLAIM, Events.MOMENT_CLAIM in run.py, Discord section
  2. Those 2 notifications not sent to Discord.

Expected behavior

Get notifications about claiming Moment badge and bonuses.

Operating system

fly.io

Python version

fly.io

Miner version

1.8.3

Other relevant software versions

No response

Logs

no logs, sorry.

Additional context

No response

rdavydov commented 1 year ago

Do you have less=True in

logger_settings

in your run.py file?

21mtd commented 1 year ago

I do have less=True, so I guess that's the problem? I will set it to False now

rdavydov commented 1 year ago

Yes, it's the reason for:

haven't seen Moment Claim and Bonus Claim notifications

Just set it to False.

21mtd commented 1 year ago

Set it to False and it's working now, thanks. I see if Settings.logger.less is False: in Twitch.py line 641 and 655 I guess I can change it to if Settings.logger.less is True: because less=False make the console really verbose now.