Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 555 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 555 Bytes

Quinnat

Quinnat is a library for building urbit chatbots, built with Urlock.

Here's how to use it:

#!/usr/bin/python

import quinnat

q = quinnat.Quinnat(
    "http://localhost:8080", # or wherever your ship is running
    "sampel-palnet",
    "your-+code-here",
)

q.connect()

q.post_message("palnet-sampel", "my-chat-1234", {"text": "Hello world!"})

def say_hello(message, replier):
    if "hello bot" in message.full_text:
        replier({"text": "Hello " + message.author})

q.listen(say_hello)