diff --git a/mira/base.py b/mira/base.py index 03bd222..6a54265 100644 --- a/mira/base.py +++ b/mira/base.py @@ -117,7 +117,7 @@ class MiraBot: ' module that is restricted to whitelisted users only') return - self._modules[cmd[0]].__on_command(cmd[1:], message) + self._modules[cmd[0]]._base_on_command(cmd[1:], message) # Module Function: Send message def send_message(self, message): diff --git a/mira/module.py b/mira/module.py index 7397313..9c3ae59 100644 --- a/mira/module.py +++ b/mira/module.py @@ -74,7 +74,7 @@ class BaseModule: ''' self._base.send_message_wrapper(to, body) - def __on_command(self, cmd, msg): + def _base_on_command(self, cmd, msg): def run(func): loop = asyncio.get_event_loop() loop.create_task(func(cmd, msg))