simplify
This commit is contained in:
parent
466e100fd9
commit
34e6b9e9ae
1 changed files with 5 additions and 4 deletions
|
@ -59,10 +59,11 @@ class EchoBot(slixmpp.ClientXMPP):
|
|||
"""
|
||||
if msg['type'] in ('chat', 'normal'):
|
||||
message = msg['body']
|
||||
if 'mesh_send:' in message:
|
||||
msg.reply(f"Sent to Mesh: {message}").send()
|
||||
if 'irc_send:' in message:
|
||||
msg.reply(f"Sent to IRC {message}").send()
|
||||
print(message)
|
||||
if 'mesh_send' in message:
|
||||
msg.reply(f"Sent to Mesh: {message.replace('mesh_send', '')}").send()
|
||||
if 'irc_send' in message:
|
||||
msg.reply(f"Sent to IRC: {message.replace('irc_send', '')}").send()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in a new issue