mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-12 00:11:31 +00:00
~优化tg-bot绑定流程,增加循环检测对话ID机制 ~优化tg-bot启动逻辑,现在不会随着内核服务重启而重启进而导致死循环 ~优化公网防火墙功能,增加一键清空功能,增加vmess和ss端口的额外显示 ~优化vmess和ss的界面逻辑,增加vmess一键生成时的混淆host输入 ~修复因为未选择ss加密类型而导致启动失败的bug ~修复小米/网件镜像化设备重启后服务丢失的bug ~修复因为切换vmess和ss端口导致公网防火墙启动报错的bug ~修复6-5设置定时任务报错的bug
18 lines
473 B
Bash
18 lines
473 B
Bash
|
|
. "$CRASHDIR"/libs/set_cron.sh
|
|
|
|
bot_tg_start(){
|
|
. "$CRASHDIR"/starts/start_legacy.sh
|
|
start_legacy "$CRASHDIR/menus/bot_tg.sh" 'bot_tg'
|
|
bot_tg_cron
|
|
}
|
|
bot_tg_stop(){
|
|
cronset 'TG_BOT守护进程'
|
|
[ -f "$TMPDIR/bot_tg.pid" ] && kill -TERM "$(cat "$TMPDIR/bot_tg.pid")"
|
|
rm -f "$TMPDIR/bot_tg.pid"
|
|
}
|
|
bot_tg_cron(){
|
|
cronset 'TG_BOT守护进程'
|
|
cronset 'TG_BOT守护进程' "* * * * * /bin/sh $CRASHDIR/starts/start_legacy_wd.sh bot_tg #ShellCrash-TG_BOT守护进程"
|
|
}
|