Skip to content

Commit

Permalink
LabHub: Use activate instead of init
Browse files Browse the repository at this point in the history
__init__ is executed at load time and
and any issue in the plugin will lead
to it not showing up.
LifeCycle: __init__->configured->enable

Closes #554
  • Loading branch information
nvzard committed Aug 2, 2018
1 parent 7179622 commit c783ebe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/labhub.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class LabHub(BotPlugin):
GH_ORG_NAME = constants.GH_ORG_NAME
GL_ORG_NAME = constants.GL_ORG_NAME

def __init__(self, bot, name=None):
super().__init__(bot, name)
def activate(self):
super().activate()

teams = dict()
try:
Expand Down

0 comments on commit c783ebe

Please sign in to comment.