سكربت Python بسيط يقوم بنشر آية عشوائية من القرآن الكريم تلقائيًا إلى قناة أو مجموعة على تيليجرام كل ساعتين.
- نشر آية عشوائية من القرآن الكريم مع اسم السورة ورقم الآية.
- قراءة الآيات من ملف محلي
quran.jsonلضمان السرعة والاعتمادية. - استخدام متغيرات البيئة (
.env) لتخزين بيانات API بشكل آمن. - مصمم للعمل بسلاسة كـ Cron Job مجدول على خادم Linux أو VPS.
- Python 3.x
- مكتبة
requests - مكتبة
python-dotenv
قم برفع ملف السكربت (bot.py) وملف quran.json إلى المجلد المخصص على الخادم، على سبيل المثال:
/home/Bot/pip install requests python-dotenv#English
A simple Python script that automatically posts a random Quran verse to a Telegram channel or group every two hours.
- Posts a random Quran verse along with the Surah name and Ayah number.
- Reads verses from a local
quran.jsonfile for fast and reliable execution. - Uses environment variables (
.env) to securely store API credentials. - Designed to run seamlessly as a scheduled Cron job on a Linux/VPS server.
- Python 3.x
requestslibrarypython-dotenvlibrary
Upload the script (bot.py) and the quran.json file to your designated directory on the server, for example:
/home/Bot/pip install requests python-dotenv