Duplicated from 8e/coze2api
b16a992
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh # 检查环境变量CONFIG是否已设置 if [ -z "$BOT_CONFIG" ]; then echo "环境变量CONFIG未设置。" exit 1 fi # 将环境变量CONFIG的值写入bot_config.json文件 echo "$BOT_CONFIG" > /app/coze-discord-proxy/data/config/bot_config.json # 执行传递给脚本的命令(例如,启动您的应用程序) exec "$@"