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: added calculation of user score #280

Merged
merged 4 commits into from
Mar 20, 2022
Merged

feat: added calculation of user score #280

merged 4 commits into from
Mar 20, 2022

Conversation

pjonatansr
Copy link
Collaborator

That PR is a part of #270.
After that, I think that the follow tasks are done:

  • twitter oauth
  • user login using twitter
  • compute the score of tweets like, rt, replies

Important:

  • It's just a function with the base calculation of the user score.
  • It isn't showing the score in anywhere besides the console.
  • It's just the twitter API request for authenticated user's tweets

Feel free to continue that task if you want to create the page to users claim discord access.

@vercel
Copy link

vercel bot commented Mar 20, 2022

Someone is attempting to deploy a commit to a Personal Account owned by @sibelius on Vercel.

@sibelius first needs to authorize it.

const isReplied = text.match(
new RegExp(`@${currentUser} @sseraphini`, 'gi'),
);
const isReplyingToUser = in_reply_to_user_id === '2313873457';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this about?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"2313873457" === Your twitter profile Id

I think we can put it in another file like constants or something.
What do you think?

@sibelius sibelius merged commit 2633a18 into sibelius:main Mar 20, 2022
@vercel
Copy link

vercel bot commented Mar 20, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/sibelius/ccsseraphini/9DFpCe3Bw7C1gqYwRYnTDwFukz8f
✅ Preview: Failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants