Skip to main content

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

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

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

synochatbot-2.8.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

synochatbot-2.8-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file synochatbot-2.8.tar.gz.

File metadata

  • Download URL: synochatbot-2.8.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.3

File hashes

Hashes for synochatbot-2.8.tar.gz
Algorithm Hash digest
SHA256 07c995307836b71ced84508fa54f4df01beffb9da6fee086bb7c19968d57be97
MD5 52560689f075bff4051ece11982d2ae7
BLAKE2b-256 6aa51472d11f319df3698d8dcd28e1c06415d3584925e4c6a6dc924ccf193bef

See more details on using hashes here.

File details

Details for the file synochatbot-2.8-py3-none-any.whl.

File metadata

  • Download URL: synochatbot-2.8-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.3

File hashes

Hashes for synochatbot-2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 672450a6d1d992cbb05a66420f9745ac108ca336fe8ea557adcc3d5c9631f6f4
MD5 391e1439a5c9a03d81f4b26118b8fec2
BLAKE2b-256 3dbd0a08b25b93a7655c9b4a9cb2deec7b8307d9a9c83738cac263def841ce32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page