// code from goatstore // api: https://store.agi.bd const axios = require("axios"); module.exports = { config: { name: "namaz", aliases: ["salat", "salah"], version: "2.0", author: "Sakib", countDown: 5, role: 0, shortDescription: "আজকের নামাজের সময়", longDescription: "বগুড়া শিবগঞ্জের আজকের পাঁচ ওয়াক্ত নামাজের সময় দেখাবে", category: "Islamic", guide: "{pn}" }, onStart: async function ({ message }) { try { const res = await axios.get( "https://api.aladhan.com/v1/timingsByAddress", { params: { address: "Shibganj, Bogura, Bangladesh", method: 1, school: 1 }, timeout: 10000 } ); if (!res.data || res.data.code !== 200) { throw new Error("Prayer API error"); } const data = res.data.data; const t = data.timings; const date = data.date.readable; const hijri = data.date.hijri; const text = `╭──────────────╮\n` + ` 🕌 𝗡𝗔𝗠𝗔𝗭 𝗧𝗜𝗠𝗘 🕌\n` + `╰──────────────╯\n\n` + `📍 স্থান: শিবগঞ্জ, বগুড়া\n` + `📅 তারিখ: ${date}\n` + `🌙 হিজরি: ${hijri.day} ${hijri.month.en} ${hijri.year}\n\n` + `🌅 ফজর ➜ ${t.Fajr}\n` + `☀️ যোহর ➜ ${t.Dhuhr}\n` + `🌤️ আসর ➜ ${t.Asr}\n` + `🌇 মাগরিব ➜ ${t.Maghrib}\n` + `🌙 এশা ➜ ${t.Isha}\n\n` + `🤲 আল্লাহ আমাদের সবাইকে পাঁচ ওয়াক্ত নামাজ আদায় করার তাওফিক দিন।\n` + ` ── আমিন ──`; await message.reply(text); } catch (error) { console.error("Namaz Error:", error.message); await message.reply( "❌ নামাজের সময় আনতে সমস্যা হয়েছে।\n" + "কিছুক্ষণ পর আবার চেষ্টা করুন।" ); } } };