chore: initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import type {Json} from '../../../../types/bot/workflow/workflow.ts';
|
||||
import type {WorkflowEventTemplate} from '../../../../types/bot/workflow/metadata.ts';
|
||||
import {describe, output, event_args_output} from '../../metadata.ts';
|
||||
import {normalize_custom_event} from './custom.ts';
|
||||
|
||||
export const config_template: WorkflowEventTemplate = {
|
||||
name: 'spawn', version: '1.0.0', readiness: 'spawned',
|
||||
i18n: describe('出生事件', '通知机器人已出生;输出不包含机器人实例。'),
|
||||
config: [],
|
||||
output: {
|
||||
...output('object', '出生通知', '机器人出生事件的通知数据。'),
|
||||
properties: {event: output('string', '事件名称', '固定为 spawn。'), args: event_args_output},
|
||||
},
|
||||
};
|
||||
|
||||
export function normalize(args: unknown[] = []): Record<string, Json> | undefined {
|
||||
return normalize_custom_event('spawn', args);
|
||||
}
|
||||
Reference in New Issue
Block a user