T
tscircuit•8mo ago
Seve

discord roles for contributors

maybe something like this: - New Contributor - Contributor - Try Hard - Hero - King - Legend
42 Replies
om
om•8mo ago
Weekly Role Thresholds: ==================== šŸ‘‘šŸ‘‘: 100+ points šŸ‘‘: 75+ points ⭐⭐⭐: 50+ points ⭐⭐: 30+ points ⭐: 10+ points All-Time Role Thresholds: ===================== Legend: 100+ points King: 75+ points Hero: 50+ points Try Hard: 30+ points Contributor: 10+ points New Contributor: 3+ points am trying out with clg now will see tmrw about discord integration
om
om•8mo ago
No description
om
om•8mo ago
No description
om
om•8mo ago
I like King @ansh.grover šŸ™‚
ansh.grover
ansh.grover•8mo ago
@om me too, due to college not in my best form.šŸ˜‚ but yeah soon, i will
om
om•8mo ago
If anybody knows about discord can do these I think Seve have to create roles beforehand then bot will add/remove them every wed
DOPĪ£
DOPΣ•8mo ago
The main question is how can we find discord profile by GitHub username?
Seve
SeveOP•8mo ago
Ah yea we do need that…
DOPĪ£
DOPΣ•8mo ago
Is this workflow alright if I work in this issue? User → Go to sync page on contribution tracker website → Login with Discord oauth with connections info → Data sent to backend private api → Save githubusername with corresponding discord username in users.json → Commits newly users.json on Repo Directly/Database → Workflow runs everyweek initiates script → Script processes contribution scores of last week → Matches users.json → Update discord roles by discord authorised custom guild bot → āœ…
ansh.grover
ansh.grover•8mo ago
@Seve @DOPĪ£ /register github:yourgithubusername we can create a Discord bot command for users to register their GitHub username
DOPĪ£
DOPΣ•8mo ago
/register GitHub:ansh.grover What if I chose you username
ansh.grover
ansh.grover•8mo ago
@DOPĪ£ it has some verification system yeah
DOPĪ£
DOPΣ•8mo ago
The only way to verify GitHub account is by discord connections And for that we need oauth
Seve
SeveOP•8mo ago
I like the idea of /register to keep it simple We can use oauth to verify people if we get bigger
ansh.grover
ansh.grover•8mo ago
@Seve https://github.com/tscircuit/jlcsearch/issues/27 can we move this issue to the the right repo as you said in meeting it is in wrong repo
Seve
SeveOP•8mo ago
/register could also just open a link to a github pr to the contribution tracker so that we can go thru regular github process Its in the right repo
om
om•8mo ago
For auth we have to create an express app and use that in react app Here the issue is we have to run bot all the time I was thinking of running just before the meet or after every wed
Seve
SeveOP•8mo ago
Where possible we should deploy to vercel, or have a github action. I think /register could hit a vercel endpoint Express is not serverless so kind of annoying to run
om
om•8mo ago
Yeah have to think something else For now let's just keep a json file which maps usernames from GitHub to discord I will try to create a pr tonight In uni ... @DOPĪ£ will continue this maybe my potato research not help
DOPĪ£
DOPΣ•8mo ago
Is this final?
om
om•8mo ago
Yeah
DOPĪ£
DOPΣ•8mo ago
@Seve button is for if someone wants to add there discord account with corresponding GitHub username It's redirects to discord oauth where on server user discord and GitHub connection is matched and automatically creats pr to add user discord id & GitHub username to codebase Do we need to remove it?
No description
DOPĪ£
DOPΣ•8mo ago
Like this
No description
Seve
SeveOP•8mo ago
Yea lets put it at the bottom and rename it to something like ā€œConnect my discord account to contributionsā€, also im not sure we need all the oauth- they could just type in their discord name and their github name? Im glad you understand how all the oauth works but auth is annoying to maintain and has a bit of a security risk
DOPĪ£
DOPΣ•8mo ago
Umm what if somebody for trolling add your user name others username and random discord or any typos? Do we need to check one by one?
Seve
SeveOP•8mo ago
It would be a good day when we have too many requests, no need to scale too early
om
om•8mo ago
what if one mod does that [internally] like its job of mod to do community stuff isnt it also cant we access github from discord account maybe check this aspect too like I have connected
DOPĪ£
DOPΣ•8mo ago
So I'm removing ui changes, only workflow and script, is everything else alright for merge? Ummm idk that would be ease for me I don't need to fix any issues on ui, idk
Seve
SeveOP•8mo ago
Should we still have a button at the bottom so people know what to do? (How to connect?)
DOPĪ£
DOPΣ•8mo ago
Button and bottom, redirecting to readme saying how to link discord and GitHub? Should I do it?
Seve
SeveOP•8mo ago
Ya sg
DOPĪ£
DOPΣ•8mo ago
🫠 will try to do if my laptop wakes, Thanks for review
Seve
SeveOP•8mo ago
For sure, code looks good but fwiw we should only start counting all time roles starting this week, some weeks in the past have inflated data
ansh.grover
ansh.grover•8mo ago
@Seve so this means if previous someone had worked hard as their ass off it does not mean to you anything just askingšŸ˜…
Seve
SeveOP•8mo ago
Ansh we dont make money right now So the value of everything everyone has done is $0 in the market We have a long way to go 😁
DOPĪ£
DOPΣ•8mo ago
It would get latest file data only, like if you merge rn, and in next run suppose on Wednesday, it would take latest week data ie this week's data Ps - don't merged rn I'll wix asap as soon as ass wakes up
om
om•8mo ago
Thats why I am confident in my code
ansh.grover
ansh.grover•8mo ago
yes, but then what is the role of this thing if it does not mean anything like i see this as new contributor who comes here judge with this roles. you are right, but then let take example of abse he also called here new contributor from this week because from few previous weeks he is merging like 2 or pr something so our future work does not counted here, thats right. no we have plan on getting crowns but the situation currently not as before as you think we are doing work and will always do as before but i think you misunderstood what i mean to say? @Seve leave it, thanks.!!
Seve
SeveOP•8mo ago
Actually the truth of it is ive hired a lot of people in the past and every time theyve gotten an inflated title too soon it has been a huge problem (think: hiring vp of engineering), since i know the data in the past is broken and can point out examples of inflated metrics, i would be doing the same thing. We have a long journey ahead, so i dont think it makes sense to bias the system (it used to have a 10 day bug!!! That is major inflation!!) plus I would like to start at 0 too and see if i can get the Legend status again 😁
ansh.grover
ansh.grover•8mo ago
@Seve ok make sense.!!!
ansh.grover
ansh.grover•8mo ago
@Seve but only want to point out one thing people can inflate the data you are purely right but not total no of merged prs in previous weeks just want to say. not going to say anything word again after this.
No description
No description

Did you find this page helpful?