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.4.tar.gz
(3.3 kB
view hashes)