Skip to content

Commit 5a30a4e

Browse files
committed
feat: Update bot name from Luna to LearnverseBot and refine conversational tone across all user-facing messages.
1 parent 6dfb2d4 commit 5a30a4e

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/handlers/command-handlers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const startCommandHandler = async (ctx) => {
77
console.log("User:", ctx.from.username || ctx.from.id);
88

99
const welcomeMessage =
10-
`Meow! I'm Luna 🐱\n\n` +
10+
`Hey! I'm LearnverseBot \n\n` +
1111
`I help students find study materials - notes, PYQs, syllabuses, you name it.\n` +
1212
`Everything's organized and ready for you.\n\n` +
1313
`Try /search to get started, or /help if you need guidance.\n\n` +
@@ -27,7 +27,7 @@ export const helpCommandHandler = async (ctx) => {
2727
console.log("User:", ctx.from.username || ctx.from.id);
2828

2929
const helpMessage =
30-
`Luna here! 🐱\n\n` +
30+
`LearnverseBot here! \n\n` +
3131
`I've organized all your study materials - just tell me what you need.\n\n` +
3232
`*Commands:*\n` +
3333
`/search - Browse materials by branch, year, and subject\n` +

src/handlers/file-search-handlers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const searchCommandHandler = async (ctx) => {
4242
]);
4343

4444
await ctx.reply(
45-
"🐱 *Welcome to Luna's Library!*\n\nSelect your branch so I can fetch the right materials for you:",
45+
"🤖 *Welcome to LearnverseBot's Library!*\n\nSelect your branch so I can fetch the right materials for you:",
4646
{
4747
reply_markup: {
4848
inline_keyboard: inlineKeyboard,
@@ -382,7 +382,7 @@ export const backToBranchesHandler = async (ctx) => {
382382
});
383383

384384
await ctx.editMessageText(
385-
"🐱 *Welcome to Luna's Library!*\n\nSelect your branch so I can fetch the right materials for you:",
385+
"🤖 *Welcome to LearnverseBot's Library!*\n\nSelect your branch so I can fetch the right materials for you:",
386386
{
387387
reply_markup: {
388388
inline_keyboard: inlineKeyboard,
@@ -533,7 +533,7 @@ export const subjectDetailsHandler = async (ctx) => {
533533
],
534534
[
535535
{
536-
text: " Start Over with Luna",
536+
text: "🔄 Start Over with LearnverseBot",
537537
callback_data: "back_to_branches",
538538
},
539539
],

src/handlers/text-message-handler.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ export async function handleTextMessage(ctx) {
108108
if (isGroupChat) {
109109
// Group Chat: Only respond to queries
110110
responseMessage =
111-
`Meow! I can help with that, ${username}\n\n` +
111+
`Hey! I can help with that, ${username}\n\n` +
112112
`Chat with me privately and I'll find what you need:\n` +
113-
`🐱 [Talk to Luna](${privateChatLink})\n` +
113+
`🤖 [Talk to LearnverseBot](${privateChatLink})\n` +
114114
`📚 [Browse web](${LEARNVERSE_BASE_URL})`;
115115

116116
replyMarkup = {
@@ -119,12 +119,12 @@ export async function handleTextMessage(ctx) {
119119
reply_to_message_id: ctx.message.message_id,
120120
};
121121
} else {
122-
// Private Chat: Respond to everything with Luna's personality
122+
// Private Chat: Respond to everything with LearnverseBot's personality
123123

124124
// Standard helpful response
125125
responseMessage =
126-
`Meow! Luna here! 🐈\n\n` +
127-
`I'm your classy study companion (and an orange cat! ✨).\n` +
126+
`Hey! LearnverseBot here! \n\n` +
127+
`I'm your study companion!\n` +
128128
`I'm here to provide study materials.\n\n` +
129129
`*How I can help:*\n` +
130130
`/search - Browse my organized library 📚\n` +
@@ -160,7 +160,7 @@ export async function handleTextMessage(ctx) {
160160
// Only send rate limit message in private chats to avoid spamming groups
161161
if (!isGroupChat) {
162162
const funRateLimitMsg =
163-
`Meow! 😿 Hold on! It's my lunch time 🐟 (I'm eating fish).\n` +
163+
`Hey! 😅 Hold on! I'm taking a quick break.\n` +
164164
`Please wait a moment, I'll be back soon! `;
165165
await ctx.reply(funRateLimitMsg);
166166
}

src/middlewares/userAuthAndSetupMiddleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const checkGroupChatMiddleware = async (ctx, next) => {
3535
if (checkGroupChat(ctx) && checkIfNewUser(ctx)) {
3636
const privateChatLink = `https://t.me/${BOT_USERNAME}`;
3737
await ctx.replyWithHTML(
38-
`Welcome! I'm Luna 🐱 - if you need study materials, chat with me privately and I'll help you find everything. <a href="${privateChatLink}">Talk to Luna</a>`
38+
`Welcome! I'm LearnverseBot - if you need study materials, chat with me privately and I'll help you find everything. <a href="${privateChatLink}">Talk to LearnverseBot</a>`
3939
);
4040
return;
4141
}

0 commit comments

Comments
 (0)