Files
new_lottery_bot/QUICK_START.txt
Andrew K. Choi 0fdf01d1c7 feat: update admin panel keyboard structure and registration button logic
- Updated admin panel keyboard to match admin_panel.py handlers
- Changed registration button logic: show only for unregistered non-admins
- Added missing methods to IBotController interface
- Updated get_main_keyboard to accept is_registered parameter
- Simplified admin panel structure with proper callback routing
- Removed test callback button from production UI
- Created ADMIN_PANEL_STRUCTURE.md and ADMIN_PANEL_TESTING.md documentation
2025-11-17 07:50:08 +09:00

47 lines
2.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

╔════════════════════════════════════════════════════════════════╗
║ 🤖 УПРАВЛЕНИЕ БОТОМ - ШПАРГАЛКА ║
╚════════════════════════════════════════════════════════════════╝
⚡ БЫСТРЫЕ КОМАНДЫ:
make bot-start → Запустить бота
make bot-stop → Остановить бота
make bot-restart → Перезапустить бота
make bot-status → Проверить состояние
make bot-logs → Смотреть логи (Ctrl+C для выхода)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ ПРОБЛЕМА: Бот не реагирует на команды?
ПРИЧИНА: Запущено несколько экземпляров бота одновременно
РЕШЕНИЕ:
1. make bot-restart (перезапустит правильно)
2. make bot-status (проверит что запущен только один)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 ДИАГНОСТИКА:
Проверить процессы:
ps aux | grep "python main.py" | grep -v grep
(Должна быть ОДНА строка!)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📁 ФАЙЛЫ:
Логи: /tmp/bot_single.log
PID: .bot.pid
Скрипт: ./bot_control.sh
Документ: BOT_MANAGEMENT.md
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
❌ НИКОГДА НЕ ИСПОЛЬЗУЙ: make run (для продакшена)
✅ ВСЕГДА ИСПОЛЬЗУЙ: make bot-start
╚════════════════════════════════════════════════════════════════╝