redbrick / brickbot

A simple serverless bot for the new Redbrick Discord.
9 stars 9 forks source link

committee / cmt command #21

Open ciankehoe opened 5 years ago

ciankehoe commented 5 years ago

committee || cmt - lists all current Redbrick Committee members by rbusername, name and role.

Could implement a feature where you can request specific roles;

!cmt admin

It would then return username, name of every person in that role (maybe a photo/link to redbrick site with more info about that person if we want to look at that further down the line).

theycallmemac commented 5 years ago

We might actually have an API endpoint on the website for this

https://github.com/redbrick/static-site - I'll investigate and get back to you.

theycallmemac commented 5 years ago

Okay so an endpoint exists for this! https://www.redbrick.dcu.ie/api/committee

But.. it retrieves the committee of 2017-28. I've raised an issue for it here - might get around to it eventually but if you want to have a look at it @ciankehoe you're more than welcome! I'm assigning this issue to you now anyways. Once it's fixed it's a simple bit of code.

theycallmemac commented 5 years ago

I've made a PR to fix this issue. Still requires a review and merge but the API endpoint should work

https://github.com/redbrick/static-site/pull/322

theycallmemac commented 5 years ago

@ciankehoe I've committed the latest committee details but the api seems to still not be relaying the correct information. May need to make a fix to the static site javascript.

theycallmemac commented 5 years ago

Making this an issue for HackerClub's Hacktoberfest hub. We can hardcode it once we have the full committee.

ciankehoe commented 5 years ago

What's the current status on this given we have a full committee at this point?

theycallmemac commented 5 years ago

It can be hardcoded for now - iI believe the new site will have an api for current committee :)