Skip to content

Commit 2dde8af

Browse files
committed
clean up code
1 parent e5f44fb commit 2dde8af

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

update-gist.js

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,16 @@ async function updateGist(data) {
3737
}
3838

3939
const lines = [];
40-
lines.push('🦇🦇 BADMAN Todoist Stats 🦇🦇');
40+
lines.push('𓆩𓆪 "It\'s not who I am underneath, but what I do that defines me." 𓆩𓆪');
4141
lines.push('');
4242
const { karma, completed_count, days_items, week_items, goals } = data;
43-
if (karma !== undefined) lines.push(`🦸‍♂️ ${formatNumber(karma)} Karma Points`);
44-
if (days_items && days_items[0]) lines.push(`🌃 ${formatNumber(days_items[0].total_completed)} tasks completed tonight`);
45-
if (week_items && week_items[0]) lines.push(`🦹‍♂️ ${formatNumber(week_items[0].total_completed)} tasks completed this week`);
46-
if (completed_count !== undefined) lines.push(`🦇 ${formatNumber(completed_count)} tasks completed so far`);
47-
if (goals && goals.last_daily_streak) lines.push(`🦾 ${formatNumber(goals.last_daily_streak.count)}-night streak`);
48-
lines.push('');
49-
lines.push('🦇🦇🦇🦇🦇🦇🦇');
50-
lines.push('');
51-
lines.push('"The night is darkest just before the dawn. And I promise you, the dawn is coming."');
52-
lines.push('"All men have limits. They learn what they are and learn not to exceed them. I ignore mine."');
43+
if (karma !== undefined) lines.push(`⚛ ${formatNumber(karma)} Karma Points`);
44+
if (days_items && days_items[0]) lines.push(`࣪ ִֶָ☾. ${formatNumber(days_items[0].total_completed)} tasks completed tonight`);
45+
if (week_items && week_items[0]) lines.push(` ❄︎ ${formatNumber(week_items[0].total_completed)} tasks completed this week`);
46+
if (completed_count !== undefined) lines.push(`✎ ${formatNumber(completed_count)} tasks completed so far`);
47+
if (goals && goals.last_daily_streak) lines.push(`♕ ${formatNumber(goals.last_daily_streak.count)}-night streak`);
5348
lines.push('');
49+
5450

5551
if (lines.length === 0) return;
5652

0 commit comments

Comments
 (0)