1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-12-04 18:51:32 +00:00

Refactor API message format

This commit is contained in:
R. Richard 2019-08-28 16:31:06 +02:00
parent 21cfaebe8a
commit b4ece4fc51

View File

@ -12,7 +12,7 @@ class CenatorHandler:
keys = ['history.bash']
def handle_event(self, message, connector): # pylint: disable=no-self-use
command = message['value']
command = message['command']
LOG.debug('User executed command: "%s"', command)
MessageSender(connector).send(f'You\'ve executed "{command}"', originator='JOHN CENA')