From 0361092f37f685d251e7d9f1a724b829ac006630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 14 Mar 2018 10:49:32 +0100 Subject: [PATCH] Simplify MessageSender usage in cenator --- src/demo/event_handler_main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/demo/event_handler_main.py b/src/demo/event_handler_main.py index 69d2fd8..5cdefdc 100644 --- a/src/demo/event_handler_main.py +++ b/src/demo/event_handler_main.py @@ -10,9 +10,8 @@ log = logging.getLogger(__name__) def cenator(history): - message_sender = MessageSender() log.debug('User executed command: "{}"'.format(history[-1])) - message_sender.send('JOHN CENA', 'You\'ve executed "{}"'.format(history[-1])) + MessageSender().send('JOHN CENA', 'You\'ve executed "{}"'.format(history[-1])) if __name__ == '__main__':