Skip to content

Aveygo/LXMKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LXMKit

A stupid simple toolkit to build & host Nomadnet bots

pip install git+https://github.com/Aveygo/LXMKit.git
from LXMKit.app import LXMFApp, Message
from LXMKit.mu import Micron, Paragraph

import RNS

app = LXMFApp(app_name="demo")

@app.request_handler("/page/index.mu")
def sample(path:str, link:RNS.Link):
    return Micron([
        Paragraph("Hello World!")
    ]).build()

@app.delivery_callback
def delivery_callback(message: Message):
    if message.content == "ping":
        message.author.send("pong")

if __name__ == "__main__":
    app.run()

TODO

  • Better form management (still possible in the path)

About

A stupid simple toolkit to build & host Nomadnet bots

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages