From 0fa228a749339678be82156f0de6add59832546e Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 28 Oct 2013 13:58:58 +0000 Subject: [PATCH] some better output --- modules/steam/config.json | 3 ++- modules/steam/steam.js | 13 +++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/modules/steam/config.json b/modules/steam/config.json index 60e33b8..4e40b80 100644 --- a/modules/steam/config.json +++ b/modules/steam/config.json @@ -1,3 +1,4 @@ { - "api_key": "bleh" + "api_key": "bleh", + "outputPrefix": "\u00033steam\u000f" } diff --git a/modules/steam/steam.js b/modules/steam/steam.js index f32cb2c..b303788 100644 --- a/modules/steam/steam.js +++ b/modules/steam/steam.js @@ -75,9 +75,14 @@ var steam = function(dbot) { this.api.getRecentlyPlayed(steamid, function(err, games) { if(!err) { if(games.total_count != 0) { - event.reply(user.currentNick + ' last played ' + games.games[0].name); + event.reply(dbot.t('steam_last_played', { + 'user': user.currentNick, + 'game': games.games[0].name + })); } else { - event.reply(user.currentNick + ' didn\'t play anything recently'); + event.reply(dbot.t('steam_not_played', { + 'user': user.currentNick + })); } } else { event.reply('something went wrong'); @@ -102,7 +107,7 @@ var steam = function(dbot) { if(!user) { event.reply('Unknown user.'); } else { - event.reply(user.currentNick + ': Set a steam username with "~set steam username"'); + event.reply(user.currentNick + ': Set a steam "vanity url" with "~set steam username"'); } callback(true); } @@ -111,7 +116,7 @@ var steam = function(dbot) { callback(false); } } else { - event.reply(event.user + ': Set a steam username with "~set steam username"'); + event.reply(event.user + ': Set a steam "vanity url" with "~set steam username"'); callback(true); } }.bind(this);