Author Topic: Limit the amount of times a command can be used  (Read 2175 times)

0 Members and 1 Guest are viewing this topic.

TheMrCodeq

  • Youngling
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Limit the amount of times a command can be used
« on: August 28, 2015, 03:30:28 AM »
Hi,

So I was wondering, would it be possible to implement a feature whereby there is a limit for how many times a command can be used per stream? I realise that the logistics behind that would be quite difficult, but there are a few commands in a stream I moderate for where they use the sound playback and a limit to the amount they can be used would be great.

Thanks,

Codeq

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Limit the amount of times a command can be used
« Reply #1 on: August 28, 2015, 11:44:14 AM »
You can just use the cooldown feature.

Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

SinNoAria

  • Youngling
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
    • SinNoAria YT
  • Twitch Name: SinNoAria
Re: Limit the amount of times a command can be used
« Reply #2 on: October 28, 2015, 11:37:48 PM »
You can just use the cooldown feature.



I've compared the two options and both options are nice. Revlobot has you manually reset the limit, which I think works well. (Sort of like counter)

Cooldown is somewhat limited though for this role.

I might want only 4 people to get a shoutout at the end of the stream. Putting a cooldown is all fine and dandy, but...

What if my stream runs longer? Do I have to go and turn off the command mid-stream? Interrupting my stream? What if my stream ends early? Do I have to go and turn off the cooldown and turn it back on once enough people are in?

I might want only 20 people to be able to use a command that gives them 500 points each stream. I could use a cooldown for that, but then they have to wait, especially with the global cooldown in place.  With a limit, it would just be first 20 that use the command. (Queue would be possible, but manually doing that and the limit of 2 open queues...)

One way to sort of do it is if you are vip, you could, in theory, try the if command, but you would need a logistical compare rather than a equal/not equal compare.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Limit the amount of times a command can be used
« Reply #3 on: October 29, 2015, 01:51:26 AM »
A limit on how many times a command can be run is on the suggestion list.
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport