Skip to content

Commit 64178f7

Browse files
committed
Rephrase schedule command responses
1 parent c1f2935 commit 64178f7

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

lib/commands/implementations/schedule.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function getNextStreamDate(input, services) {
77
.findNextStreamDay()
88
.then((nextStreamDay) => {
99
if (!nextStreamDay) {
10-
return new CommandOutput(null, `Nothing scheduled ${services.schedule.link()}`);
10+
return new CommandOutput(null, `Nothing is scheduled. ${services.schedule.link()}`);
1111
}
1212

1313
const { allDay, name, start, childEvent } = nextStreamDay;
@@ -18,17 +18,18 @@ function getNextStreamDate(input, services) {
1818

1919
if (isHappening) {
2020
scheduleOutput = allDay
21-
? `${name} is todays all-day event! ${link}`
22-
: `${name} is currently happening! it started ${startTime}. ${link}`;
21+
? `${name}, an all-day event, is scheduled today. ${link}`
22+
: `${name} is currently happening! It started ${startTime}. ${link}`;
23+
2324
if (allDay && childEvent) {
2425
const childEventIsHappening = moment(childEvent.start).isBefore(moment());
2526
// prettier-ignore
2627
scheduleOutput = childEventIsHappening
27-
? `${name} is todays all-day event! ${childEvent.name} is currently happening! it started ${childEvent.start.fromNow()}. ${link}`
28-
: `${name} is todays all-day event! coming up ${childEvent.start.fromNow()} is ${childEvent.name}. ${link}`;
28+
? `${name}, an all-day event, is scheduled today. ${childEvent.name} is currently happening! It started ${childEvent.start.fromNow()}. ${link}`
29+
: `${name}, an all-day event, is scheduled today. Coming up ${childEvent.start.fromNow()} is ${childEvent.name}. ${link}`;
2930
}
3031
} else {
31-
scheduleOutput = `${name} is coming up next! it starts ${startTime}. ${link}`;
32+
scheduleOutput = `${name} is the next scheduled event. It starts ${startTime}. ${link}`;
3233
}
3334

3435
return new CommandOutput(null, scheduleOutput);

0 commit comments

Comments
 (0)