Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Change example from phys to eae (temporarily)
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchTalmadge committed Jul 4, 2020
1 parent fcdb6f5 commit 2ccb100
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/controllers/channel/course-selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import _ from "lodash";
import { Course } from "models/course";
import { Major } from "models/major";
import { CourseService } from "services/course";
import { UserDatabaseService } from "services/database/user";
import { MemberUpdateService } from "services/member-update";
import { CourseUtils } from "utils/course";
import { DiscordMessageUtils } from "utils/discord-message";
Expand All @@ -24,7 +23,7 @@ export class CourseSelectionChannelController extends ChannelController {
}
})
.catch(errorMessage => {
DiscordMessageUtils.sendMessage(message.channel, `${errorMessage} Example usage: join cs1410 phys2210`);
DiscordMessageUtils.sendMessage(message.channel, `${errorMessage} Example usage: join cs1410 eae2100`);
// TODO: Better example.
});
} else if (message.content.toLowerCase().startsWith("leave")) {
Expand All @@ -38,7 +37,7 @@ export class CourseSelectionChannelController extends ChannelController {
}
})
.catch(errorMessage => {
DiscordMessageUtils.sendMessage(message.channel, `${errorMessage} Example usage: leave cs1410 phys2210`);
DiscordMessageUtils.sendMessage(message.channel, `${errorMessage} Example usage: leave cs1410 eae2100`);
// TODO: Better example.
});
} else if (message.content.toLowerCase().startsWith("ta")) {
Expand All @@ -56,11 +55,12 @@ export class CourseSelectionChannelController extends ChannelController {
});
})
.catch(errorMessage => {
DiscordMessageUtils.sendMessage(message.channel, `${errorMessage} Example usage: ta cs1410 phys2210`);
DiscordMessageUtils.sendMessage(message.channel, `${errorMessage} Example usage: ta cs1410 eae2100`);
// TODO: Better example.
});
} else {
DiscordMessageUtils.sendMessage(message.channel, `${message.author}, I'm not sure what you want to do. Make sure your request starts with 'join', 'leave', or 'ta'. For example: 'join cs1410 phys2420'`);
//TODO: Better example
DiscordMessageUtils.sendMessage(message.channel, `${message.author}, I'm not sure what you want to do. Make sure your request starts with 'join', 'leave', or 'ta'. For example: 'join cs1410 eae2100'`);
}
}

Expand All @@ -85,7 +85,7 @@ export class CourseSelectionChannelController extends ChannelController {
// Check for non-existent majors
const invalidMajors = this.getInvalidMajors(Object.keys(numbers));
if (invalidMajors.length > 0) {
return Promise.reject(`Sorry ${message.author}, the major(s) '${invalidMajors.join(", ")}' are not valid in this server. The valid majors are: ${Object.keys(this.guildContext.majors).join(", ")}`);
return Promise.reject(`Sorry ${message.author}, the major(s) '${invalidMajors.join(", ")}' are not valid in this server. The valid majors are: ${Object.keys(this.guildContext.majors).join(", ")}.`);
}

// Convert numbers to courses
Expand Down

0 comments on commit 2ccb100

Please sign in to comment.