We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed95f99 commit 3b3dcbaCopy full SHA for 3b3dcba
src/index.ts
@@ -44,17 +44,15 @@ async function updateBio(message: string) {
44
async function init() {
45
try {
46
const total = await getWakatimeTotalTime();
47
-
48
- const bioMessage = `15y/o programmer and student - Frontend focused web dev. Coded today: ${total}`;
+ const today = new Date().toLocaleDateString();
+ const bioMessage = `15y/o programmer and student - Frontend focused web dev. Coded Today (${today}): ${total}`;
49
50
await updateBio(bioMessage);
51
52
- console.log("UPDATE: Successfully updated bio");
53
} catch (e) {
54
console.error(e);
55
}
56
57
58
/* Updates bio every 15minutes */
59
-init()
+init();
60
setInterval(init, 900000);
0 commit comments