From b4ece4fc512782213bdb7782beff63bdcbeeae2f Mon Sep 17 00:00:00 2001 From: "R. Richard" Date: Wed, 28 Aug 2019 16:31:06 +0200 Subject: [PATCH] Refactor API message format --- solvable/src/custom_handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solvable/src/custom_handlers.py b/solvable/src/custom_handlers.py index 1d022fb..4c5c0d3 100644 --- a/solvable/src/custom_handlers.py +++ b/solvable/src/custom_handlers.py @@ -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')