A discord.py like thing but for synology chat
Project description
A python library like discord.py but for synology chat.
It allows you to create a bot that can be used to respond to messages in synology chat.
Install:
pip install synochatbot
Usage:
import synochatbot as synochat
import time
time.sleep(1)
outgoing_webhook = "your url"
instance = synochat.instance(prefix="?")
@instance.message(alias="hi")
def say_hi(message):
return ('Hi!')
@instance.message(alias='return_test')
def return_test(message, command=None):
return message.username
# ... (other message handlers)
synochat.run_bot(instance, outgoing_webhook, incomming_webhook_token)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
synochatbot-1.5.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for synochatbot-1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecefdd257101fcd440bcc643f37cf240c48ecb42ae055bc0855e31b24e4cbe49 |
|
MD5 | 9fcfc604c34e67c71818c0ddf155338c |
|
BLAKE2b-256 | 2a9e1f0f622f4d29900e0c220242ebc2f8e0cac83979b5aede2d3d90711e8f7c |