Skip to content

v1.1.0

Compare
Choose a tag to compare
@flxxyz flxxyz released this 10 May 19:13
· 118 commits to master since this release

新增加调试模式,支持所有消息输出到文件保存

起因: #6 #5 #2

命令行

douyudm -i [房间号] --debug

API

const douyu = require('douyudm')
const roomId = 房间号
const client = new douyu(roomId, {
    debug: true,
})

日志保存路径

默认保存至当前运行的目录下,以 房间号.log 的形式存放

const client = new douyu(roomId, {
    debug: true,
    logfile: '日志存放的完整路径,包含文件名',
})