Skip to content
On this page

启动参数

使用启动参数修改一些内置变量

参数是否需要值默认值释义
--debug以 DEBUG 模式启动程序
--browser-width1280浏览器视窗默认宽度(px)
--browser-height720浏览器视窗默认高度(px)
--browser-render-time200浏览器默认渲染时间(ms)
--text-max-length100Chain 对象转换文字图片的文字长度最大值
--browser-page-not-close取消自动关闭 playwright 的网页窗口

在 兔兔-v6 下使用

代码部署

bash
python amiya.py --text-max-length 200 --browser-render-time 1000

可执行文件部署

bash
AmiyaBot-v6.x.x-master.exe --debug --browser-page-not-close