From 1acb980ffc7b3145a1ffe62ac8c1b67ed2bc4300 Mon Sep 17 00:00:00 2001 From: Ansh <26479077+AnshGupta01@users.noreply.github.com> Date: Fri, 20 Oct 2023 09:50:28 +0530 Subject: [PATCH] Issue #9: Help commands --- src/states/render-messages.ts | 12 ++++++++---- src/states/state-handlers.ts | 4 ++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/states/render-messages.ts b/src/states/render-messages.ts index 0d7b8b8..370b94e 100644 --- a/src/states/render-messages.ts +++ b/src/states/render-messages.ts @@ -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 = () => ({ @@ -171,7 +175,7 @@ export const renderAmizoneMenu = () => ({ rows: [ { id: "1", - title: "Attendance", + title: "Total Attendance", }, { id: "2", @@ -179,7 +183,7 @@ export const renderAmizoneMenu = () => ({ }, { id: "3", - title: "Courses", + title: "Course Details", description: "(and internals)", }, { diff --git a/src/states/state-handlers.ts b/src/states/state-handlers.ts index 6ca6bd9..a059ea3 100644 --- a/src/states/state-handlers.ts +++ b/src/states/state-handlers.ts @@ -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", };