cd C:\Users\admin\CometX-Automation-Bot
pip install -r requirements.txtانسخ .env.example إلى .env وحط التوكنات الخاصة فيك:
copy .env.example .env
notepad .envتشغيل السيرفر:
python main.pyالسيرفر بيشتغل على: http://localhost:8000
اختبار الأتمتة:
python automation_engine.pyعن طريق API:
# إرسال رسالة
curl -X POST http://localhost:8000/chat -H "Content-Type: application/json" -d "{\"user_id\":\"test\",\"message\":\"Start automation\"}"
# تشغيل الأتمتة
curl -X POST http://localhost:8000/automation/trigger -H "Content-Type: application/json" -d "{\"user_id\":\"test\"}"
# عرض التاريخ
curl http://localhost:8000/automation/history/testعن طريق المتصفح: افتح: http://localhost:8000/docs
python build_exe.pyالبرنامج بيكون في: dist/CometX-Bot.exe
| الأمر | الوصف |
|---|---|
Start automation |
تشغيل الأتمتة الكاملة |
history |
عرض تاريخ المحادثات |
status |
حالة آخر أتمتة |
مشكلة: Token غير صحيح
- تأكد من التوكنات في ملف
.env - تأكد من صلاحيات التوكنات
مشكلة: فشل الاتصال
- تأكد من الإنترنت
- تأكد من URLs في
.env
مشكلة: قاعدة البيانات
- احذف
cometx_memory.dbوشغل من جديد
واجهتك مشكلة؟
- شوف ملف README.md الأساسي
- افحص الـ logs
- جرب الاختبار:
python automation_engine.py