forked from GitHub/dbot
return the correct lastly played game
This commit is contained in:
parent
2204c910b9
commit
b86efbc3c2
@ -166,7 +166,7 @@ var steam = function(dbot) {
|
|||||||
if(games.total_count != 0) {
|
if(games.total_count != 0) {
|
||||||
event.reply(dbot.t('steam_last_played', {
|
event.reply(dbot.t('steam_last_played', {
|
||||||
'user': user.currentNick,
|
'user': user.currentNick,
|
||||||
'game': games.games[0].name
|
'game': _.last(games.games).name
|
||||||
}));
|
}));
|
||||||
} else {
|
} else {
|
||||||
event.reply(dbot.t('steam_not_played', {
|
event.reply(dbot.t('steam_not_played', {
|
||||||
|
Loading…
Reference in New Issue
Block a user