mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
some better output
This commit is contained in:
parent
d910b116c6
commit
0fa228a749
@ -1,3 +1,4 @@
|
||||
{
|
||||
"api_key": "bleh"
|
||||
"api_key": "bleh",
|
||||
"outputPrefix": "\u00033steam\u000f"
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user