mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-23 09:01:57 +00:00
Simplify MessageSender usage in cenator
This commit is contained in:
parent
7ae3180aba
commit
0361092f37
@ -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__':
|
||||
|
Loading…
Reference in New Issue
Block a user