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 "Hello"
# ... (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.4.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for synochatbot-1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 205138b6ef0d8af12501cd60a447e847db82ccde6a2a745511120c27a63b57f7 |
|
MD5 | 8c22f051428e42494512682ac2bad42c |
|
BLAKE2b-256 | eb9ec73d2b73a677941d4995904fa5837002f89a09a94a5431e037f96a0a2cfb |