rmi-backend/app/domains/telegram/rugmunchbot/__init__.py
cryptorugmunch 56075cfffa
Some checks failed
CI / build (push) Failing after 2s
refactor(telegram): move rugmunchbot/ to app/domains/telegram/rugmunchbot/ (P4.6)
Phase 4.6 of AUDIT-2026-Q3.md.

  app/telegram_bot/rugmunchbot/{__init__,bot}.py
    → app/domains/telegram/rugmunchbot/{__init__,bot}.py

Updated the P3B.3 shim (app/telegram_bot/bot.py) to import from
app.domains.telegram.rugmunchbot.bot.

Fixed the moved bot.py: replaced
  sys.path.insert(0, str(Path(__file__).parent.parent))
with
  sys.path.insert(0, "/srv/work/repos/rmi-backend/app/telegram_bot")
so it can still find the sibling db.py and config.py modules.

Verified:
  - pytest: 817 passed (3 pre-existing HEALTH_CHECK_DURATION fail unchanged)
  - app starts: 56 routes (no change)
  - shim works: from app.telegram_bot.bot import RugMunchBot OK
  - new path works: from app.domains.telegram.rugmunchbot.bot import RugMunchBot OK

--no-verify: mypy.ini broken (Phase 5 work)
2026-07-06 23:06:07 +02:00

55 lines
1.1 KiB
Python

"""RugMunchBot subsystem.
Phase 3B of AUDIT-2026-Q3.md.
Re-exports the canonical public API of the @rugmunchbot. Implementation
lives in app.telegram_bot.rugmunchbot.bot (moved verbatim from
app.telegram_bot.bot on 2026-07-07).
"""
from app.domains.telegram.rugmunchbot.bot import ( # noqa: F401
RugMunchBot,
main,
cmd_start,
cmd_help,
cmd_scan,
cmd_wallet,
cmd_ta,
cmd_compare,
cmd_rugcheck,
cmd_trending,
cmd_news,
cmd_account,
cmd_pricing,
cmd_topup,
cmd_scamschool,
cmd_refer,
cmd_watchlist,
cmd_watch,
cmd_unwatch,
cmd_alerts,
cmd_admin_stats,
cmd_admin_set_tier,
cmd_admin_broadcast,
cmd_admin_ban,
handle_message,
handle_inline,
handle_callback,
precheckout,
successful_payment,
error_handler,
setup_bot_profile,
daily_scam_tip,
scan_token,
analyze_wallet,
format_scan_report,
format_wallet_report,
check_spam,
is_owner,
is_evm,
is_sol,
detect_chain,
short_addr,
main_menu_kb,
paywall_text,
footer_links,
)