Author Topic: Point Rank based commands  (Read 2824 times)

0 Members and 1 Guest are viewing this topic.

DreadfullyDespized

  • Youngling
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
  • Twitch Name: dreadfullydespized
Point Rank based commands
« on: June 04, 2015, 07:59:13 AM »
I searched and I didn't see anything like this so far.  This will be a copy of a current IRC script that I use for my stream.  It gives users command access based on the user level control built into irc.

Lets say your first rank in deepbot is 1,Peon  in your ranks.txt or through the master settings menu.  Once the user reasons Peon status.  Then they are able to use the command !chicken.  For instance.  When the user uses !chicken.  IRC will do a check to see if the user level is 10.  Deepbot could check to see if the user rank is "Peon".  Similary to the existing permissions system based on VIP, MOD, and so on.

Here is the mIRC script example that I am talking about.

Code: [Select]
on 10:TEXT:!chicken:#dreadfullydespized: {
  if ((%floodfunny) || ($($+(%,floodfunny.,$nick),2))) { return }
  set -u120 %floodfunny On
  set -u240 %floodfunny. $+ $nick On
  msg $chan BACOCK!!!!!
  splay Chicken.mp3
}


Here is a basic logic of it.
Code: [Select]
If user == Peon {
splay chicken.mp3
msg $channel BAAACOCK!!!!
}else{
Do nothing.  Since the user doesn't have the appropriate level.
}

RADRaze2KX

  • Youngling
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
  • Twitch Name: RADRaze2KX
Re: Point Rank based commands
« Reply #1 on: February 06, 2016, 02:47:32 PM »
Has this been implemented yet? I want to restrict commands to certain ranks of users based on how long they've been viewing. Ultimate Twitch Bot does this but it's not nearly as flexible as DeepBot... If this hasn't been implemented, please consider it. Thank you.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Point Rank based commands
« Reply #2 on: February 06, 2016, 03:35:06 PM »
You can use @if@[data||matchWith||matchedResult||FailResult]

@if@[>||@hours@||10||Run Command to have access to||You do not have access to this command]

This is saying if they have more than 10 hours watched run the command, if they do not say "You do not have access to this command"
Old Name: RepentGamingTV
Twitch: Here

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

RADRaze2KX

  • Youngling
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
  • Twitch Name: RADRaze2KX
Re: Point Rank based commands
« Reply #3 on: February 07, 2016, 02:32:27 AM »
Got it with your help last night. Thanks!

RADRaze2KX

  • Youngling
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
  • Twitch Name: RADRaze2KX
Re: Point Rank based commands
« Reply #4 on: February 07, 2016, 09:37:31 AM »
Just curious, can these statements be nested into other statements?

@if@[>||@streamrank@||10||@if@[>||@hours@||10||You're higher than level 10 and you earned it by hours||You're higher than level 10 but you bought some of the points]||You're not level 10 yet]

???

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Point Rank based commands
« Reply #5 on: February 07, 2016, 10:47:19 AM »
Maybe, but not too sure.
Old Name: RepentGamingTV
Twitch: Here

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

TheRealAlixe

  • Knight
  • ***
  • Posts: 106
  • Karma: +5/-2
    • View Profile
    • Ninetales.us
  • Twitch Name: TheRealAlixe
Re: Point Rank based commands
« Reply #6 on: February 08, 2016, 04:09:01 PM »
Maybe, but not too sure.

they can be but only once :P
Twitter: @TheRealAlixe | Web: Ninetales.us | Twitch: @TheRealAlixe | Discord: join