修复import目录错误

main
落雨楓 1 year ago
parent 8324766ee2
commit cca3917dcd

@ -6,11 +6,11 @@ import { CommonReceivedMessage } from "../message/Message";
import { MessagePriority, PluginController, PluginEvent } from "../PluginManager"; import { MessagePriority, PluginController, PluginEvent } from "../PluginManager";
import got from "got/dist/source"; import got from "got/dist/source";
import { RandomMessage } from "../utils/RandomMessage"; import { RandomMessage } from "../utils/RandomMessage";
import { QQForwardingMessage } from "src/robot/qq/Message"; import { QQForwardingMessage } from "../robot/qq/Message";
import QQRobot from "src/robot/QQRobot"; import QQRobot from "../robot/QQRobot";
import { ChatIdentity, UserSender } from "src/message/Sender"; import { ChatIdentity, UserSender } from "../message/Sender";
import { Utils } from "src/utils/Utils"; import { Utils } from "../utils/Utils";
import { MessageUtils } from "src/utils/message"; import { MessageUtils } from "../utils/message";
export type IsekaiBBSQuicklyPostConfig = { export type IsekaiBBSQuicklyPostConfig = {
api_endpoint: string, api_endpoint: string,

@ -2,8 +2,8 @@ import { Robot } from "../RobotManager";
import { CacheStore } from "../CacheManager"; import { CacheStore } from "../CacheManager";
import { MessageDataType, MessageSchemaType, chatIdentityToDB } from "../odm/Message"; import { MessageDataType, MessageSchemaType, chatIdentityToDB } from "../odm/Message";
import { BaseSender, ChatIdentity, GroupSender, IMessageSender, UserSender } from "./Sender"; import { BaseSender, ChatIdentity, GroupSender, IMessageSender, UserSender } from "./Sender";
import { LiteralUnion } from "src/utils/types"; import { LiteralUnion } from "../utils/types";
import { Utils } from "src/utils/Utils"; import { Utils } from "../utils/Utils";
export enum MessageDirection { export enum MessageDirection {
RECEIVE = 1, RECEIVE = 1,

@ -3,8 +3,8 @@ import { compareProps } from "../../utils/func";
import QQRobot, { QQRobotConfig } from "../QQRobot"; import QQRobot, { QQRobotConfig } from "../QQRobot";
import { QQGroupSender, QQUserSender } from "./Message"; import { QQGroupSender, QQUserSender } from "./Message";
import { GroupInfoType, GroupUserInfoType, UserInfoType } from "../../message/Sender"; import { GroupInfoType, GroupUserInfoType, UserInfoType } from "../../message/Sender";
import { CommonMessage } from "src/message/Message"; import { CommonMessage } from "../../message/Message";
import { RobotStorage } from "src/storage/RobotStorage"; import { RobotStorage } from "../../storage/RobotStorage";
export type QQGroupInfo = { export type QQGroupInfo = {
groupId: string, groupId: string,

@ -124,7 +124,7 @@ export async function parseQQMessageChunk(bot: QQRobot, messageData: any[], mess
break; break;
case 'face': case 'face':
if (chunkData.data?.id) { if (chunkData.data?.id) {
let emojiChar = qqFaceToEmoji(chunkData.data.id); let emojiChar = qqFaceToEmoji(parseInt(chunkData.data.id));
message.content.push({ message.content.push({
type: ['emoji', 'qqface'], type: ['emoji', 'qqface'],
text: emojiChar, text: emojiChar,

@ -1,4 +1,4 @@
import { MessageChunk } from "src/message/Message"; import { MessageChunk } from "../message/Message";
export class MessageUtils { export class MessageUtils {

Loading…
Cancel
Save