News:

Join the Facebook Fan Page.

Main Menu

Discord webhook?

Started by Halian, June 09, 2017, 11:59:57 PM

Previous topic - Next topic

Halian

Is there any way to add a Discord webhook to 2.0.13 or 2.0.14, so my website's Discord server gets a post every time someone posts to its forum?

Kindred

why would you do that to your users?


but, more seriously - there is always a way - if you can code it. However, to the best of my knowledge, no one has done so
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor

Because there is value in having it as an opt in channel like you can do in Discord, it has APIs for such things and maybe rebroadcasting especially for announcements, has value.
Holder of controversial views, all of which my own.


Antes

SMF does not have any webhook ready for its RSS but there is a workaround for it.

You can call this bot to your channel: https://www.reddit.com/r/discordapp/comments/5n9l6w/discordrss_an_rss_bot/ then you can add your forum's (or blog's) feed to it (it has 5 rss limit per/channel). You can find many customization options in it but I'm no expert on that so its best for you to read the reddit link. If you need more information related to SMF's RSS output you can read this topic.

One small thing if your feed does not have ;type=rss / rss2 / atom / rdf in the end (or in any condition) RSS Bot cannot validate it. So make sure your link (feed) contains type in it (only for SMF).

So in my test I used this board 's news section, you can see the end result at attachment.
http://www.simplemachines.org/community/index.php?action=.xml;sa=news;board=1;type=rss

Advertisement: