Skip to content

Commit

Permalink
fix: 命令行模式没有获取到忽略事件名
Browse files Browse the repository at this point in the history
  • Loading branch information
flxxyz committed Jan 3, 2021
1 parent d994bc2 commit 0f86033
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ program
.requiredOption('-i, --id <number>', '输入房间id')
.option('-j, --uenter', '忽略用户进入房间', false)
.option('--debug', '开启debug模式,输出消息内容保存到文件', false)
.option('--ignore', '忽略掉一些消息事件', '')
.option('--ignore [list]', '忽略掉一些消息事件', '')
.version(package.version)
.parse(process.argv);

const ignore = program.ignore
.split(',')
.filter(() => false);
.filter(Boolean);

const opts = {
debug: program.debug,
Expand Down
1 change: 1 addition & 0 deletions src/messageEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
// npv 是否需要手机验证
// best_dlev 最高酬勤等级
// cur_lev 酬勤等级
console.log('[loginres]', '登录成功');
},
chatmsg: function (r) {
// 弹幕消息
Expand Down

0 comments on commit 0f86033

Please sign in to comment.