Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
EmanuelCampos opened this issue Jan 9, 2023 · 2 comments
Open
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed sserarticles

Comments

@EmanuelCampos
Copy link
Collaborator

EmanuelCampos commented Jan 9, 2023

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 EmanuelCampos added help wanted Extra attention is needed good first issue Good for newcomers sserarticles labels Jan 9, 2023
@EmanuelCampos
Copy link
Collaborator Author

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;
  }
};

@MarcusXavierr MarcusXavierr self-assigned this Jan 13, 2023
@MarcusXavierr
Copy link
Collaborator

I'll do this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed sserarticles
Projects
None yet
Development

No branches or pull requests

2 participants