Make PNGs Again

This commit is contained in:
Daniel Odendahl Jr
2017-09-21 11:00:45 +00:00
parent a2af62660c
commit 072bbd3cd8
25 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ module.exports = class SteamNowPlayingCommand extends Command {
if (ctx.measureText(game).width > 160) shorten = true;
while (ctx.measureText(game).width > 160) game = game.substr(0, game.length - 1);
ctx.fillText(shorten ? `${game}...` : game, 63, 54);
return msg.say({ files: [canvas.toBuffer()] });
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'steam-now-playing.png' }] });
} catch (err) {
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}