开始宠物学习、打工或冒险。
调用
const result = await api.start_pet_activity(self_id, activity, option_name, friend_id, sub_event_type)
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
self_id |
number | 是 | 在线 Bot QQ 号 |
activity |
string | 是 | school / 学习、work / 打工 或 adventure / 冒险 |
option_name |
string | 否 | 活动选项中的名称;与 sub_event_type 至少传一个 |
friend_id |
number | 否 | 雇佣的好友 QQ 号,仅打工和冒险可用 |
sub_event_type |
number | 否 | get_pet_activity_options 返回的稳定子事件类型;传入后优先按此字段选项 |
返回值
{
success: true,
pet_id: 'PET_ID',
activity: 'school',
option_name: '蹦蹦跳跳体能课',
sub_event_type: 6101,
story_id: '6100_xxx',
started: true,
hired_friend_id: '',
hired_pet_id: '',
}