mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
13 lines
378 B
TypeScript
13 lines
378 B
TypeScript
import BaseAction from '../BaseAction'
|
|
import { NTQQUserApi } from '../../../ntqqapi/api'
|
|
import { groups } from '../../../common/data'
|
|
import { ActionName } from '../types'
|
|
|
|
export class GetCookies extends BaseAction<null, { cookies: string; bkn: string }> {
|
|
actionName = ActionName.GetCookies
|
|
|
|
protected async _handle() {
|
|
return NTQQUserApi.getCookie(groups[0])
|
|
}
|
|
}
|