

class ModuleInterface(object):
    triggers = []
    acceptedTypes = ['PRIVMSG']
    help = '<no help defined (yet)>'
    accessLevel = 1

    def __init__(self, bot):
        self.bot = bot
        self.onLoad()

    def onLoad(self):
        pass

    def onUnload(self):
        pass

    def shouldTrigger(self, message):
        if message.Type not in self.acceptedTypes:
            return False
        if message.Command not in self.triggers:
            return False

        return True

    def onTrigger(self, message):
        pass


class ModuleAccessLevels(object):
    ANYONE = 1
    ADMINS = 2


class ModuleInterface(object):
    triggers = []
    acceptedTypes = ['PRIVMSG']
    help = '<no help defined (yet)>'
    accessLevel = ModuleAccessLevels.ANYONE

    def __init__(self, bot):
        self.bot = bot
        self.onLoad()

    def onLoad(self):
        pass

    def onUnload(self):
        pass

    def shouldTrigger(self, message):
        if message.Type not in self.acceptedTypes:
            return False
        if message.Command not in self.triggers:
            return False

        return True

    def onTrigger(self, message):
        pass


class ModuleAccessLevels(object):
    ANYONE = 1
    ADMINS = 2
Revert "[Core] Okay maybe this?"
Revert "[Core] Okay maybe this?"

This reverts commit 1fda217b32310c0db4e3a5e5b337071eeee376d1.

  
  
  class ModuleInterface(object):
      triggers = []
      acceptedTypes = ['PRIVMSG']
      help = '<no help defined (yet)>'
-     accessLevel = 1
+     accessLevel = ModuleAccessLevels.ANYONE
  
      def __init__(self, bot):
          self.bot = bot
          self.onLoad()
  
      def onLoad(self):
          pass
  
      def onUnload(self):
          pass
  
      def shouldTrigger(self, message):
          if message.Type not in self.acceptedTypes:
              return False
          if message.Command not in self.triggers:
              return False
  
          return True
  
      def onTrigger(self, message):
          pass
  
  
  class ModuleAccessLevels(object):
      ANYONE = 1
      ADMINS = 2
Revert "[Core] Okay maybe this?"
## Code Before:


class ModuleInterface(object):
    triggers = []
    acceptedTypes = ['PRIVMSG']
    help = '<no help defined (yet)>'
    accessLevel = 1

    def __init__(self, bot):
        self.bot = bot
        self.onLoad()

    def onLoad(self):
        pass

    def onUnload(self):
        pass

    def shouldTrigger(self, message):
        if message.Type not in self.acceptedTypes:
            return False
        if message.Command not in self.triggers:
            return False

        return True

    def onTrigger(self, message):
        pass


class ModuleAccessLevels(object):
    ANYONE = 1
    ADMINS = 2
## Instruction:
Revert "[Core] Okay maybe this?"
## Code After:


class ModuleInterface(object):
    triggers = []
    acceptedTypes = ['PRIVMSG']
    help = '<no help defined (yet)>'
    accessLevel = ModuleAccessLevels.ANYONE

    def __init__(self, bot):
        self.bot = bot
        self.onLoad()

    def onLoad(self):
        pass

    def onUnload(self):
        pass

    def shouldTrigger(self, message):
        if message.Type not in self.acceptedTypes:
            return False
        if message.Command not in self.triggers:
            return False

        return True

    def onTrigger(self, message):
        pass


class ModuleAccessLevels(object):
    ANYONE = 1
    ADMINS = 2