# DMessage
DMessage 是一個簡單的 Python 套件,透過 webhook 發送訊息到 Discord 的 channel。
## 安裝
```bash
pip install dmessage
```
## 使用
```python
import os
from dmessage import DMessage
os.environ["WEBHOOK_URL"] = "YOUR_WEBHOOK_URL"
dm = DMessage()
dm.send("Hello, World!")
```
Raw data
{
"_id": null,
"home_page": "https://github.com/ChengTze-Wu/DMessage",
"name": "dmessage",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.12",
"maintainer_email": null,
"keywords": "discord, message, sender, webhook, notification",
"author": "ChengTze-Wu",
"author_email": "yaoop3050777@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/00/2a/ca1ad7f9a42c339627e7d53b20f3fe53bc5125ac3e3a14fd4a5fbc42cad5/dmessage-0.2.1.tar.gz",
"platform": null,
"description": "# DMessage\n\nDMessage \u662f\u4e00\u500b\u7c21\u55ae\u7684 Python \u5957\u4ef6\uff0c\u900f\u904e webhook \u767c\u9001\u8a0a\u606f\u5230 Discord \u7684 channel\u3002\n\n## \u5b89\u88dd\n\n```bash\npip install dmessage\n```\n\n## \u4f7f\u7528\n\n```python\nimport os\nfrom dmessage import DMessage\n\nos.environ[\"WEBHOOK_URL\"] = \"YOUR_WEBHOOK_URL\"\n\ndm = DMessage()\ndm.send(\"Hello, World!\")\n```",
"bugtrack_url": null,
"license": null,
"summary": "A simple message sender for Discord. It can send messages to a channel through a webhook.",
"version": "0.2.1",
"project_urls": {
"Bug Tracker": "https://github.com/ChengTze-Wu/DMessage/issues",
"Homepage": "https://github.com/ChengTze-Wu/DMessage",
"Repository": "https://github.com/ChengTze-Wu/DMessage"
},
"split_keywords": [
"discord",
" message",
" sender",
" webhook",
" notification"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c97ae632c14abea93114d68c88de45b64aff7897d984e066fac65ed7b64fb032",
"md5": "7b6d3b8d22015fdf4e7aeea629cd3ae7",
"sha256": "27daead861f3c6e3d359ee852bccfd3841f5e12546668b880c6fbf28397fbd6a"
},
"downloads": -1,
"filename": "dmessage-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7b6d3b8d22015fdf4e7aeea629cd3ae7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.12",
"size": 2281,
"upload_time": "2024-07-22T12:36:57",
"upload_time_iso_8601": "2024-07-22T12:36:57.286850Z",
"url": "https://files.pythonhosted.org/packages/c9/7a/e632c14abea93114d68c88de45b64aff7897d984e066fac65ed7b64fb032/dmessage-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "002aca1ad7f9a42c339627e7d53b20f3fe53bc5125ac3e3a14fd4a5fbc42cad5",
"md5": "19d508147f43b9854b1354d7865279ed",
"sha256": "ae5dadd6b2982086869b92373eceb42143d960bff33199ac48bc47020927aa20"
},
"downloads": -1,
"filename": "dmessage-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "19d508147f43b9854b1354d7865279ed",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.12",
"size": 1680,
"upload_time": "2024-07-22T12:36:58",
"upload_time_iso_8601": "2024-07-22T12:36:58.319056Z",
"url": "https://files.pythonhosted.org/packages/00/2a/ca1ad7f9a42c339627e7d53b20f3fe53bc5125ac3e3a14fd4a5fbc42cad5/dmessage-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-22 12:36:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ChengTze-Wu",
"github_project": "DMessage",
"github_not_found": true,
"lcname": "dmessage"
}