lxmf-bot/example.py

9 lines
125 B
Python
Raw Permalink Normal View History

2023-05-19 11:05:53 +03:00
from lxmfbot import LXMFBot
2023-05-24 00:41:10 +03:00
bot = LXMFBot("testbot")
2023-05-19 11:05:53 +03:00
@bot.received
def echo_msg(msg):
msg.reply(msg.content)
bot.run()