caronc / nzb-notify

Push Notifications to a large number of supported services for NZBGet and SABnzbd (based on Apprise)
GNU General Public License v3.0
129 stars 15 forks source link

[Feature Request] Discord support. #35

Closed ghost closed 6 years ago

ghost commented 6 years ago

Would be nice. 👍

caronc commented 6 years ago

Check out the master and have a go at it.

It's documented here on how to do the syntax. But basically you just need to setup a webhook (associated with a channel) and build your url from there.

From the command line i was successful doing the following:

# tts = Text-To-Speech / by default this is off, but for testing it's kind of fun to enable.
#
# The "Websocket_ID" and "Websocket_Token" below is in the format:
#  discord:/Websocket_ID/Websocket_Token?tts=True
#
# You can override the bot name (from it's default) if you specify it on the command
# line too. It uses whatever name you set up if you don't specify it
 ./Notify.py -s discord://override_bot_name@417565656656565298/JHZ7lQml27hghghC1o33Myghghgv7YTpadV_js?tts=True

I'd be interested in your feedback; let me know if i can close this ticket too! :smile:

caronc commented 6 years ago

It's been a week, I'm going to close this issue since it's been completed. But feel free to reach out if you have any other questions or problems!

ghost commented 6 years ago

Works great! Thanks!

Does it support setting a URL for the bot image?

caronc commented 6 years ago

Add ?avatar=Yes to the end of your URL and you should be good to go! :smile:

Edit: oh... Re-reading what you wrote. No, unfortunately you can't set your own custom image. I'm not sure how easy that would be to implement from the url string. But maybe I could add a feature that points to a configuration file where you can add more customization? I'd have to think about that one.

ghost commented 6 years ago

@caronc I'd love to be able to point to a public image online and use that as the avatar. 👍