Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - DreadfullyDespized

Pages: [1]
1
Feature Requests / 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.
}

Pages: [1]