This commit is contained in:
michaelachrisco 2024-06-07 15:18:35 -07:00
parent 466e100fd9
commit 34e6b9e9ae

View file

@ -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__':