Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leafney/rose-notify
Webhook-based message notification service (基于webhook的消息通知服务)
https://github.com/leafney/rose-notify
bark chanify dingtalk feishu go-toolkit golang pushdeer rose telegram workwechat
Last synced: about 1 month ago
JSON representation
Webhook-based message notification service (基于webhook的消息通知服务)
- Host: GitHub
- URL: https://github.com/leafney/rose-notify
- Owner: leafney
- License: mit
- Created: 2022-10-09T01:30:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-30T10:15:58.000Z (over 1 year ago)
- Last Synced: 2024-11-14T20:16:58.513Z (3 months ago)
- Topics: bark, chanify, dingtalk, feishu, go-toolkit, golang, pushdeer, rose, telegram, workwechat
- Language: Go
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rose-notify
**Webhook-based message notification service**
----
## Support
- [x] DingTalk
- [x] FeiShu
- [x] WoChat (企业微信)
- [x] Bark
- [x] Chanify
- [x] PushDeer
- [x] Slack
- [x] 息知
- [x] Telegram
- [ ] Discord| method | default host | custom host | need token/key | support secret | support text | support title | support markdown | details |
|--------| --- |-------------|--------| --- | --- | --- | --- |------------------------------|
| DingTalk | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | [README](dingtalk/README.md) |
| FeiShu | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ | ❌ | [README](feishu/README.md) |
| WoChat | ✅ | ❌ | ✅ | ❌ | ✅ | ❌ | ✅ | [README](wochat/README.md) |
| Bark | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | [README](bark/README.md) |
| Chanify | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | [README](chanify/README.md) |
| PushDeer | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | [README](pushdeer/README.md) |
| 息知 | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ✅ | [README](xizhi/README.md) |
| Slack | ✅ | ❌ | ✅ | ❌ | ✅ | ❌ | ❌ | [README](slack/README.md) |
| Telegram | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | [README](telegram/README.md) |----
## How to use
### single support
```go
func main() {
// initialization
bot := NewDingTalk("token")
// Chain call to set secret
bot.SetDebug(true).UseSecret("secret")// Call the generic method
err := bot.SendText("Hello World!")
// call unique method
err := bot.SendTextAt("hello", []string{}, true)// Use the new token to call the general method
err := bot.UseToken("another token").SendText("你好")
}
```### Multiple support
```go
func main() {
// use dingtalk :
n := dingtalk.NewDingTalk("token").UseSecret("secret")
// or use bark :
n := bark.NewBark("token").SetDebug(true).SetAutoCopy(true)
// or use slack :
n := slack.NewSlack("token")
ner := NewNotify(n)
if err := ner.SendNotify("Hello World!"); err != nil {
t.Log(err)
}
}```
----