Skip to content

Commit 1271ec8

Browse files
author
Waren Gonzaga
committed
Add more saying and small fixes
1 parent 24e8fc1 commit 1271ec8

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ curl localhost:7070/ph
171171
```
172172

173173
```bash
174-
# run this if you want to develop the program without restarting the server manually, everytime you save the file it will restart the server automagically
174+
# run this if you want to develop the program without restarting the server manually,
175+
# everytime you save the file it will restart the server automagically
175176
npm run dev
176177
```
177178

@@ -195,6 +196,7 @@ If you're facing a problem in using COVID-19 Tracker CLI please let me know by c
195196
## To Do
196197

197198
* Add Static Version
199+
* Update URL in the banner
198200
* Sample Usage (gif)
199201
* Add HTTP Headers (currently F)
200202
* More Code Refactor! (I guess I know what I'm doing now... for sure)

lib/cli/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ exports.help = () => {
117117
${repo}
118118
${line}
119119
120-
"${randomSay()}"
120+
${randomSay()}
121121
`;
122122
const defaultfooter = br+tab+line+br+tab+bmcline+
123123
br+tab+'(Buy Me A Coffee) '+bmcurl+
@@ -143,7 +143,7 @@ exports.covid19globaltracker = (c, d, r, u) => {
143143
[sourceInfo],[repoInfo]
144144
);
145145
const defaultfooter = footerOne+ansiBMC+footerTwo+ansiTwitter+br+br;
146-
return table.toString()+br+br+space+'"'+green(randomSay())+'"'+defaultfooter;
146+
return table.toString()+br+br+space+green(randomSay())+defaultfooter;
147147
};
148148

149149
// covid19 country tracker
@@ -165,7 +165,7 @@ exports.covid19countrytracker = (n, c, tC, d, tD, r, a, cl, cPOM, u) => {
165165
[formatNumber(todayCases), formatNumber(todayDeaths), formatNumber(critical), mortalityPercentage.toFixed(2), recoveryPercentage.toFixed(2)],
166166
[sourceInfo],[repoInfo]
167167
);
168-
const tableFooter = table.toString()+br+br+space+'"'+green(randomSay())+'"',
168+
const tableFooter = table.toString()+br+br+space+green(randomSay()),
169169
defaultfooter = footerOne+ansiBMC+footerTwo+ansiTwitter+br+br,
170170
specialfooter = footerOne+ansiGCash+br+' '+ansiBMC+footerTwo+ansiTwitter+br+br;
171171

@@ -193,7 +193,7 @@ exports.plainglobaltracker = (c, d, r, u) => {
193193
${repo}
194194
${line}
195195
196-
"${randomSay()}"
196+
${randomSay()}
197197
`;
198198
const defaultfooter = br+tab+line+br+tab+bmcline+
199199
br+tab+'(Buy Me A Coffee) '+bmcurl+
@@ -233,7 +233,7 @@ exports.plaincountrytracker = (n, c, tC, d, tD, r, a, cl, cPOM, u) => {
233233
${repo}
234234
${line}
235235
236-
"${randomSay()}"
236+
${randomSay()}
237237
`;
238238
const defaultfooter = br+tab+line+br+tab+bmcline+
239239
br+tab+'(Buy Me A Coffee) '+bmcurl+
@@ -277,7 +277,7 @@ exports.historyCountryTracker = (n, c, tC, d, tD, r, a, cl, cPOM, u, h, chartTyp
277277
[sourceInfo],[repoInfo]
278278
);
279279

280-
const tableFooter = table.toString()+br+br+space+'"'+green(randomSay())+'"',
280+
const tableFooter = table.toString()+br+br+space+green(randomSay()),
281281
defaultfooter = footerOne+ansiBMC+footerTwo+ansiTwitter+br+br,
282282
specialfooter = footerOne+ansiGCash+br+' '+ansiBMC+footerTwo+ansiTwitter+br+br;
283283

@@ -288,4 +288,4 @@ const footerOne = br+br+' '+line+br+' '+bmcline+br+' ',
288288
footerTwo = br+' '+line+br+' '+twitterline+br+' ';
289289

290290
// capitalize first letter
291-
const ucfirst = (string) => string.charAt(0).toUpperCase() + string.slice(1);
291+
const ucfirst = (string) => string.charAt(0).toUpperCase() + string.slice(1);

lib/sayings/threads.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"COVID-19 is a serious matter!",
1111
"Wash your hands and don't touch your face!",
1212
"Social distancing is real...",
13-
"Developer from the Philippines",
13+
"Developers from the Philippines",
1414
"Support Open-Source!",
1515
"Stay at home, play games instead...",
1616
"Uninstall 2020, virus detected!",
@@ -21,5 +21,14 @@
2121
"Happiness is the highest form of health",
2222
"Keep calm and carry on...",
2323
"Better to be busy than to be busy worrying",
24-
"Instead of calling it as NCOV, Let's call it as EndCov!"
24+
"Instead of calling it as NCOV, Let's call it as EndCov!",
25+
"Powered by Coffee!",
26+
"Powered by the Community!",
27+
"Wash your hands at least 20 seconds...",
28+
"Don't worry be happy!",
29+
"We are not going to die... stay healthy!",
30+
"Natural foods is better than vitamins...",
31+
"Let food be thy medicine and medicine be thy food \n- Hippocrates",
32+
"Healthy citizens are the greatest asset any country can have \n- Winston S. Churchill",
33+
"Wine is the most healthful and most hygienic of beverages \n- Louis Pasteur"
2534
]

0 commit comments

Comments
 (0)