anjanms / DubAPI

A Node.js API for creating queup.net bots.
MIT License
20 stars 10 forks source link

Add hasPermission() method for DubAPI prototype #7

Closed avatarkava closed 8 years ago

avatarkava commented 8 years ago

Ref #6

Basic usage example:

if (bot.hasPermission(bot.getUser(userid), 'skip') { 
   // do something here
}