fix: Naming issue
This commit is contained in:
parent
ee96e79f34
commit
84f6d93740
@ -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):
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user