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

Commit

Permalink
Merge pull request #53 from AnshGupta01/help-commands
Browse files Browse the repository at this point in the history
issue: help commands #9
  • Loading branch information
ditsuke authored Nov 2, 2023
2 parents b524707 + 1acb980 commit 99ae083
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions src/states/render-messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,18 @@ export const renderSemester = (semesters: V1SemesterList) => {
export const renderWelcomeMessage = () => `\
Welcome the the Amibot Beta, proudly brought to you by the ALiAS Community.
Your *Amizone credentials* are safe with us, credentials are only used for accessing amizone data. Once you logout, your details are deleted from our end.
You can logout with the menu, or by sending *logout* message to the bot.
Amibot is an open-source project hosted on fly.io. Source code is available at github.com/asetalias/amibot and open to contributions, bug reports and feature requests!
Join ALiAS, Amity's largest open source community, at asetalias.in ;)
`;

export const renderUsernamePrompt = () => "Amibot uses your Amizone credentials to access the portal. *Enter your Amizone username:*";
export const renderUsernamePrompt = () => "*Please enter your Amizone username:*";

export const renderPasswordPrompt = () => "*Enter your Amizone password:*";
export const renderPasswordPrompt = () => "*Please enter your Amizone password:*";

// Menu. Type: Interactive.
export const renderAmizoneMenu = () => ({
Expand All @@ -171,15 +175,15 @@ export const renderAmizoneMenu = () => ({
rows: [
{
id: "1",
title: "Attendance",
title: "Total Attendance",
},
{
id: "2",
title: "Class Schedule",
},
{
id: "3",
title: "Courses",
title: "Course Details",
description: "(and internals)",
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/states/state-handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ export const handleExpectPassword = async (
};

const AmizoneMenuOptions = {
GET_ATTENDANCE: "attendance",
GET_ATTENDANCE: "total attendance",
GET_SCHEDULE: "class schedule",
GET_COURSES: "courses",
GET_COURSES: "course details",
FILL_FACULTY_FEEDBACK: "fill faculty feedback",
GET_EXAM_SCHEDULE: "exam schedule",
};
Expand Down

0 comments on commit 99ae083

Please sign in to comment.