rdavydov / Twitch-Channel-Points-Miner-v2

A simple script that will watch a stream for you and earn the channel points.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notify on user mention

Telain opened this issue · comments

commented

Is your feature request related to a problem?

No response

Proposed solution

Useful for streams that may have giveaways for people in chat.

When in IRC, support sending a notification with a link to the channel if your username is mentioned.

Alternatives you've considered

No response

Additional context

No response

Need to do some experiments and also make it configurable.
It's possible since we already have a chatbot (ircbot).

I don't want to add any message sending functionality since it would lead to people spamming, getting banned and eventually complaining here.

But listening for a specific message - seems possible.

commented

I meant sending a notification to you via telegram/discord. Nothing back from the app, I agree that would have bad outcomes.

Yep, I understood. It would be like any other event notification: console/log/tg/discord.

Good news! Experiments gave positive results and I already have a working prototype.
Need to do some final touches and I will be able to release a new version with this feature today!

Done.

https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2/releases/tag/1.8.0

Don't forget to add Events.CHAT_MENTION to events in telegram and discord in run.py.

Please test and leave a feedback here! :)

Maybe you could add the option for custom word triggers, because my twich username is like __rdavydov and that doesnt trigger rdavydov of course. I was highlighted several times in twitch, but none was my "correct" @username

Maybe you could add the option for custom word triggers, because my twich username is like __rdavydov and that doesnt trigger rdavydov of course. I was highlighted several times in twitch, but none was my "correct" @username

Your username is "__hoak2" (with underscores) and you want the script to trigger when someone mentions "hoak2" (without underscores)?

Custom triggers - that's too excessive. Need to think about it properly.
The correct mention is always @username (with a preceding @).

Maybe you could add the option for custom word triggers, because my twich username is like __rdavydov and that doesnt trigger rdavydov of course. I was highlighted several times in twitch, but none was my "correct" @username

Your username is "__hoak2" (with underscores) and you want the script to trigger when someone mentions "hoak2" (without underscores)?

Yes exactly

Maybe you could add the option for custom word triggers, because my twich username is like __rdavydov and that doesnt trigger rdavydov of course. I was highlighted several times in twitch, but none was my "correct" @username

Your username is "__hoak2" (with underscores) and you want the script to trigger when someone mentions "hoak2" (without underscores)?

Yes exactly

But "hoak2" can be a completely different user. Too much confusion can be introduced by this for other script users.

I think it's enough for now to just trigger on @username. Most of the raffles and giveaways are made by chat bots anyway and they use the correct @username mention. Users in chat can type whatever they want, they can mistype and type something like "ho ak" meaning you. Doesn't mean we have to consider all of those variations.

I'll think about custom user triggers and how it would affect performance and memory consumption. No promises though.

Hm, I think I found a problem but now I'm not sure. At first I got notifications for mentions, then they stopped. From what I see there might be two things that are affecting this and I'm not sure if maybe I'm imagining one of them due to the other.
I think it does not catch notifications if the capitalization is different then the one in the config, only working for e.g. it works for @silentguy256 but not @SilentGuy256.
But checking this is another problem as it seems that notifications are also not (always) caught if I'm actually in the chat using the normal twitch window. That has worked before but now it seems it sometimes doesn't, but I would assume that is not a problem with your software probably something to do with how twitch handles things.

I think it does not catch notifications if the capitalization is different then the one in the config, only working for e.g. it works for @silentguy256 but not @SilentGuy256.

Yep, it doesn't. But this should be pretty easy to fix.