mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 14:41:14 +00:00
Moved action example files into a new 'example' directory and updated all imports accordingly. Removed the monolithic 'examples.ts' and redefined ActionExamples in OneBotAction.ts to only include common error codes. This improves code organization and maintainability.
46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
export const ExtendsActionsExamples = {
|
|
OCRImage: {
|
|
payload: { image: 'image_id_123' },
|
|
response: { texts: [{ text: '识别内容', coordinates: [] }] },
|
|
},
|
|
GetAiCharacters: {
|
|
payload: { group_id: '123456' },
|
|
response: [
|
|
{
|
|
type: 'string',
|
|
characters: [
|
|
{ character_id: 'id', character_name: 'name', preview_url: 'url' }
|
|
]
|
|
}
|
|
],
|
|
},
|
|
GetClientkey: {
|
|
payload: {},
|
|
response: { clientkey: 'abcdef123456' },
|
|
},
|
|
SetQQAvatar: {
|
|
payload: { file: 'base64://...' },
|
|
response: null,
|
|
},
|
|
SetGroupKickMembers: {
|
|
payload: { group_id: '123456', user_id: ['123456789'], reject_add_request: false },
|
|
response: null,
|
|
},
|
|
TranslateEnWordToZn: {
|
|
payload: { words: ['hello'] },
|
|
response: { words: ['你好'] },
|
|
},
|
|
GetRkey: {
|
|
payload: {},
|
|
response: { rkey: '...' },
|
|
},
|
|
SetLongNick: {
|
|
payload: { longNick: '个性签名' },
|
|
response: null,
|
|
},
|
|
SetSpecialTitle: {
|
|
payload: { group_id: '123456', user_id: '123456789', special_title: '头衔' },
|
|
response: null,
|
|
},
|
|
};
|