- Users are pulled from the slack #crucible (default) channel.
Slack::Channel.new
- For each user we try and extract a
gamertag
from their Slack's['profile']['title']
- With the
gamertag
we can go tohttp://proxy.guardian.gg
and get amembershipId
(per platform). - With the
membershipId
we can finally get the elo ratings for the user.
-
There is a rake task "slack.rake" which pulls the users from slack and gets the membershipIds and stores these things in the db. (Using sqlite for now).
-
A different rake task "gg.rake" goes through all the users (db) and pulls their elos from guardian.gg.
NOTE: In order to test this stuff make sure you have a Slack API token,
and supply it as an enviornmental variable called SLACK_API_TOKEN
. E.g.
SLACK_API_TOKEN=YOUR_TOKEN rails s
Smaller stuff:
- Links to gg profiles
- Use guardian.gg font for logos to show in different game modes
- Slack avatars
Bigger things:
- Automate pulling new rankings
- Track rankings on weekly/reset basis, to make comparisions, trends (last week elo vs this week etc)