Author Topic: Limit song request to hours watched rank using @if@ ?  (Read 2435 times)

0 Members and 1 Guest are viewing this topic.

SurFyre_Rescue

  • Youngling
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
  • Twitch Name: surfyre_rescue
Limit song request to hours watched rank using @if@ ?
« on: September 11, 2016, 01:27:38 AM »
I am trying to limit users to requesting songs using @if@, I found some what of an example somewhere in the forums, but I could not get it to work, or if I was even setting it up right. Anyone know this is possible? and if so, could you point me how to set up the command? Example: If user has less than 10 hours in stream, then !songrequest is disabled for them. My goal is trying to combat song trolls more effectivley without making a song request VIP function only.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Limit song request to hours watched rank using @if@ ?
« Reply #1 on: September 11, 2016, 02:57:16 AM »
Well if someone knows the command !requestsong, they can bypass it. However, the command would be:

Code: [Select]
@if@[<||@hours@||10||You can't use this command.||!requestsong @target@]

The command in the command editor:

Old Name: RepentGamingTV
Twitch: Here

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

SurFyre_Rescue

  • Youngling
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
  • Twitch Name: surfyre_rescue
Re: Limit song request to hours watched rank using @if@ ?
« Reply #2 on: September 11, 2016, 10:28:28 AM »
Hmm :( looks like we need a new feature :D Thanks alot for the reply though !

tischbrett20

  • Youngling
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
  • Twitch Name: tiscbrett20
Re: Limit song request to hours watched rank using @if@ ?
« Reply #3 on: November 19, 2017, 05:46:45 PM »
Hello :) i have a Problem with that, the limit (10 hours) is not working i can play everytime music (i make a new account too test it)





what is wrong with my !sr  :(

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Limit song request to hours watched rank using @if@ ?
« Reply #4 on: November 20, 2017, 12:45:51 AM »
It is because you have two !sr commands, the real !sr command and the custom made one. ;)
So you need to rename the one on the music tab to something like !sr2
Old Name: RepentGamingTV
Twitch: Here

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

tischbrett20

  • Youngling
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
  • Twitch Name: tiscbrett20
Re: Limit song request to hours watched rank using @if@ ?
« Reply #5 on: December 07, 2017, 05:50:20 AM »
It is because you have two !sr commands, the real !sr command and the custom made one. ;)
So you need to rename the one on the music tab to something like !sr2

Same, Problem...when someone try !sr he become this command "!sr" from the Bot not "@if@[<||@hours@||10||You can't use this command.||!sr @target@]" . And the User (under the Limit) become no message or anything when he try !sr. When the Admin try give this command in the Chat "!sr the song" is it the same Problem, the song is not working (btw not playing anything) but !sr2 works but this is only Point System, i need that for all (10 hours).



TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Limit song request to hours watched rank using @if@ ?
« Reply #6 on: December 08, 2017, 12:59:47 AM »
In the command, you have it running itself over and over again. You need to put !sr2 @target@ instead of !sr @target@
Old Name: RepentGamingTV
Twitch: Here

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