Update hbcao.sh
Browse files
hbcao.sh
CHANGED
|
@@ -45,6 +45,7 @@ rm "$WORKDIR/mtgbot/plugins/pan.py"
|
|
| 45 |
chmod +x "$WORKDIR/mtgbot/tgbot.sh"
|
| 46 |
ln -s "$WORKDIR/mtgbot/tgbot.sh" /usr/bin/tgbot
|
| 47 |
cat > "$WORKDIR/mtgbot/.env" << 'EOF'
|
|
|
|
| 48 |
# Bot Token, get it by chating with @BotFather
|
| 49 |
token = 7704900702:AAEFK0x44R7PQA5ZSnbBIg1x4cswcx2yri0
|
| 50 |
debug = 0
|
|
@@ -63,6 +64,11 @@ proxy_port =
|
|
| 63 |
proxy_username =
|
| 64 |
proxy_password =
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
telegraph_author_name = 小派魔
|
| 68 |
telegraph_author_url = https://t.me/hbcao1bot
|
|
@@ -87,10 +93,6 @@ python -m pip install -r requirements.txt
|
|
| 87 |
|
| 88 |
cp -r "$WORKDIR/mtgbot/libs/telethon" "/usr/local/lib/python3.10/site-packages/"
|
| 89 |
echo -e "${PINK}【9】安装插件!${NC}"
|
| 90 |
-
cd "$WORKDIR/mtgbot/plugins" && rm chat.py
|
| 91 |
-
cd "$WORKDIR/mtgbot/plugins" && aria2c -x 16 -s 16 -c -k 1M "https://www.modelscope.cn/datasets/ACCC1380/code235/resolve/master/chat.py"
|
| 92 |
-
cd "$WORKDIR/mtgbot/plugins" && aria2c -x 16 -s 16 -c -k 1M "https://www.modelscope.cn/datasets/ACCC1380/code235/resolve/master/chat.py"
|
| 93 |
-
cd "$WORKDIR/mtgbot/plugins" && aria2c -x 16 -s 16 -c -k 1M "https://www.modelscope.cn/datasets/ACCC1380/code235/resolve/master/chat.py"
|
| 94 |
|
| 95 |
echo -e "${PINK}【10】所有步骤已完成!${NC}"
|
| 96 |
cd "$WORKDIR/mtgbot/" && python main.py > ./bot.log 2>&1 &
|
|
|
|
| 45 |
chmod +x "$WORKDIR/mtgbot/tgbot.sh"
|
| 46 |
ln -s "$WORKDIR/mtgbot/tgbot.sh" /usr/bin/tgbot
|
| 47 |
cat > "$WORKDIR/mtgbot/.env" << 'EOF'
|
| 48 |
+
|
| 49 |
# Bot Token, get it by chating with @BotFather
|
| 50 |
token = 7704900702:AAEFK0x44R7PQA5ZSnbBIg1x4cswcx2yri0
|
| 51 |
debug = 0
|
|
|
|
| 64 |
proxy_username =
|
| 65 |
proxy_password =
|
| 66 |
|
| 67 |
+
#chat.py
|
| 68 |
+
chat_api_url = "https://cloud.infini-ai.com/maas/v1"
|
| 69 |
+
chat_api_key = "sk-dard7oinqdjqwklr"
|
| 70 |
+
chat_model = "deepseek-r1"
|
| 71 |
+
chat_max_tokens = 8192
|
| 72 |
|
| 73 |
telegraph_author_name = 小派魔
|
| 74 |
telegraph_author_url = https://t.me/hbcao1bot
|
|
|
|
| 93 |
|
| 94 |
cp -r "$WORKDIR/mtgbot/libs/telethon" "/usr/local/lib/python3.10/site-packages/"
|
| 95 |
echo -e "${PINK}【9】安装插件!${NC}"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
|
| 97 |
echo -e "${PINK}【10】所有步骤已完成!${NC}"
|
| 98 |
cd "$WORKDIR/mtgbot/" && python main.py > ./bot.log 2>&1 &
|