Skip to main content

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

outgoing_webhook = "your url"
instance = synochat.instance()

@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

@instance.message(alias='arguments', arguments=5) #can have unlimited arguments
def return_test(message, arg1, arg2, arg3, arg4, arg5):
    return arg1 + arg2 + arg3 + arg4 + arg5

# ... (other message handlers)

synochat.run_bot(instance, outgoing_webhook, incomming_webhook_token)

Post arguments like this: arguments arg1data:::arg2data:::arg3data:::arg4data:::arg5data

Metadata

Release files for synochatbot 2.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for synochatbot 2.8
File Size Uploaded
synochatbot-2.8.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for synochatbot 2.8
File Interpreter ABI Platform
synochatbot-2.8-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / synochatbot-2.8.tar.gz

Download URL synochatbot-2.8.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
07c995307836b71ced84508fa54f4df01beffb9da6fee086bb7c19968d57be97
BLAKE2b-256 checksum
How to use checksums
6aa51472d11f319df3698d8dcd28e1c06415d3584925e4c6a6dc924ccf193bef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.3

Release files / synochatbot-2.8-py3-none-any.whl

Download URL synochatbot-2.8-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
672450a6d1d992cbb05a66420f9745ac108ca336fe8ea557adcc3d5c9631f6f4
BLAKE2b-256 checksum
How to use checksums
3dbd0a08b25b93a7655c9b4a9cb2deec7b8307d9a9c83738cac263def841ce32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.3

Release history Release notifications | RSS feed

This release

2.8 This release

2 release files

2.7

1 release file

2.6

2 release files

2.5

2 release files

2.4

2 release files

2.3

2 release files

2.2

2 release files

2.1

2 release files

2.0

2 release files

1.9

2 release files

1.8

2 release files

1.7

2 release files

1.6

2 release files

1.5

2 release files

1.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page