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.1.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file quinnat-1.0.1.tar.gz
.
File metadata
- Download URL: quinnat-1.0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 852e6a8e2be1b19a44a660c8e915e56f575902c844356b02e706118dfa886714 |
|
MD5 | d33b7b77c469d44744d52edd566c77b5 |
|
BLAKE2b-256 | 65370acfc2a43b1dcd97b1f65d3c03b2a0cd9cc4223dbf42404a5f360dd3fafa |
File details
Details for the file quinnat-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: quinnat-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e942bb2fc8d69234ea7822b9c6ff498e08761a886c5ed0d24b5d2a7fa82c09d7 |
|
MD5 | ad79e5b7ba900741f3806d60df0f3844 |
|
BLAKE2b-256 | 99602faf811ca0033ded32efdaba8c20f903a454866f954e23c243303c04af85 |