ccsseraphini icon indicating copy to clipboard operation
ccsseraphini copied to clipboard

feat(sseraticles): post approved articles on #sserarticles channel

Open EmanuelCampos opened this issue 2 years ago • 2 comments

Feature Request

To facilitate the view of the articles on the server, and the retweet let's share the approved articles tweet on #sserarticles channel on Discord.

EmanuelCampos avatar Jan 09 '23 12:01 EmanuelCampos

snippet to get the tweet url

const tweet = async (url: string) => {
  try {
    const tweet = await client.v1.tweet(url, {});
    const tweetUrl = `https://twitter.com/${tweet.user.screen_name}/status/${tweet.id_str}`;

    return {
      ok: true,
      tweetUrl
    };
  } catch (error) {
    return error;
  }
};

EmanuelCampos avatar Jan 09 '23 12:01 EmanuelCampos

I'll do this

MarcusXavierr avatar Jan 13 '23 15:01 MarcusXavierr