import GlobalVars


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

    def __init__(self):
        self.onStart()

    def onStart(self):
        pass

    def hasAlias(self, message):
        if message.Type in self.acceptedTypes and message.Command in GlobalVars.commandAliases.keys():
            return True

    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, Hubbot, message):
        pass
import GlobalVars


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

    def __init__(self):
        self.onStart()

    def onStart(self):
        pass

    def hasAlias(self, message):
        if message.Type in self.acceptedTypes and message.Command in GlobalVars.commandAliases.keys():
            return True
        else:
            return False

    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, Hubbot, message):
        pass
Return false if no alias.
[ModuleInteface] Return false if no alias.

  import GlobalVars
  
  
  class ModuleInterface(object):
      triggers = []
      acceptedTypes = ['PRIVMSG']
      help = '<no help defined (yet)>'
  
      def __init__(self):
          self.onStart()
  
      def onStart(self):
          pass
  
      def hasAlias(self, message):
          if message.Type in self.acceptedTypes and message.Command in GlobalVars.commandAliases.keys():
              return True
+         else:
+             return False
  
      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, Hubbot, message):
          pass
Return false if no alias.
## Code Before:
import GlobalVars


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

    def __init__(self):
        self.onStart()

    def onStart(self):
        pass

    def hasAlias(self, message):
        if message.Type in self.acceptedTypes and message.Command in GlobalVars.commandAliases.keys():
            return True

    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, Hubbot, message):
        pass
## Instruction:
Return false if no alias.
## Code After:
import GlobalVars


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

    def __init__(self):
        self.onStart()

    def onStart(self):
        pass

    def hasAlias(self, message):
        if message.Type in self.acceptedTypes and message.Command in GlobalVars.commandAliases.keys():
            return True
        else:
            return False

    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, Hubbot, message):
        pass