levix-bot 4.3.0 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/package.json +1 -1
  2. package/public/dashboard/assets/{index-BCXZoPGP.js → index-B6RhYFIy.js} +24 -24
  3. package/public/dashboard/assets/index-vEwOcxiH.css +2 -0
  4. package/public/dashboard/index.html +2 -2
  5. package/src/commands/autoschedule.cjs +1 -1
  6. package/src/commands/blacklist.cjs +1 -1
  7. package/src/commands/calc.cjs +9 -9
  8. package/src/commands/gemini.cjs +26 -26
  9. package/src/commands/group/add.cjs +2 -2
  10. package/src/commands/group/demote.cjs +2 -2
  11. package/src/commands/group/members.cjs +2 -2
  12. package/src/commands/group/rules.cjs +1 -1
  13. package/src/commands/group/setname.cjs +3 -3
  14. package/src/commands/group/setpp.cjs +3 -3
  15. package/src/commands/group/setrules.cjs +1 -1
  16. package/src/commands/group/tagadmins.cjs +1 -1
  17. package/src/commands/group.cjs +1 -1
  18. package/src/commands/lang.cjs +3 -3
  19. package/src/commands/listschedules.cjs +1 -1
  20. package/src/commands/loop.cjs +3 -3
  21. package/src/commands/memory.cjs +18 -18
  22. package/src/commands/notes.cjs +1 -1
  23. package/src/commands/perm.cjs +2 -2
  24. package/src/commands/poll.cjs +3 -3
  25. package/src/commands/rand.cjs +2 -2
  26. package/src/commands/restart.cjs +4 -4
  27. package/src/commands/schedule.cjs +1 -1
  28. package/src/commands/send.cjs +2 -2
  29. package/src/commands/status.cjs +2 -2
  30. package/src/commands/stopbot.cjs +5 -5
  31. package/src/commands/stt.cjs +1 -1
  32. package/src/commands/tts.cjs +2 -2
  33. package/src/handlers/command.handler.js +1 -1
  34. package/src/panel/password-reset.cjs +1 -1
  35. package/src/services/aiAgent.cjs +2 -2
  36. package/src/services/aiProviders.cjs +1 -1
  37. package/src/services/aiTools.cjs +27 -27
  38. package/src/utils/memory.cjs +7 -7
  39. package/public/dashboard/assets/index-LvfJ8ybs.css +0 -2
@@ -108,7 +108,7 @@ async function runSubCommand(sock, msg, args, body, groupMetadata, subCommand) {
108
108
  // just the direct `!kick`.
109
109
  if (runtimeConfig.isDisabled(subCommand.name)) {
110
110
  return await sock.sendMessage(msg.key.remoteJid, {
111
- text: tr("⛔ This command is turned off right now.", "⛔ الأمر ده متوقف حاليًا."),
111
+ text: tr("⛔ This command is turned off right now.", "⛔ هذا الأمر معطّل حاليًا."),
112
112
  });
113
113
  }
114
114
 
@@ -36,7 +36,7 @@ module.exports = {
36
36
  `🌐 *Bot language*
37
37
 
38
38
  ⚙️ *Current:* \`${labels[currentLang] || currentLang}\`
39
- • \`${prefix}lang ar\` — العربية الفصحى دائماً
39
+ • \`${prefix}lang ar\` — Modern Standard Arabic, always
40
40
  • \`${prefix}lang en\` — English always
41
41
  • \`${prefix}lang auto\` — follow the language of each message
42
42
 
@@ -50,7 +50,7 @@ Commands, !help and the AI all answer in it.
50
50
  • \`${prefix}lang en\` — English always
51
51
  • \`${prefix}lang auto\` — تلقائي حسب لغة الرسالة
52
52
 
53
- الأوامر و!help والذكاء الاصطناعي كلهم بيردوا بيها.
53
+ ستستخدمها جميع الأوامر و!help والذكاء الاصطناعي في الردود.
54
54
 
55
55
  🔢 *لتحويل الأرقام* استخدم \`${prefix}digit\` — مثال: \`${prefix}digit 12345\``,
56
56
  );
@@ -96,7 +96,7 @@ Commands, !help and the AI all answer in it.
96
96
  await sock.sendMessage(
97
97
  chatId,
98
98
  {
99
- text: "✅ تم ضبط لغة البوت على *العربية الفصحى*. الأوامر والذكاء الاصطناعي هيردوا بالعربي دائماً.",
99
+ text: "✅ تم ضبط لغة البوت على *العربية الفصحى*. ستكون ردود الأوامر والذكاء الاصطناعي بالعربية دائمًا.",
100
100
  },
101
101
  { quoted: msg },
102
102
  );
@@ -46,7 +46,7 @@ module.exports = {
46
46
  const inGroup = job.targetJid.endsWith("@g.us");
47
47
  reply += tr(
48
48
  `*Where:* ${inGroup ? "this group" : "a private chat"}\n\n`,
49
- `*الوجهة:* ${inGroup ? "هذا الجروب" : "محادثة خاصة"}\n\n`,
49
+ `*الوجهة:* ${inGroup ? "هذه المجموعة" : "محادثة خاصة"}\n\n`,
50
50
  );
51
51
  });
52
52
 
@@ -146,14 +146,14 @@ module.exports = {
146
146
  const requested = countOf(range);
147
147
 
148
148
  const emptyRange = () =>
149
- reply(tr("❌ That range doesn't produce any numbers.", "❌ المدى ده مش بيطلع أي أرقام."));
149
+ reply(tr("❌ That range doesn't produce any numbers.", "❌ لا ينتج هذا النطاق أي أعداد."));
150
150
  if (requested < 1) return emptyRange();
151
151
  if (requested > limit) {
152
152
  return reply(
153
153
  tr(
154
154
  `❌ ${requested} repetitions is too many.\n` +
155
155
  `The limit is ${limit} ${split ? "separate messages" : "repetitions in one message"}.`,
156
- `❌ ${requested} تكرار كتير أوي.\n` +
156
+ `❌ عدد التكرارات المطلوب (${requested}) كبير جدًا.\n` +
157
157
  `الحد الأقصى ${limit} ${split ? "رسالة منفصلة" : "تكرار في الرسالة الواحدة"}.`,
158
158
  ),
159
159
  );
@@ -182,7 +182,7 @@ module.exports = {
182
182
  let text = lines.map((line, i) => (numbered ? `${i + 1}. ${line}` : line)).join("\n");
183
183
 
184
184
  if (text.length > MAX_OUTPUT_CHARS) {
185
- text = `${text.slice(0, MAX_OUTPUT_CHARS)}\n…\n${tr("_(cut short — too long)_", "_(اتقصت عشان طولها)_")}`;
185
+ text = `${text.slice(0, MAX_OUTPUT_CHARS)}\n…\n${tr("_(cut short — too long)_", "_(اختُصر النص لطوله)_")}`;
186
186
  }
187
187
 
188
188
  return reply(text);
@@ -42,11 +42,11 @@ function extractScope(args) {
42
42
  function scopeName(scope) {
43
43
  return scope === "global"
44
44
  ? tr("the global memory", "الذاكرة العامة")
45
- : tr("this chat's memory", "ذاكرة الشات");
45
+ : tr("this chat's memory", "ذاكرة المحادثة");
46
46
  }
47
47
 
48
48
  function formatEntries(entries, { limit = 30 } = {}) {
49
- if (!entries.length) return tr("_(empty)_", "_(فاضية)_");
49
+ if (!entries.length) return tr("_(empty)_", "_(فارغة)_");
50
50
  const shown = entries.slice(-limit);
51
51
  const lines = shown.map((entry, index) => {
52
52
  const number = entries.length - shown.length + index + 1;
@@ -58,7 +58,7 @@ function formatEntries(entries, { limit = 30 } = {}) {
58
58
  const skipped = entries.length - shown.length;
59
59
  return (
60
60
  (skipped > 0
61
- ? tr(`_(+${skipped} older ones not shown)_\n\n`, `_(+${skipped} أقدم مش معروضين)_\n\n`)
61
+ ? tr(`_(+${skipped} older ones not shown)_\n\n`, `_(+${skipped} معلومات أقدم لم تُعرض)_\n\n`)
62
62
  : "") + lines.join("\n")
63
63
  );
64
64
  }
@@ -95,7 +95,7 @@ module.exports = {
95
95
  reply(
96
96
  tr(
97
97
  "🚫 That's for admins and the owner only. Anyone can add to this chat's memory.",
98
- "🚫 ده للمشرفين والمالك بس. تقدر تضيف معلومة لذاكرة الشات عادي.",
98
+ "🚫 هذا الإجراء للمشرفين والمالك فقط. يمكنك إضافة معلومات إلى ذاكرة هذه المحادثة.",
99
99
  ),
100
100
  );
101
101
 
@@ -107,7 +107,7 @@ module.exports = {
107
107
  return reply(
108
108
  tr(
109
109
  "Write the fact after the command.\nExample: `!memory add the meeting is every Tuesday at 9`",
110
- "اكتب المعلومة بعد الأمر.\nمثال: `!memory add الاجتماع كل تلات الساعة ٩`",
110
+ "اكتب المعلومة بعد الأمر.\nمثال: `!memory add الاجتماع كل ثلاثاء الساعة ٩`",
111
111
  ),
112
112
  );
113
113
  }
@@ -122,7 +122,7 @@ module.exports = {
122
122
  });
123
123
 
124
124
  return reply(
125
- tr(`🧠 Saved to *${scopeName(scope)}*.\n`, `🧠 اتحفظت في *${scopeName(scope)}*.\n`) +
125
+ tr(`🧠 Saved to *${scopeName(scope)}*.\n`, `🧠 حُفظت في *${scopeName(scope)}*.\n`) +
126
126
  `\`${entry.id}\` — ${content.length > 80 ? content.slice(0, 80) + "…" : content}`,
127
127
  );
128
128
  }
@@ -131,19 +131,19 @@ module.exports = {
131
131
  if (["search", "find", "بحث", "دور"].includes(action)) {
132
132
  const query = rest.join(" ").trim();
133
133
  if (!query) {
134
- return reply(tr("Write the word you're looking for.", "اكتب الكلمة اللي بتدور عليها."));
134
+ return reply(tr("Write the word you're looking for.", "اكتب الكلمة التي تبحث عنها."));
135
135
  }
136
136
  const chatHits = memory.searchMemory(query, { scope: "chat", chatId });
137
137
  const globalHits = memory.searchMemory(query, { scope: "global" });
138
138
 
139
139
  if (!chatHits.length && !globalHits.length) {
140
140
  return reply(
141
- tr(`🔍 Nothing is saved about "${query}".`, `🔍 مفيش حاجة متسجلة عن "${query}".`),
141
+ tr(`🔍 Nothing is saved about "${query}".`, `🔍 لا توجد معلومات محفوظة عن "${query}".`),
142
142
  );
143
143
  }
144
144
  return reply(
145
- tr(`🔍 *Results for* "${query}"\n\n`, `🔍 *نتايج البحث عن* "${query}"\n\n`) +
146
- tr(`*This chat (${chatHits.length}):*\n`, `*ذاكرة الشات (${chatHits.length}):*\n`) +
145
+ tr(`🔍 *Results for* "${query}"\n\n`, `🔍 *نتائج البحث عن* "${query}"\n\n`) +
146
+ tr(`*This chat (${chatHits.length}):*\n`, `*ذاكرة المحادثة (${chatHits.length}):*\n`) +
147
147
  `${formatEntries(chatHits, { limit: 10 })}\n\n` +
148
148
  tr(`*Global (${globalHits.length}):*\n`, `*الذاكرة العامة (${globalHits.length}):*\n`) +
149
149
  formatEntries(globalHits, { limit: 10 }),
@@ -158,7 +158,7 @@ module.exports = {
158
158
  return reply(
159
159
  tr(
160
160
  "Say what to forget: its number from `!memory`, or part of its text.\nExample: `!memory forget 3`",
161
- "حدد اللي عايز تمسحه: رقمه من `!memory` أو جزء من نصه.\n" +
161
+ "حدّد ما تريد حذفه: رقمه من `!memory` أو جزء من نصه.\n" +
162
162
  "مثال: `!memory forget 3`",
163
163
  ),
164
164
  );
@@ -168,11 +168,11 @@ module.exports = {
168
168
  removed
169
169
  ? tr(
170
170
  `🗑️ Forgotten: ${removed.content.slice(0, 120)}`,
171
- `🗑️ اتمسحت: ${removed.content.slice(0, 120)}`,
171
+ `🗑️ حُذفت: ${removed.content.slice(0, 120)}`,
172
172
  )
173
173
  : tr(
174
174
  `Nothing in ${scopeName(scope)} matches "${ref}".`,
175
- `مالقيتش حاجة تطابق "${ref}" في ${scopeName(scope)}.`,
175
+ `لم أجد ما يطابق "${ref}" في ${scopeName(scope)}.`,
176
176
  ),
177
177
  );
178
178
  }
@@ -185,9 +185,9 @@ module.exports = {
185
185
  count
186
186
  ? tr(
187
187
  `🧹 Cleared *${count}* facts from ${scopeName(scope)}.`,
188
- `🧹 اتمسحت *${count}* معلومة من ${scopeName(scope)}.`,
188
+ `🧹 حُذفت *${count}* معلومة من ${scopeName(scope)}.`,
189
189
  )
190
- : tr("The memory was already empty.", "الذاكرة كانت فاضية أصلاً."),
190
+ : tr("The memory was already empty.", "الذاكرة فارغة بالفعل."),
191
191
  );
192
192
  }
193
193
 
@@ -199,7 +199,7 @@ module.exports = {
199
199
  return reply(
200
200
  tr(
201
201
  "There is no memory file yet — start with `!memory add ...`.",
202
- "مفيش ملف ذاكرة لسه — ابدأ بـ `!memory add ...`.",
202
+ "لا يوجد ملف ذاكرة بعد — ابدأ بـ `!memory add ...`.",
203
203
  ),
204
204
  );
205
205
  }
@@ -228,10 +228,10 @@ module.exports = {
228
228
  `${formatEntries(entries)}\n\n` +
229
229
  `_Chat: ${stats.chatCount} · Global: ${stats.globalCount}_\n` +
230
230
  "`!memory add <fact>` · `!memory add global <fact>` · `!memory forget <number>` · `!memory file`",
231
- `🧠 *${target === "global" ? "الذاكرة العامة" : "ذاكرة المحادثة دي"}* ` +
231
+ `🧠 *${target === "global" ? "الذاكرة العامة" : "ذاكرة هذه المحادثة"}* ` +
232
232
  `(${entries.length} معلومة)\n\n` +
233
233
  `${formatEntries(entries)}\n\n` +
234
- `_الشات: ${stats.chatCount} · العام: ${stats.globalCount}_\n` +
234
+ `_المحادثة: ${stats.chatCount} · العام: ${stats.globalCount}_\n` +
235
235
  "`!memory add <معلومة>` · `!memory add global <معلومة>` · `!memory forget <رقم>` · `!memory file`",
236
236
  ),
237
237
  );
@@ -22,7 +22,7 @@ module.exports = {
22
22
 
23
23
  if (keywords.length === 0) {
24
24
  return await sock.sendMessage(groupId, {
25
- text: tr("This group has no saved notes.", "لا توجد ملاحظات محفوظة في هذا الجروب."),
25
+ text: tr("This group has no saved notes.", "لا توجد ملاحظات محفوظة في هذه المجموعة."),
26
26
  });
27
27
  }
28
28
 
@@ -76,7 +76,7 @@ function labelFor(user) {
76
76
  // is async — awaiting them is not optional.
77
77
  async function rolesReport() {
78
78
  const { owners, admins, bootstrapOwners, bootstrapAdmins } = await listRoles();
79
- const none = tr("• (none)", "• (مفيش)");
79
+ const none = tr("• (none)", "• (لا شيء)");
80
80
  const lines = [tr("*🔑 Bot roles*", "*🔑 صلاحيات البوت*"), ""];
81
81
 
82
82
  lines.push(tr(`*👑 Owners (${owners.length}):*`, `*👑 المالكين (${owners.length}):*`));
@@ -220,7 +220,7 @@ module.exports = {
220
220
  {
221
221
  text: tr(
222
222
  `❌ *I couldn't change the role*\n\n*Details:* ${error.message}`,
223
- `❌ *مقدرتش أعدّل الصلاحية*\n\n*التفاصيل:* ${error.message}`,
223
+ `❌ *تعذّر تعديل الصلاحية*\n\n*التفاصيل:* ${error.message}`,
224
224
  ),
225
225
  },
226
226
  { replyTo: msg },
@@ -1,7 +1,7 @@
1
1
  // استفتاء — !poll
2
2
  //
3
- // !poll نروح فين النهاردة؟ | السينما | البحر | نقعد في البيت
4
- // !poll --multi اختر أكلك | كشري | فراخ | بيتزا (يسمح بأكتر من اختيار)
3
+ // !poll إلى أين نذهب اليوم؟ | السينما | البحر | نبقى في المنزل
4
+ // !poll --multi اختر طعامك | كشري | دجاج | بيتزا (يسمح بأكثر من خيار)
5
5
  //
6
6
  // Sends a native WhatsApp poll (not a text list), so members vote with a tap
7
7
  // and WhatsApp counts the results.
@@ -36,7 +36,7 @@ const HELP_TEXT_AR =
36
36
  "*خيارات:*\n" +
37
37
  "`--multi` يسمح باختيار أكتر من إجابة\n\n" +
38
38
  "*مثال:*\n" +
39
- "`!poll نروح فين؟ | السينما | البحر | البيت`\n\n" +
39
+ "`!poll إلى أين نذهب؟ | السينما | البحر | البيت`\n\n" +
40
40
  `_من ${MIN_OPTIONS} لـ ${MAX_OPTIONS} خيارات._`;
41
41
 
42
42
  /**
@@ -46,7 +46,7 @@ const HELP_TEXT_AR =
46
46
  "🎲 *عشوائي*\n\n" +
47
47
  "`!rand` رقم من 1 لـ 100\n" +
48
48
  "`!rand <أقصى>` رقم من 1 للرقم ده\n" +
49
- "`!rand <أدنى> <أقصى>` رقم بين الاتنين\n" +
49
+ "`!rand <أدنى> <أقصى>` رقم بين الحدّين\n" +
50
50
  "`!rand dice [عدد d أوجه]` نرد — مثال `!rand dice 2d6`\n" +
51
51
  "`!rand coin` ملك ولا كتابة\n" +
52
52
  "`!rand pick خيار | خيار | خيار` يختار واحد";
@@ -127,7 +127,7 @@ module.exports = {
127
127
  return reply(
128
128
  tr(
129
129
  `❌ Too many options (the limit is ${MAX_CHOICES}).`,
130
- `❌ الخيارات كتير أوي (الحد ${MAX_CHOICES}).`,
130
+ `❌ الخيارات كثيرة جدًا (الحد ${MAX_CHOICES}).`,
131
131
  ),
132
132
  );
133
133
  }
@@ -14,7 +14,7 @@ module.exports = {
14
14
  name: "restart",
15
15
  description: {
16
16
  en: "Reconnects WhatsApp (the process and panel stay up).",
17
- ar: "يعيد تشغيل اتصال واتساب (عملية البوت واللوحة يفضلوا شغالين).",
17
+ ar: "يعيد تشغيل اتصال واتساب (مع استمرار تشغيل البوت ولوحة التحكم).",
18
18
  },
19
19
  usage: {
20
20
  en: "restart",
@@ -27,7 +27,7 @@ module.exports = {
27
27
  const session = getSession();
28
28
  if (!session) {
29
29
  return await sock.sendMessage(chatId, {
30
- text: tr("The session manager isn't ready yet.", "مدير الجلسة لسه مش جاهز."),
30
+ text: tr("The session manager isn't ready yet.", "مدير الجلسة غير جاهز بعد."),
31
31
  });
32
32
  }
33
33
 
@@ -35,7 +35,7 @@ module.exports = {
35
35
  await sock.sendMessage(chatId, {
36
36
  text: tr(
37
37
  "🔄 Reconnecting WhatsApp... back in a moment.",
38
- "🔄 جاري إعادة تشغيل اتصال واتساب... هرجع في لحظة.",
38
+ "🔄 جارٍ إعادة تشغيل اتصال واتساب... سأعود خلال لحظات.",
39
39
  ),
40
40
  });
41
41
 
@@ -59,7 +59,7 @@ module.exports = {
59
59
  .sendMessage(chatId, {
60
60
  text: tr(
61
61
  `Connection state now: ${state?.status || "unknown"}. Check the panel's Connection screen.`,
62
- `حالة الاتصال دلوقتي: ${state?.status || "غير معروفة"}. راجع شاشة Connection في لوحة التحكم.`,
62
+ `حالة الاتصال الحالية: ${state?.status || "غير معروفة"}. راجع صفحة الاتصال في لوحة التحكم.`,
63
63
  ),
64
64
  })
65
65
  .catch(() => {});
@@ -86,7 +86,7 @@ module.exports = {
86
86
  return await sock.sendMessage(creatorJid, {
87
87
  text: tr(
88
88
  "I couldn't schedule that message. Check the time and try again.",
89
- "معرفتش أجدول الرسالة دي. راجع الوقت وجرب تاني.",
89
+ "تعذّرت جدولة هذه الرسالة. راجع الوقت وحاول مرة أخرى.",
90
90
  ),
91
91
  });
92
92
  }
@@ -63,7 +63,7 @@ module.exports = {
63
63
  });
64
64
  }
65
65
 
66
- const status = await createStatus(sock, chatId, tr("📥 Sending...", "📥 جاري الإرسال..."), {
66
+ const status = await createStatus(sock, chatId, tr("📥 Sending...", "📥 جارٍ الإرسال..."), {
67
67
  replyTo: msg,
68
68
  });
69
69
 
@@ -108,7 +108,7 @@ module.exports = {
108
108
  error,
109
109
  tr(
110
110
  "Couldn't re-send it — the media may have expired",
111
- "معرفتش أبعته — ممكن الميديا تكون انتهت",
111
+ "تعذّر إرساله — ربما انتهت صلاحية ملف الوسائط",
112
112
  ),
113
113
  );
114
114
  }
@@ -57,8 +57,8 @@ module.exports = {
57
57
  // binary is otherwise invisible.
58
58
  const ffmpeg = await checkFfmpeg();
59
59
  const ffmpegLine = ffmpeg.ok
60
- ? `✅ ${ffmpeg.version || tr("working", "شغال")}`
61
- : tr(`❌ not working (${ffmpeg.path})`, `❌ مش شغال (${ffmpeg.path})`);
60
+ ? `✅ ${ffmpeg.version || tr("working", "يعمل")}`
61
+ : tr(`❌ not working (${ffmpeg.path})`, `❌ لا يعمل (${ffmpeg.path})`);
62
62
 
63
63
  // --- BUILDING THE REPLY ---
64
64
  const reply = tr(
@@ -15,7 +15,7 @@ module.exports = {
15
15
  aliases: ["stop", "pause"],
16
16
  description: {
17
17
  en: "Pauses the WhatsApp connection (the bot process and panel keep running).",
18
- ar: "يوقف اتصال واتساب مؤقتًا (عملية البوت ولوحة التحكم يفضلوا شغالين).",
18
+ ar: "يوقف اتصال واتساب مؤقتًا (مع استمرار تشغيل البوت ولوحة التحكم).",
19
19
  },
20
20
  usage: {
21
21
  en: "stopbot",
@@ -28,7 +28,7 @@ module.exports = {
28
28
  const session = getSession();
29
29
  if (!session) {
30
30
  return await sock.sendMessage(chatId, {
31
- text: tr("The session manager isn't ready yet.", "مدير الجلسة لسه مش جاهز."),
31
+ text: tr("The session manager isn't ready yet.", "مدير الجلسة غير جاهز بعد."),
32
32
  });
33
33
  }
34
34
 
@@ -37,7 +37,7 @@ module.exports = {
37
37
  return await sock.sendMessage(chatId, {
38
38
  text: tr(
39
39
  "The WhatsApp connection isn't up — nothing to pause.",
40
- "اتصال واتساب مش شغال أصلًا — مفيش حاجة أوقفها.",
40
+ "اتصال واتساب متوقف بالفعل.",
41
41
  ),
42
42
  });
43
43
  }
@@ -47,7 +47,7 @@ module.exports = {
47
47
  await sock.sendMessage(chatId, {
48
48
  text: tr(
49
49
  "⏸️ Pausing the WhatsApp connection. The bot and the control panel stay up — resume from the Connection screen in the panel.",
50
- "⏸️ جاري إيقاف اتصال واتساب مؤقتًا. البوت واللوحة هيفضلوا شغالين — شغّله تاني من شاشة Connection في لوحة التحكم.",
50
+ "⏸️ جارٍ إيقاف اتصال واتساب مؤقتًا. سيستمر تشغيل البوت ولوحة التحكم. يمكنك استئناف الاتصال من صفحة الاتصال في لوحة التحكم.",
51
51
  ),
52
52
  });
53
53
 
@@ -60,7 +60,7 @@ module.exports = {
60
60
  await sock.sendMessage(chatId, {
61
61
  text: tr(
62
62
  "Couldn't pause the connection. Try the panel's Connection screen.",
63
- "معرفتش أوقف الاتصال. جرب شاشة Connection في لوحة التحكم.",
63
+ "تعذّر إيقاف الاتصال. حاول من صفحة الاتصال في لوحة التحكم.",
64
64
  ),
65
65
  });
66
66
  }
@@ -248,7 +248,7 @@ module.exports = {
248
248
  const status = await createStatus(
249
249
  sock,
250
250
  chatId,
251
- tr("🎧 Transcribing...", "🎧 جاري تحويل الصوت إلى نص..."),
251
+ tr("🎧 Transcribing...", "🎧 جارٍ تحويل الصوت إلى نص..."),
252
252
  {
253
253
  replyTo: msg,
254
254
  },
@@ -140,7 +140,7 @@ module.exports = {
140
140
  },
141
141
  usage: {
142
142
  en: "tts <text> (or reply to a text message)",
143
- ar: "tts <النص> (أو رد على رسالة نصية)",
143
+ ar: "tts <النص> (أو ردّ على رسالة نصية)",
144
144
  },
145
145
  chat: "all",
146
146
 
@@ -161,7 +161,7 @@ module.exports = {
161
161
  {
162
162
  text: tr(
163
163
  "📢 Usage:\n!tts <text>\n\nor reply to a text message with !tts\n\n✨ Completely free — no costs!",
164
- "📢 الاستخدام:\n!tts <النص>\n\nأو رد على رسالة نصية بالأمر !tts\n\n✨ مجاني تماماً - بدون تكاليف!",
164
+ "📢 الاستخدام:\n!tts <النص>\n\nأو ردّ على رسالة نصية بالأمر !tts\n\n✨ الخدمة مجانية!",
165
165
  ),
166
166
  },
167
167
  { replyTo: msg },
@@ -299,7 +299,7 @@ async function runCommand(sock, msg, body, { command, args, invokedName, isGroup
299
299
  await sendBotMessage(
300
300
  sock,
301
301
  msg.key.remoteJid,
302
- { text: tr("⛔ This command is turned off right now.", "⛔ الأمر ده متوقف حاليًا.") },
302
+ { text: tr("⛔ This command is turned off right now.", "⛔ هذا الأمر معطّل حاليًا.") },
303
303
  { replyTo: msg },
304
304
  );
305
305
  return true;
@@ -68,7 +68,7 @@ function codeMessage(code) {
68
68
  `If you didn't request this, ignore this message — nobody else can use it.`,
69
69
  `🔐 *${brand.name} — كود إعادة تعيين كلمة السر: ${code}*\n\n` +
70
70
  `ادخل الكود في لوحة التحكم خلال ١٠ دقائق. ` +
71
- `لو مش إنت اللي طلبته، اهمل الرسالة — مفيش حد تاني يقدر يستخدمه.`,
71
+ `إذا لم تطلب هذا الرمز، فتجاهل الرسالة — لا يمكن لأحد سواك استخدامه.`,
72
72
  ),
73
73
  );
74
74
  }
@@ -502,7 +502,7 @@ async function runGeminiTurn({
502
502
  search = null,
503
503
  } = {}) {
504
504
  const genAI = geminiClient();
505
- if (!genAI) throw new Error(tr("No Gemini API key is set", "GEMINI_API_KEY غير معرف"));
505
+ if (!genAI) throw new Error(tr("No Gemini API key is set", "لم يُضبط مفتاح Gemini API"));
506
506
  await assertProviderRequestUrl(settings.get("gemini_base_url"), { allowLoopback: true });
507
507
 
508
508
  const stepBudget = maxSteps ?? settings.get("ai_max_tool_steps");
@@ -622,7 +622,7 @@ async function runGeminiTurn({
622
622
  if (!text && steps >= stepBudget) {
623
623
  text = tr(
624
624
  "I ran the tools I have but couldn't reach a final answer. Try asking more clearly.",
625
- "شغّلت الأدوات المتاحة بس مقدرتش أوصل لإجابة نهائية. جرّب تسأل بصيغة أوضح.",
625
+ "استخدمت الأدوات المتاحة، لكنني لم أتمكن من الوصول إلى إجابة نهائية. حاول صياغة السؤال بوضوح أكبر.",
626
626
  );
627
627
  }
628
628
 
@@ -757,7 +757,7 @@ async function runProviderAgent(
757
757
  parsed.text ||
758
758
  tr(
759
759
  "I ran the tools I have but couldn't reach a final answer. Try asking more clearly.",
760
- "شغّلت الأدوات المتاحة بس مقدرتش أوصل لإجابة نهائية. جرّب تسأل بصيغة أوضح.",
760
+ "استخدمت الأدوات المتاحة، لكنني لم أتمكن من الوصول إلى إجابة نهائية. حاول صياغة السؤال بوضوح أكبر.",
761
761
  ),
762
762
  canonical,
763
763
  toolCalls,