mahdiyar30301/ZorenixAI_botPublic · Bot Template

Not Bot Is Hacking You 🤣🤩

Utilityutility
ProfileTelegram
455 commands2 envUpdated 6h agoCreated Aug 26, 2026
Back to folder

commands/rstin.js

javascript · 63 lines

Raw
1/**#command2name: rstin3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/**#command13name: rstin14answer: 15keyboard: 16parse_mode: 17aliases: 18allow_only_group: false19need_reply: false20is_web: 021#command**/22 23try {24try { Api.answerCallbackQuery({}); } catch (e0) {}25var uid = "";26if (typeof user !== "undefined" && user) {27  if (user.telegramid) uid = String(user.telegramid);28  else if (user.id) uid = String(user.id);29}30if (!uid) return;31 32var text = "";33if (typeof params !== "undefined" && params) text = String(params).trim();34if (!text && typeof message !== "undefined" && message) {35  if (typeof message === "object") text = String(message.text || message.caption || "");36  else text = String(message);37}38text = String(text || "").trim();39 40if (text === "لغو" || text === "🔴 لغو") {41  await db.global.set("await_plus_" + uid, "");42  await db.global.set("plus_mode_" + uid, "");43  Bot.sendMessage("لغو شد");44  return;45}46if (!text) { Bot.sendMessage("متن توهین را بفرست."); return; }47await db.global.set("await_plus_" + uid, "");48await db.global.set("plus_mode_" + uid, "");49await db.global.set("last_ask_uid_" + uid, uid);50await db.global.set("last_status_" + uid, "حاضرجوابی");51await db.global.set("last_user_prompt_" + uid, text);52try { Api.sendChatAction({ chat_id: uid, action: "typing" }); } catch (eT) {}53HTTP.post({54  url: "https://api.groq.com/openai/v1/chat/completions",55  headers: { "Authorization": "Bearer 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" },56  body: { model: "openai/gpt-oss-20b", messages: [57    { role: "system", content: "حاضرجواب حرفه‌ای فارسی. کاربر توهینی که شنیده را می‌فرستد. ۳ جواب کوتاه، باکلاس، تیز، بدون فحش رکیک و بدون توهین نژادی/جنسی. هر جواب حداکثر ۲ خط. شماره بزن." },58    { role: "user", content: text.slice(0, 500) }59  ] },60  background: true, success: "/onAiSuccess", error: "/onAiError"61});62 63} catch (e) { Bot.sendMessage("خطا rstin"); }