Add card description in output message.

This commit is contained in:
fkndean 2016-11-27 12:12:40 -05:00
parent ffc1f5a061
commit a32fd3a2cb

View File

@ -241,10 +241,17 @@ $@"🌍 **Weather for** 【{obj["target"]}】
imgStream.Position = 0;
images.Add(new Image(imgStream));
}
var msg = $@"```css
[☕ Magic The Gathering]: {items[0]["name"].ToString()}
[Store URL]: {await _google.ShortenUrl(items[0]["store_url"].ToString())}
[Cost]: {items[0]["cost"].ToString()}
[Description]: {items[0]["text"].ToString()}
```";
var ms = new MemoryStream();
images.Merge().SaveAsJpeg(ms);
ms.Position = 0;
await channel.SendFileAsync(ms, arg + ".jpg", null).ConfigureAwait(false);
await channel.SendMessageAsync(msg).ConfigureAwait(false);
}
catch
{