diff --git a/src/controller/IsekaiBBSQuicklyPost.ts b/src/controller/IsekaiBBSQuicklyPost.ts index e0ebf85..166cf0d 100644 --- a/src/controller/IsekaiBBSQuicklyPost.ts +++ b/src/controller/IsekaiBBSQuicklyPost.ts @@ -6,11 +6,11 @@ import { CommonReceivedMessage } from "../message/Message"; import { MessagePriority, PluginController, PluginEvent } from "../PluginManager"; import got from "got/dist/source"; import { RandomMessage } from "../utils/RandomMessage"; -import { QQForwardingMessage } from "src/robot/qq/Message"; -import QQRobot from "src/robot/QQRobot"; -import { ChatIdentity, UserSender } from "src/message/Sender"; -import { Utils } from "src/utils/Utils"; -import { MessageUtils } from "src/utils/message"; +import { QQForwardingMessage } from "../robot/qq/Message"; +import QQRobot from "../robot/QQRobot"; +import { ChatIdentity, UserSender } from "../message/Sender"; +import { Utils } from "../utils/Utils"; +import { MessageUtils } from "../utils/message"; export type IsekaiBBSQuicklyPostConfig = { api_endpoint: string, diff --git a/src/message/Message.ts b/src/message/Message.ts index 0c0b689..7a18ea6 100644 --- a/src/message/Message.ts +++ b/src/message/Message.ts @@ -2,8 +2,8 @@ import { Robot } from "../RobotManager"; import { CacheStore } from "../CacheManager"; import { MessageDataType, MessageSchemaType, chatIdentityToDB } from "../odm/Message"; import { BaseSender, ChatIdentity, GroupSender, IMessageSender, UserSender } from "./Sender"; -import { LiteralUnion } from "src/utils/types"; -import { Utils } from "src/utils/Utils"; +import { LiteralUnion } from "../utils/types"; +import { Utils } from "../utils/Utils"; export enum MessageDirection { RECEIVE = 1, diff --git a/src/robot/qq/InfoProvider.ts b/src/robot/qq/InfoProvider.ts index 2604ed5..f2375b6 100644 --- a/src/robot/qq/InfoProvider.ts +++ b/src/robot/qq/InfoProvider.ts @@ -3,8 +3,8 @@ import { compareProps } from "../../utils/func"; import QQRobot, { QQRobotConfig } from "../QQRobot"; import { QQGroupSender, QQUserSender } from "./Message"; import { GroupInfoType, GroupUserInfoType, UserInfoType } from "../../message/Sender"; -import { CommonMessage } from "src/message/Message"; -import { RobotStorage } from "src/storage/RobotStorage"; +import { CommonMessage } from "../../message/Message"; +import { RobotStorage } from "../../storage/RobotStorage"; export type QQGroupInfo = { groupId: string, diff --git a/src/robot/qq/Message.ts b/src/robot/qq/Message.ts index 19820fb..af11285 100644 --- a/src/robot/qq/Message.ts +++ b/src/robot/qq/Message.ts @@ -124,7 +124,7 @@ export async function parseQQMessageChunk(bot: QQRobot, messageData: any[], mess break; case 'face': if (chunkData.data?.id) { - let emojiChar = qqFaceToEmoji(chunkData.data.id); + let emojiChar = qqFaceToEmoji(parseInt(chunkData.data.id)); message.content.push({ type: ['emoji', 'qqface'], text: emojiChar, diff --git a/src/utils/message.ts b/src/utils/message.ts index 7c973d2..1a1168b 100644 --- a/src/utils/message.ts +++ b/src/utils/message.ts @@ -1,4 +1,4 @@ -import { MessageChunk } from "src/message/Message"; +import { MessageChunk } from "../message/Message"; export class MessageUtils {