WoodyZantzinger / dota2groupme

Bot merging GroupMe chat with Dota 2 Stats
1 stars 4 forks source link

Rework recognition of messages to key off of unique user ID and not username #3

Closed mjdesrosiers closed 9 years ago

mjdesrosiers commented 9 years ago

Currently system recognizes which user is which based off of GroupMe name, which is user-assigned and user-changable. Though the system also tries to keep track of name changes, these don't persist across session.

Better would be to 'understand' the unique user ID the GroupMe API sends on each message:

https://dev.groupme.com/tutorials/bots

Then work around the following mappings:

GroupMe ID to real name [permanent] GroupMe ID to GroupMe name [not permanent] GroupMe ID to SteamID [permanent] GroupMe ID to Dota2ID [permanent]

WoodyZantzinger commented 9 years ago

Let me take a crack at setting up Postgres tonight, that should cover this. You can then setup hooks for name changes to adjust stored names.

mjdesrosiers commented 9 years ago

This has been done, closing