From a4abcb4bc166ae51f286ba73d02a03de5d5d8f60 Mon Sep 17 00:00:00 2001 From: cws Date: Thu, 5 Oct 2017 15:00:23 -0400 Subject: [PATCH] beers: make untappd icons square * Added all image formats to checkin structure * Changed which image is selected for display in the channel --- plugins/beers/beers.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/beers/beers.go b/plugins/beers/beers.go index b641e16..1bc6521 100644 --- a/plugins/beers/beers.go +++ b/plugins/beers/beers.go @@ -297,6 +297,9 @@ type checkin struct { Items []struct { Photo_id int Photo struct { + Photo_img_sm string + Photo_img_md string + Photo_img_lg string Photo_img_og string } } @@ -419,7 +422,7 @@ func (p *BeersPlugin) checkUntappd(channel string) { msg2 := "" if checkin.Media.Count > 0 { - msg2 = "Here's a photo: " + checkin.Media.Items[0].Photo.Photo_img_og + msg2 = "Here's a photo: " + checkin.Media.Items[0].Photo.Photo_img_lg } user.lastCheckin = checkin.Checkin_id