Deep Bot - Twitch Streamer Assistant

Deep Bot => Feature Requests => Topic started by: DreadfullyDespized on June 04, 2015, 07:59:13 AM

Title: Point Rank based commands
Post by: DreadfullyDespized 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.
}
Title: Re: Point Rank based commands
Post by: RADRaze2KX 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.
Title: Re: Point Rank based commands
Post by: TheNumbLock 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"
Title: Re: Point Rank based commands
Post by: RADRaze2KX on February 07, 2016, 02:32:27 AM
Got it with your help last night. Thanks!
Title: Re: Point Rank based commands
Post by: RADRaze2KX 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]

???
Title: Re: Point Rank based commands
Post by: TheNumbLock on February 07, 2016, 10:47:19 AM
Maybe, but not too sure.
Title: Re: Point Rank based commands
Post by: TheRealAlixe on February 08, 2016, 04:09:01 PM
Maybe, but not too sure.

they can be but only once :P