Author Topic: Adding roles on hours followed  (Read 1567 times)

0 Members and 1 Guest are viewing this topic.

Nibblet99

  • Youngling
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Adding roles on hours followed
« on: June 18, 2018, 06:18:32 AM »
Hi,
   I've seen quite some issues in streams of late where a Troll will join a stream, start spamming, then join the discord and start spamming there too. Whilst it's easy to stop them in Twitch chat, I'm looking for a solution to protect discord.

Ideally I'm looking for something like assigning a discord role (granting talk power) to people who have been watching me for more than 30 mins on twitch. I see I can use the VIP roles to assign discord roles to people who've connected their twitch accounts to discord, is there a way to automatically assign VIP bronze to anyone who has viewed for x number of minutes? Or is there another solution to this, that I've missed?

Cheers

ThatGirlSlays

  • Youngling
  • *
  • Posts: 42
  • Karma: +0/-0
    • View Profile
    • Instagram
  • Twitch Name: ThatGirlSlays
Re: Adding roles on hours followed
« Reply #1 on: June 19, 2018, 02:24:48 AM »
Well one real quick thing I would recommend is getting a Discord bot such as Mee6 to assign Discord roles based on activity in Discord. Perhaps the user won't have access to certain channels until they have been active in other channels.

Only other option I can think of is everytime a person joins the viewer list (whether they chat or lurk), you can run a command silently that will pull up their minutes/hours watched and if over X, will assign them VIP status. This would only work on their RETURN to your stream. So say a new person comes to your stream and they stick around for 5 hours, they won't be granted the role until after the next time they visit the stream.

Lastly, this could be possible using the web API but it would require A LOT of overhead and an unreasonable amount of resources. Basically, if you have a web server and you have the web API connected what you could do is regularly loop through your Twitch viewer list and then for each viewer you could calculate the number of hours watched by that person and then in return, grant VIP status if they have surpassed X number of hours. You could run this script perhaps every hour but it would be taxing on your web server to loop through all of your viewers.

Nibblet99

  • Youngling
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Adding roles on hours followed
« Reply #2 on: June 19, 2018, 08:57:58 AM »
Thanks ThatGirlSlays, give me some options to think about. I was hoping that my twitch bot could be the gatekeeper in a reasonable manner, as that's where the discord membership is coming from, but I guess you're right, I need to look again at discord bots, and manage them independently (which is a pain when live streaming. Thanks for your time and efforts, it's really appreciated