Is it possible for me to add variables or a way to automatically edit a timer?

Asked Oct 21, 2021·3 replies·Last activity 4 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

I want to add a timer message which sends the link of for example the most recent tweet of someone, is it possible to do this by variables or do i need to always do it by hand

3 replies

While I don’t know of any Twitter apis that do that I recommend searching for that to see if you can find one that can return the link to a latest tweet or possibly the tweet itself. If none exist then manual is really the only option.

Hey @Jumpy Llama!

There's an API for it:

https://decapi.me/twitter/latest_url?name=TWITTER_USERNAME

To use it simply put it in an $(urlfetch) and update the TWITTER_USERNAME:

$(urlfetch https://decapi.me/twitter/latest_url?name=Cattoh)

You can also have the latest Tweet instead of just the URL by using latest instead of latest_url.
Documentation link

I also want to mention that if you want both the tweet content/text and the tweet URL, you can do something like:

$(urlfetch https://decapi.me/twitter/latest?name=TWITTER_USERNAME&url=1)