fix: Naming issue

This commit is contained in:
PapaTutuWawa 2021-06-13 19:37:54 +02:00
parent ee96e79f34
commit 84f6d93740
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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))