Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修正adapter.id #29

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

this.markdown = restConfig
this.account = { uid: appId, uin: appId, name: '' }
this.adapter = { id: 'QQ', name: 'QQBot', type: 'internal', sub_type: 'internal', start_time: Date.now(), connect: '', index: 0 }
this.adapter = { id: 'QQBot', name: 'QQBot', type: 'internal', sub_type: 'internal', start_time: Date.now(), connect: '', index: 0 }
this.version = { name: 'QQBot', app_name: 'QQBot', version: Config.package.version }

this.super = new QQBotApi(this.#config)
Expand Down Expand Up @@ -124,7 +124,7 @@
raw_message: '',
}

const e = new KarinMessage(message)

Check failure on line 127 in src/core/index.ts

View workflow job for this annotation

GitHub Actions / build

Argument of type '{ event: EventType.Message; sub_event: MessageSubType.GroupMessage; raw_event: GroupAtMessageCreateEvent; event_id: string; self_id: string; user_id: string; ... 7 more ...; raw_message: string; }' is not assignable to parameter of type 'BaseEventDataType & { event: EventType.Message; sub_event: MessageSubType; message_id: string; message_seq?: number | undefined; elements: KarinElement[]; }'.
e.bot = this
e.replyCallback = async elements => await this._sendNsg(e, elements, PathType.Groups, e.contact.peer, e.message_id)

Expand Down Expand Up @@ -161,7 +161,7 @@
raw_message: '',
}

const e = new KarinMessage(message)

Check failure on line 164 in src/core/index.ts

View workflow job for this annotation

GitHub Actions / build

Argument of type '{ event: EventType.Message; sub_event: MessageSubType.PrivateMessage; raw_event: C2CMessageCreateEvent; event_id: string; self_id: string; user_id: string; ... 7 more ...; raw_message: string; }' is not assignable to parameter of type 'BaseEventDataType & { event: EventType.Message; sub_event: MessageSubType; message_id: string; message_seq?: number | undefined; elements: KarinElement[]; }'.
e.bot = this
e.replyCallback = async elements => await this._sendNsg(e, elements, PathType.Friends, e.contact.peer, e.message_id)

Expand Down
Loading