|
@@ -276,6 +276,9 @@ export default class {
|
|
|
.then(() => this.bot.sendTo(receiver, `已显示当前用户 ${storyItems.length} 条可用限时动态中的第 ${sendRangeText} 条。`));
|
|
|
})
|
|
|
.catch((error: IgClientError & Partial<RequestError>) => {
|
|
|
+ if (error instanceof IgExactUserNotFoundError) {
|
|
|
+ this.bot.sendTo(receiver, `找不到用户 ${rawUserName.replace(/^@?(.*)$/, '@$1')}。`);
|
|
|
+ }
|
|
|
if (error instanceof IgNetworkError) {
|
|
|
logger.warn(`error while fetching stories for ${rawUserName}: ${JSON.stringify(error.cause)}`);
|
|
|
this.bot.sendTo(receiver, `获取 Stories 时出现错误:原因: ${error.cause}`);
|