From 84f6d9374090d4d38d34e67010263d235ed21039 Mon Sep 17 00:00:00 2001 From: Alexander PapaTutuWawa Date: Sun, 13 Jun 2021 19:37:54 +0200 Subject: [PATCH] fix: Naming issue --- mira/base.py | 2 +- mira/module.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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))