Skip to content

Commit

Permalink
fix: 机器人uid未匹配
Browse files Browse the repository at this point in the history
  • Loading branch information
orangelckc committed Jan 27, 2023
1 parent 50da52e commit 30dbcec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bili-bot",
"private": true,
"version": "1.2.4",
"version": "1.2.5",
"type": "module",
"scripts": {
"dev": "npm run build:icon & vite",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bili-bot"
version = "1.2.4"
version = "1.2.5"
description = "哔哩哔哩-直播间管家机器人"
authors = ["半糖人类"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/views/Robot/message/robot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const init_listener = async () => {
const { uname, message, isEmoji, uid } = item.barrage;
message && msgList.value.push({ uname, message });
if (!active.value) return;
if (message && uid !== (await getStore(LOGIN_INFO.uid))) {
if (message && uid !== parseInt(await getStore(LOGIN_INFO.uid))) {
if (message.includes(`@${manage.robotName}`)) {
const question = message.replace(`@${manage.robotName}`, "").trim();
if (question.includes("粉丝数") || question.includes("今日目标")) {
Expand Down

0 comments on commit 30dbcec

Please sign in to comment.