Sending message notification to Discord
Project description
TP-sendNotify
Installation
From PyPI:
pip install TP-sendNotify
From Source:
git clone https://github.com/truocphan/TP-sendNotify.git --branch <Branch/Tag>
cd TP-sendNotify
python setup.py build
python setup.py install
Basic Usage
The default configuration file created at ~/.TPConfig/sendNotify.json has the following content:
{
"Discord": {
"BOT_NAME": {
"webhook_url": "https://discord.com/api/webhooks/WEBHOOK_ID/WEBHOOK_TOKEN"
},
...
}
}
toDiscord(bot_name, message, SidebarColor=None, ConfigFile=None)
Sending message notification to Discord channel
import TP_sendNotify
TP_sendNotify.toDiscord("BOT_NAME", "This message notification has been sent to the Discord channel using TP-sendNotify", SidebarColor=13370624)
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file TP-sendNotify-2024.8.25.tar.gz.
File metadata
- Download URL: TP-sendNotify-2024.8.25.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
085bbb1a19caa8afc912ab143af9625a950b16f309f5a8e7959a504021e18b02
|
|
| MD5 |
e8c65044c7d60e2c747d7d1bd616f577
|
|
| BLAKE2b-256 |
6e214778ea2769ebaf904568182e01b1e9560c5beba19f6643f51f882639d4d4
|
File details
Details for the file TP_sendNotify-2024.8.25-py3-none-any.whl.
File metadata
- Download URL: TP_sendNotify-2024.8.25-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fe5531d51ac2f7781d0f5dcee30862cb48bab1c95e836dabf165e9134d53893
|
|
| MD5 |
fbc86a618154f1d6f8a90ee3b7f3a67c
|
|
| BLAKE2b-256 |
90670ce930d20f00887ae6d4b827f620d2ff1b9ca40099e710c776f24a8bfbcf
|
File details
Details for the file TP_sendNotify-2024.8.25-py2-none-any.whl.
File metadata
- Download URL: TP_sendNotify-2024.8.25-py2-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22b6a230b996b144cab616caf84cc08826eecd59cfc098f161e997c14f344b69
|
|
| MD5 |
b4ec884696379eb144338f73985e936b
|
|
| BLAKE2b-256 |
da2c67f18853535b5afa580ada598fcff777f452c0a29f13ec4eb24082c87d7d
|