Skip to content

Commit

Permalink
提示优化
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed May 2, 2020
1 parent a15d5ce commit 7ea7357
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ hexo.extend.console.register('steam', 'Update steam games data', options, functi
}
updateSteamGames(this.config.steam.steamId, this.config.steam.tab, this.config.steam.length, this.config.steam.proxy);
} else {
console.error("Unknown command.")
console.error("Unknown command, please use \"hexo bangumi -h\" to see the available commands")
}
});

Expand Down
2 changes: 1 addition & 1 deletion lib/steam-games-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = async function (locals) {

let games=[];
if (!fs.existsSync(path.resolve(__dirname, '../data/games.json'))) {
log.info(`Can't find steam game data, please use 'hexo steam update' command to get data`);
log.info(`Can't find steam game data, please use 'hexo steam -u' command to get data`);
}else{
games = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../data/games.json'))).slice(0, config.length || 1000);
log.info(games.length + ' games have been loaded');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-steam-games",
"version": "1.1.7",
"version": "1.1.8",
"description": "Hexo Steam games page",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 7ea7357

Please sign in to comment.