If you want to write Discord bot, there are several options for getting started. I'll describe what I checked when I started looking at that.
Note
This article was written in 2018. It stays here for archiving purposes.
If you want your app to post messages to Discord, you can do it with webhooks. Check if your app supports sending requests to webhooks and follow the instructions provided.
Below, you can discover the format required by Discord. Based on the examples, you should be able to adjust it to your needs.
My first attempt was based on Mark Ramsey's article. If you happen to follow Tweets of specific user and post them to your Discord, read it and you're done. However, if you need to do anything else (i.e reposting top Reddit posts from specific sub, getting weather alerts etc.), follow this tutorial.
First, go to creating new applet page on IFTTT. Choose the service:
and specific action (I chose post upvote as it's easy to trigger for testing)
Once you configured the trigger, go to action configuration:
Your actions service will be
Webhooks
In
URL
POST
GET
Content Type
application/json
There are two options for formatting your message. The simpler one is to just fill username and content for example with this:
{ "username":"New post", "content":"{{Title}} by {{Author}}" }
which would result in such message:
You can use the dropdown
Add ingredient
If you want, you can also create rich embed (you can take example from here and adjust it to your needs).
Once you're done with the configuration, click
Create action
Finish
Now you just need to upvote something using your account. You might sometimes use
Check now