kossiitkgp / bhattu

A slack bot for bakar on #random
https://bhattu.kossiitkgp.org
5 stars 8 forks source link

Keep txt files in sync with kossiitkgp/secrets/Contacts #15

Open OrkoHunter opened 5 years ago

OrkoHunter commented 5 years ago

It would be an awesome beginner friendly task for @kossiitkgp/newbies to create a (Python) script which would take the kossiitkgp/secrets repository and access the contacts csv files to generate these txt files.

This would remove the burden of keeping contacts synced at two places. (Inspired by #14)

taapasX28 commented 5 years ago

We'll need to have a seperate column for slack handles then . As for some people it is different from github handles

grapheo12 commented 5 years ago

What will be the naming convention for the auto generated .txt files? On Fri, 15 Mar 2019, 16:02 Taapas Agrawal, notifications@github.com wrote:

We'll need to have a seperate column for slack handles then . As for some people it is different from github handles

— You are receiving this because you are on a team that was mentioned. Reply to this email directly, view it on GitHub https://github.com/kossiitkgp/bhattu/issues/15#issuecomment-473236175, or mute the thread https://github.com/notifications/unsubscribe-auth/APrK3LdwcQk46BOo66PhYIKderE6br7Yks5vW3atgaJpZM4b19bV .

OrkoHunter commented 5 years ago

Since the format of the column is fixed, the following will work

cell.split("/")[0]

On Fri, 15 Mar, 2019, 16:02 Taapas Agrawal, notifications@github.com wrote:

We'll need to have a seperate column for slack handles then . As for some people it is different from github handles

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kossiitkgp/bhattu/issues/15#issuecomment-473236175, or mute the thread https://github.com/notifications/unsubscribe-auth/AHsTeY2Ar783mpo-ZJu24Ofi6dn_5NTDks5vW3atgaJpZM4b19bV .

OrkoHunter commented 5 years ago

@grapheo12 Same as of now. freshers.txt, executives.txt and seniors.txt

A new one alumni.txt should be added.

grapheo12 commented 5 years ago

@OrkoHunter So 2018 maps to freshers, 2017 to executives etc.. like that?

OrkoHunter commented 5 years ago

Yes, that is correct.