Skip to main content

Library for building chatbots on urbit

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quinnat-1.0.5.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

quinnat-1.0.5-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page