Skip to content

Commit

Permalink
fix README.md custom cow example and current year for help message
Browse files Browse the repository at this point in the history
  • Loading branch information
erincones committed Oct 13, 2022
1 parent 45adba8 commit 2e69d82
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 29 deletions.
47 changes: 23 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ moo({
```Text
__________________________
( I need to sleep )
( 2022-10-13T19:18:51.885Z )
( 2022-10-13T22:22:30.643Z )
--------------------------
o ^__^
o (@@)\_______
Expand All @@ -262,42 +262,41 @@ moo({
```

```Typescript
// Custom cow
cowsay({
cowthink({
message: `No way, I don't want the leftovers of your love.`,
eyes: `••`,
eyes: `><`,
wrap: 21,
cow: {
template: [
` \\\\`,
` \\\\`,
`(\\__/) ||`,
`(oㅅo) ||`,
`/ づ`
` \\`,
` \\ (\\__/)`,
` \\ (•ㅅ•)`,
` / づ`
],
defEyes: `••`,
actionPos: [
[ 0, 5 ],
[ 0, 6 ],
[ 1, 6 ],
[ 1, 7 ]
[ 0, 3 ],
[ 1, 4 ],
[ 2, 5 ]
],
eyesPos: [
[ 3, 1 ],
[ 3, 3 ]
[ 2, 8 ],
[ 2, 10 ]
]
}
});
```

```Text
_______________________________________
/ No way, I don't want the leftovers of \
\ your love. /
---------------------------------------
\\
\\
(\__/) ||
(•ㅅ•) ||
/ づ
______________________
( No way, I don't want )
( the leftovers of )
( your love. )
----------------------
o
o (\__/)
o (>ㅅ<)
/ づ
```


Expand Down
8 changes: 3 additions & 5 deletions cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ var cows = require("../cows");
*/
var package_json = JSON.parse(fs.readFileSync(path.join(__dirname, "..", "package.json"), "utf8"));

/**
* Current year
*/
var year = new Date().getFullYear();


/**
* Get all available cow mode data IDs
Expand Down Expand Up @@ -98,6 +93,9 @@ function getArg(token, j, argv, i) {
* @package
*/
function printHelp() {
// Current year
var year = new Date().getFullYear();

// Get current script
var script = process.argv[1].replace(/\\/g, "/");
script = script.slice(script.lastIndexOf("/") + 1).replace(/\./, "");
Expand Down

0 comments on commit 2e69d82

Please sign in to comment.