def on_user_sub(self, user): if self.settings['multi_raffle_on_sub'] is False: return MAX_REWARD = 10000 points = StreamHelper.get_viewers() * 5 if points == 0: points = 100 length = 30 points = min(points, MAX_REWARD) self.multi_start_raffle(points, length)
def on_user_resub(self, num_months, **rest): if self.settings["multi_raffle_on_sub"] is False: return MAX_REWARD = 10000 points = StreamHelper.get_viewers() * 5 if points == 0: points = 100 length = 30 points = min(points, MAX_REWARD) points += (num_months - 1) * 500 self.multi_start_raffle(points, length)