feat: add /ping & /tips command

This commit is contained in:
草师傅 2025-08-02 21:07:15 +08:00
parent 3cfc94b321
commit 7d52e23522
2 changed files with 35 additions and 1 deletions

View file

@ -18,7 +18,8 @@ from core.post_to_fedi import handle_auth, handle_post_to_fedi
from core.promote import handle_promote_command
from core.repeater import MessageRepeater
from core.report_links import report_broken_links
from core.simple import handle_start_command, handle_baka, dummy_handler, handle_info_command
from core.simple import handle_start_command, handle_baka, dummy_handler, handle_info_command, handle_ping_command, \
handle_tips_command
from core.actions import handle_actions, handle_reverse_actions
from core.stats import handle_stats_command
from core.middleware.stats import MessageStatsMiddleware
@ -45,6 +46,8 @@ class TelegramAdapter:
# Register handlers on router
router.message(CommandStart())(handle_start_command)
router.message(Command('info'))(handle_info_command)
router.message(Command('ping'))(handle_ping_command)
router.message(Command('tips'))(handle_tips_command)
# bitflip 模块
router.message(Command('bitflip'))(handle_bitflip_command)
# promote 模块