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="return_full_message")
def say_hi(message):
return message
@instance.message(alias='return_username')
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-2.1.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for synochatbot-2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07d6a1bd73b168a9061c4f940c25b128c20f5006352310e0c4fb0db654aa423f |
|
MD5 | 88b2fca126b9331022dcc9d557226c40 |
|
BLAKE2b-256 | 1095d01c407a9bb5a64dee72fc38e8c8c522cb0cd2c44d3fbff965a3e1064fbf |