-
Notifications
You must be signed in to change notification settings - Fork 35
/
autow.sh
executable file
·65 lines (58 loc) · 1.69 KB
/
autow.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
echo -e ""
read -rp "命令: " cmd
read -rp "描述: " tip
echo -e ""
readme="$cmd - $tip"
cfg=" - \"$cmd - $tip\""
l="- [x] $cmd $tip"
if [ "$(uname)" != "Darwin" ]; then
# Mac OS X 操作系统
echo -e "1) crypto"
echo -e "2) video"
echo -e "3) image"
echo -e "4) utils"
echo -e "5) list"
read -rp "分类: " type
case $type in
1)
t="- \"list_wallet_tracking - 列出正在追踪的聪明钱包地址\""
list="### 1. 加密货币监控功能清单"
sed -i "/$list/a\\$l" README.md
;;
2)
t="- \"douyin_download - 下载douyin的视频\""
list="### 7. 视频下载"
sed -i "/$list/a\\$l" README.md
;;
3)
t="- \"cutout - 抠图功能\""
list="### 8. 贴纸和GIF下载"
sed -i "/$list/a\\$l" README.md
;;
4)
t="- \"chatid - 查询chatid\""
list="### 9. 工具箱"
sed -i "/$list/a\\$l" README.md
;;
5)
t="- \"cmd_list - 列出全部功能\""
;;
*)
list="### 1. 加密货币监控功能清单"
t="- \"list_wallet_tracking - 列出正在追踪的聪明钱包地址\""
sed -i "/$list/a\\$l" README.md
;;
esac
sed -i "/chatid - 查询chatid/a\\$readme" README.md
sed -i "/$t/a\\$cfg" all-in-one-bot.yml
fi
echo -e "case \"$cmd\":"
echo -e " Cmd = \"$cmd\""
echo -e " tips(update.Message.Chat.ID, \"$tip\")"
echo -e "----------------------------------------"
echo -e " - \"$cmd $tip\""
echo -e "----------------------------------------"
echo -e "- [x] $cmd $tip"
echo -e "----------------------------------------"
echo -e "$cmd - $tip"