Author Topic: Per user cooldown on the !gamble command  (Read 4025 times)

0 Members and 1 Guest are viewing this topic.

FrenLee

  • Youngling
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
  • Twitch Name: GamerKrissy
Per user cooldown on the !gamble command
« on: August 22, 2016, 08:38:43 AM »
HeyGuys,

I'm a happy user of the custom Gamble script that is provided over here: http://wiki.deepbot.tv/custom_mini-games#gamble
I just have 1 problem with it. I'm trying to set up a per-user cooldown, but it doesn't seem to work. Can anybody help me or point me in the right direction of making this work?

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Per user cooldown on the !gamble command
« Reply #1 on: August 22, 2016, 09:06:43 AM »
HeyGuys,

I'm a happy user of the custom Gamble script that is provided over here: http://wiki.deepbot.tv/custom_mini-games#gamble
I just have 1 problem with it. I'm trying to set up a per-user cooldown, but it doesn't seem to work. Can anybody help me or point me in the right direction of making this work?

It is already built in, follow the setup instructions. You will put the number of seconds in the limit.txt file.
Old Name: RepentGamingTV
Twitch: Here

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

FrenLee

  • Youngling
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
  • Twitch Name: GamerKrissy
Re: Per user cooldown on the !gamble command
« Reply #2 on: August 24, 2016, 05:34:22 AM »
It still didn't work how I wanted.
 
Managed to get a 60 second cooldown, but the cooldown was not per user.
Example: If I gambled, no one else could gamble before after a minute. And then someone else would have to wait yet another minute to get their chance.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Per user cooldown on the !gamble command
« Reply #3 on: August 24, 2016, 11:35:37 AM »
Did you put 60 second cooldown on the command itself in the command editor? If yes, that would be why.
You have to setup the folder with the limit.txt file if you want a per user cooldown.
Old Name: RepentGamingTV
Twitch: Here

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