refactor: Fix obsolete use of send_message_wrapper

This commit is contained in:
PapaTutuWawa 2021-06-13 20:01:18 +02:00
parent 84f6d93740
commit 9bd218b201

View File

@ -37,7 +37,7 @@ class TestModule(BaseModule):
async def on_command(self, cmd, msg):
greeting = self.get_option('greeting', 'OwO, %%user%%!').replace('%%user%%', str(msg.from_.bare()))
self._base.send_message_wrapper(msg.from_, greeting)
self.send_message(msg.from_, greeting)
def get_instance(base, **kwargs):
return TestModule.get_instance(base, **kwargs)